Comments (6)
from torf-cli.
We also need --publisher and --publisher-url. Otherwise --nopublisher and --nopublisher-url have no effect.
Ok, but are you able to implement these command options?
from torf-cli.
from torf-cli.
Yes, when I find the time.
Of course, in your time. I just have to thank you for all your help.
from torf-cli.
Actually, it would be much better to have CLI arguments to insert/remove arbitrary values. Something like:
torf -i foo.torrent --insert :publisher:me bar.torrent
torf -i bar.torrent --remove publisher baz.torrent
The first character in :publisher:me
is the delimiter between key and value.
This doesn't allow for to editing nested dictionaries and lists. There should be inspiration in man jq
?
A much easier and more straightforward approach would to use JSON:
torf -i foo.torrent --insert '{"info": {"metadata": {"publisher": "me"}}}' bar.torrent
torf -i foo.torrent --remove .info.metadata.publisher bar.torrent
from torf-cli.
The latest release has a --merge
option that allows you to add or remove
arbitrary data:
$ torf path/to/content --merge '{"custom": {"publisher": "Someone"}}'
[...]
$ torf -vmi content.torrent
{
[...]
"custom": {
"publisher": "Someone"
},
[...]
}
$ torf -i content.torrent --merge '{"custom": {"publisher": "Someone Else"}}' -o foo.torrent
[...]
$ torf -vmi foo.torrent
{
[...]
"custom": {
"publisher": "Someone Else"
},
[...]
}
from torf-cli.
Related Issues (20)
- Override piece size algorithm when specified over 16MiB HOT 2
- Error Creating new torrent HOT 15
- [v3.1.0] Test failure HOT 8
- [3.2.0] Test failure HOT 3
- Differentiate adding trackers via CSV and -t HOT 15
- Feature Request : Remove files from .torrent HOT 1
- PackageNotFoundError HOT 4
- Feature Request: Control number of hashing threads HOT 1
- Feature Request: Get tracker via a URL(trackerslist) HOT 3
- Windows 10: How to edit source and create new torrent in Batch Mode? HOT 13
- [Request] Add Support For Creating Hybrid Torrents HOT 1
- torf: Unrecognized arguments
- Torf fails to create torrent if symlink exists in target directory HOT 2
- Append the name of the torrent file created with the profile name. HOT 1
- Allow specifying piece size HOT 9
- question: any way to reuse a torrent that gives error ['info']['piece length'] is invalid HOT 2
- timezone error?default date use UTC time while os use CST (Asia/Shanghai)
- [Question] Is it possible to set entropy field to a random number? HOT 2
- Exclude hidden files by default HOT 1
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 torf-cli.