rndusr / stig

TUI and CLI for the BitTorrent client Transmission
GNU General Public License v3.0
554 stars 24 forks source link

Add torrents in bulk #240

Open PetiAPocok opened 9 months ago

PetiAPocok commented 9 months ago

I can't (or couldn't figure it out how to) add torrents in bulk. Like, : add path/to/torrent/file.torrent path/to/other/torrent/file.torrent works, but path/to/torrent/* doesn't. It says "Torrent file is corrupt or doesn't exist".

rndusr commented 9 months ago

Is there a non-torrent file in path/torrent/?

Maybe try adding path/to/torrent/*.torrent?

PetiAPocok commented 9 months ago

Only torrent files in that directory. I even renamed them to check if some of the characters are messing with it. 0.torrent, 1.torrent, 3.torrent, 4.torrent, 5.torrent, 6.torrent But no. Same error. With , too. `add: Torrent file is corrupt or doesn't exist: '/media/[user_name]/HDD/tor/' add: Is a directory: /media/[user_name]/HDD/tor add: Torrent file is corrupt or doesn't exist: '/media/[user_name]/HDD/tor/*.torrent'`

rndusr commented 9 months ago

Can you add them with transmission-remote?

PetiAPocok commented 9 months ago

On the web interface, it was never a problem. transmission-remote -a /media/[user_name]/HDD/tor/* localhost:9091/transmission/rpc/ responded: "success"

PetiAPocok commented 9 months ago

Oops... When I checked it I noticed ,it only added one of the 7...

rndusr commented 9 months ago

Sounds like Transmission doesn't like your torrents.

I'd use transmission-show to find out which are bad.

PetiAPocok commented 9 months ago

But one-by-one all is working fine.

rndusr commented 9 months ago

OK, that indicates it's stig's fault.

Unfortunately, I don't really have time to work on stig.

PetiAPocok commented 9 months ago

Well I appreciate the suggestions. I wish you easier times! I will wait for an update, but until then I'll put together a script that will add all the torrents in the dir with transmission-cli.

#!/bin/bash for file in * do transmission-remote -a "./$file" done