Comments (8)
What is -n "%~nx1" %*
evaluated to on your system? What does the full command look like which executes py3createtorrent? (With all placeholders evaluated.)
from py3createtorrent.
to get the file name and extension "%~nx1"
py3createtorrent -P -q -d -2 --md5 -c "xD" -t tracker -n "%~nx1" -o "%outputdir%%~n1[tracker name] %~n1.torrent" %*
from py3createtorrent.
What is the actual full command called, after the placeholders have been replaced with the variable values?
from py3createtorrent.
file name contains (2020)
the torrent is created if I remove the parentheses
from py3createtorrent.
For me it works. It is probably a problem with your BAT file. It is important to know what the actual full RESOLVED commandline looks like (after placeholders have been replaced with actual values).
My test output:
C:\Users\Robert\Desktop\TorrentTest
λ pip install py3createtorrent
Collecting py3createtorrent
Using cached py3createtorrent-1.0.0b1-py3-none-any.whl (13 kB)
Collecting bencode.py
Downloading bencode.py-4.0.0-py2.py3-none-any.whl (18 kB)
Installing collected packages: bencode.py, py3createtorrent
Successfully installed bencode.py-4.0.0 py3createtorrent-1.0.0b1
C:\Users\Robert\Desktop\TorrentTest
λ py3createtorrent.exe "test(parentheses).dot"
Successfully created torrent:
Name: test(parentheses).dot
Size: 4 KiB
Pieces: 1 x 16 KiB
Comment: created with py3createtorrent v1.0.0b1
Private: no
Creation date: 2021-01-08 11:49:26
DHT bootstrap nodes: (none)
Webseeds: (none)
Primary tracker: (none)
Backup trackers:
(none)
C:\Users\Robert\Desktop\TorrentTest
λ py3createtorrent.exe "test(parentheses).dot" -o "custom-name-with-(parentheses).torrent"
Successfully created torrent:
Name: test(parentheses).dot
Size: 4 KiB
Pieces: 1 x 16 KiB
Comment: created with py3createtorrent v1.0.0b1
Private: no
Creation date: 2021-01-08 11:50:19
DHT bootstrap nodes: (none)
Webseeds: (none)
Primary tracker: (none)
Backup trackers:
(none)
C:\Users\Robert\Desktop\TorrentTest
λ ls -l
total 10
-rw-r--r-- 1 Robert 197121 226 Jan 8 11:50 'custom-name-with-(parentheses).torrent'
-rw-r--r-- 1 Robert 197121 4592 Jan 8 11:27 'test(parentheses).dot'
-rw-r--r-- 1 Robert 197121 226 Jan 8 11:49 'test(parentheses).dot.torrent'
from py3createtorrent.
py3createtorrent.py: error: Invalid name: 'camila (2020).aac'. Allowed chars: A_Z, a-z, 0-9, any of {.,_-} plus spaces.
from py3createtorrent.
Ok, I got it. Will be fixed soon.
from py3createtorrent.
Fixed in 1.0.0b2. Please upgrade with pip install --upgrade py3createtorrent
from py3createtorrent.
Related Issues (17)
- About RegEx issue HOT 3
- Faulty torrent name and 'name' field when using relative path '.'
- cant exclude folder that start with . HOT 3
- Support for usage as a module HOT 9
- Support for optimise alignment (Piece-Aligned, BEP-47) ?
- Make "master" the default branch again HOT 3
- No way to populate a "source" field? HOT 2
- Trackerless torrent HOT 3
- UnicodeEncodeError HOT 6
- Is 16MiB a hard limit for max pieces size? HOT 2
- Remove created_by attribute HOT 1
- run fails with "SyntaxError: invalid syntax" HOT 3
- noob question
- Where is the config file? HOT 4
- Support for v2 and hybrid torrent files HOT 2
- Error with path exceeded than 260 characters in Windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py3createtorrent.