Giter Club home page Giter Club logo

scripts's Introduction

TODO

Make some good expalation on how to use these scripts

AddqBittorrentTrackers.sh

The purpose of this script is to inject trackers into your qBittorrent downloads.

It may be executed manually or automatically with Radarr/Sonarr.

This script works with the qBittorrent v4.1+ API. It may work with lower versions, but must be checked. Let me know if you use an earlier version and it works, so I can expand the version compatability.

To use this script you'll need:

  • jq. Check if jq is available for your distro with sudo apt install jq (or the appropriate package management tool)

  • Curl. Install it with sudo apt install curl

  • First make sure your Radarr/Sonarr user can execute the script with a process similar to this:

    • chown USER:GROUP AddqBittorrentTrackers.sh where USER:GROUP is the same user and group as qBittorrent.
    • Then be sure it is executable with: chmod +x AddqBittorrentTrackers.sh
  • Modify the scripts ########## CONFIGURATIONS ########## section:

    • qbt_username -> username to access to qBittorrent Web UI.
    • qbt_password -> username to access to qBittorrent Web UI.
    • Note that if the script runs on the same device that runs qBittorrent, you can set Bypass authentication for clients on localhost. With this option set and when the script runs, the username and password are not required.
    • qbt_host -> if the script is on the same device as qBittorrent http://localhost, otherwise, set this to the remote device.
    • qbt_port -> is the Web UI port.
    • live_trackers_list_url, is the url from where the trackers list is obtained. These lists are automatically generated. You can specify more than one url, just follow the example in the file.
    • The script will automatically check if the torrent is private or public.

Configuration is now complete.

If you are a Radarr and/or Sonarr user, personally I:

  1. Create a custom script (settings -> connect -> add notification -> Custom Script).
  2. The name is not important. I use Add Transmission Trackers, you can use any name you like.
  3. Set "On Grab".
  4. Inside Path field, point to the AddqBittorrentTrackers.sh script.
  5. Save the custom script.

Now, when Radarr and/or Sonarr grabs a new torrent, the script will be automatically triggered and a custom tracker list will be added to the torrent. This is true only if the torrent is not from a private tracker.

To run the script manually, simply run ./AddqBittorrentTrackers.sh. All the possible options will be shown. When calling the script, there are many options to add trackers to torrents.

One note about configuration, if you want to use it manually, you must configure the username, password, host and port within the file. This is for simplicity. Otherwise I would have to insert four new options to be called every time manually, or "complicate" the script by checking for the possibility of a configuration file to be saved somewhere. If it is necessary I will do it, but for now I think it is easier to keep the necessary options hard coded.


AddTransmissionTrackers.sh

The purpose of this script is to inject trackers inside Transmission torrent.

This may be used manually, or with Radarr/Sonarr automatically.

Included is the option to call the script and specify name and/or id where add trackers.

  • First ensure your Radarr/Sonarr user can execute the script with something like this:

    • Take ownership with: chown USER:USER AddTransmissionTrackers.sh where USER:GROUP is the same user and group as Transmission.
    • Ensure it is executable: chmod +x AddTransmissionTrackers.sh
  • Modify the scripts ########## CONFIGURATIONS ########## section:

    • transmission_username, transmission_password, transmission_host and transmission_port are the settings you've already set in Transmission.
    • live_trackers_list_url, is the url from which the trackers lists are obtained. You may specify more than one url, just follow the example in the file.
    • The script will automatically check if the torrent is private or public.

The configuration is complete.

If you are a Radarr and/or Sonarr user, personally I:

  1. Create a custom script (settings -> connect -> add notification -> Custom Script).
  2. The name is not important. I use Add Transmission Trackers, you can use any name you like.
  3. Set "On Grab".
  4. Inside Path field, point to the AddTransmissionTrackers.sh script.
  5. Save the custom script.

Now, when Radarr and/or Sonarr grabs a new torrent, the script will automatically be triggered and a custom tracker list will be added to the torrent. This is true only if the torrent is not from a private tracker.

To run the script manually, simply run ./AddTransmissionTrackers.sh. All the possible options will be shown. Additionally, when calling the script, there are many options to add trackers to torrents.

One note about configuration, if you want to use it manually, you must configure the username, password, host and port within the file. This is for simplicity. Otherwise I would have to insert four new options to be called every time manually, or "complicate" the script by checking for the possibility of a configuration file to be saved somewhere. If it is necessary I will do it, but for now I think it is easier to keep only the necessary options hard coded.

======= The purpose of this script is to inject trakers inside Transmission torrent, this can be used manually and can also works with Radarr/Sonarr in an automatic way.

This script use transmission-remote, normally this is already installed if you use transmission. Transmission-remote is not needed anymore, I switch all the commands directly to /rpc so this's the very first release. I also included the possibility to call the script and specify name and/or id where add trackers

  • First make sure your Radarr/Sonarr user can execute the script with some like this: chown USER:USER AddTransmissionTrackers.sh then ensure that it is executable chmod +x AddTransmissionTrackers.sh
  • Modify the ########## CONFIGURATIONS ########## section: transmission_username, transmission_password, transmission_host and transmission_port are all Transmission related. private_tracker_list is a comma-separated list of your "private" trackers. Actually you've to manually set your private trackers list because is not yet possible get the status from the torrent automatically, maybe one day it will be possible. -> No more needed, the script will check if the torrent is private or not automatically live_trackers_list_url, is the url where the trackers list are taken, is an automatic list, you can specify more than one url, just follow the example in the file.
  • Now the configuration is done, you've to configure Radarr and/or Sonarr, personally I:
  1. Create a custom script (settings -> connect -> add notification -> Custom Script)
  2. The name is not important, I use Add Transmission Trackers, you can use any name you like
  3. Set "On Grab"
  4. Inside Path field, point to the AddTransmissionTrackers.sh script
  5. Save the custom script

Now, when Radarr and/or Sonarr will grab a new torrent, the script will be triggered and a custom tracker list will be added to the torrent, automatically, if the torrent is not from a private tracker. Is also possible to run the script manually, simply run the script ./AddTransmissionTrackers.sh and see all the possible options. I inserted a new way to call the script, with many options to inject trackers inside torrents. One note abount configuration, if you want to use it manually, before use it configure username, passowrd, host and port inside the file. Otherwise I would have to insert four new options to be called every time manually, or "complicate" it by inserting possibility to have a configuration file to be saved somewhere. If it is necessary I will do it but for now I think it is easier to keep only the necessary options.


TransmissionRemoveCompleteTorrent.sh

The purpose of this script is to remove the completed torrent from Transmission, but only the torrent added by Radarr/Sonarr.

The best way is to use it is to cronize it.

This script uses transmission-remote, normally this is already installed if you use transmission.

  • First make sure your Radarr/Sonarr user can execute the script with someting like this:

    • chown USER:USER TransmissionRemoveCompleteTorrent.sh
    • Then ensure it is executable: chmod +x TransmissionRemoveCompleteTorrent.sh
  • Modify the scripts ########## CONFIGURATIONS ########## section:

    • t_username, t_password, t_host and t_port are all Transmission related. Set them accordingly.

    • t_log is to enable the logfile. If set to 1 the logfile will be written to t_log_path.

    • The most important setting is automatic_folder. This is the folder that contains all the automatic downloads

    • I use this folder structure for automatic downloads that came from Radarr/Sonarr:

      • download
        • automatic
          • movie
          • tv_show
    • Within the files configuration example, I've set automatic for automatic_folder option.

    • max_days_seed is the maximum seed time.

    • remove_normal. Pay attention if you set this to true, because this enables a kind of force option that also checks all non-automatic downloads.

  • Lastly, consider using cron for the script. Add this to your cron scheduler with something like this (varies according to your own Linux installs cron manager):

    • 30 01 * * * /PATHOFTHESCRIPT/TransmissionRemoveCompleteTorrent.sh >/dev/null 2>&1
    • this example will execute the script at 01:30 every day.

qBittorrentHardlinksChecker.sh

The idea of this script is very simple, it checks qBittorrents Hard Links.

In my case it helps, judge for yourself if it helps you.

For managing the seed times of automatic downloads from the various *Arr, I normally use autoremove-torrent. It is a very complete and useful script that allows me to pick and choose category by category, tracker by tracker, the various torrent removal settings. This is because my space available is not infinite. So I am forced to do a regular cleanup of the various downloads. I always respect the rules of the various private trackers!

But let's come to the idea: Very simply, if the configuration within the automatic downloading programs *Arr is set to generate hardlinks, then it means that until I have deleted both the file from the torrent client and the linked file that is managed automatically, the space occupied on the disk will be the same. This means that as long as I haven't watched and deleted that movie (etc), I could safely keep the shared downloaded file, because it no longer takes up disk space, being a hardlink.

With this script, for the categories you set, you can check each download. If there are two or more hardlinks the file will not be deleted from qBittorrent. If on the other hand the file has only one hardlink, then the script will consider whether or not to delete the file by checking the minimum seed time that has been set.

Here is an example of usage: Downloads that only end up in the automatic categories, e.g. movie for Radarr (or whatever your category is) rather than tv_show for Sonarr (or whatever your category is), before running autoremove-torrent (which is appropriately configured previously)... I run this script and by doing so I make sure that any "duplicates" are not deleted and remain in seed. This helps me with the share ratio and minimum seed time.

How to use:

  • First make sure your Radarr/Sonarr user can execute the script with something like this:
    • chown USER:GROUP qBittorrentHardlinksChecker.sh where USER:GROUP is the user and group of Radarr/Sonarr.
    • Then be sure it is executable: chmod +x AddqBittorrentTrackers.sh

Note: not being a script that is called from *Arr it's not strictly necessary to change user and group, just make sure that the script can be executed by the user concerned.

  • Modify the scripts ########## CONFIGURATIONS ########## section:
    • qbt_username -> username to access to qBittorrent Web UI.
    • qbt_password -> username to access to qBittorrent Web UI.
    • Note that if the script runs on the same device that runs qBittorrent, you can set Bypass authentication for clients on localhost. When the script executes, the username and password are not required.
    • qbt_host -> if the script is on the same device as qBittorrent use http://localhost, otherwise, set this to the remote device.
    • qbt_port -> is the Web UI port.
    • category_list -> is the list of categories upon which the script performs the check.
    • min_seeding_time -> is the minimum seed time expressed in seconds.
    • only_private -> if true, the script will only check the torrents that are from private trackers. In this way you can set autoremove-torrent in order to remove only the remaining public trackers. This help the share ratio and helps you to find and remove torrents from public trackers with your own rules.
    • private_torrents_check_orphan -> This is only for private trackers. If true, check the torrent and if is not registered, it will be deleted.
    • public_torrent_check_bad_trackers -> Only for public torrents. If true, check the trackers and the bad one/s will be eliminated, but not the torrent itself, only the trackers. Be patient, this can be a "slow" function during the deleting/ion phase.

I recommend you use this script with cron or create a timer for systemd. I personally use it via timer so runs right after autoremove-torrent

scripts's People

Contributors

atomicrobotman0101 avatar jorman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scripts's Issues

hash_check: command not found

Both Sonarr and Radarr are throwing errors on these lines
the hash_check isn't something sonarr / radarr understands in Debian 11 and I cant find where it was defined in the script.
Running it manual and not as a radarr / sonarr connect script doesn't cause issues.

AddTransmissionTrackers.sh: line 174: hash_check: command not found

  hash_check "${hash}"
  if [[ $? -ne 0 ]]; then
    echo "The download is not for a torrent client, I'll exit"
    exit
  fi

This command is caused by a pipe issue i believe but also cant figure out how to fix the code

line 153: wait: pid 5 is not a child of this shell

if [[ -n "${sonarr_download_id}" ]] || [[ -n "${radarr_download_id}" ]] || [[ -n "${lidarr_download_id}" ]] || [[ -n "${readarr_download_id}" ]]; then wait 5

Maybe you can provide some insight.
The script still seems to run and do it's required purpose.

Thanks

  • Info
  • Radarr Version
  • 4.0.4.5922
  • .NET
  • Yes (6.0.1)
  • Sonarr Version
  • 3.0.6.1460
  • Mono Version
  • 6.8.0.105

AddqBittorrentTrackers, jq error on Qnap NAS

I'm getting this error when trying to run with -n

[~] # /share/Download/AddqBittorrentTrackers.sh -n Pulp
jq: error (at <stdin>:1): jq was compiled without ONIGURUMA regex libary. match/test/sub and related functions are not available.
I didn't find a torrent with the text: 
No torrents found, exiting

I can use "-a" , also "-l" shows torrents lists, but jq gives error on entware with "-n":

[~] # opkg list | grep jq
jq - 1.6-2 - Lightweight and flexible command-line JSON processor.
[~] # which jq
/opt/bin/jq

Improved Readme Instructions

I'm following the steps for getting this working through Radarr/Sonarr and it'd be really great to include some steps to know if it worked or not. And if it didn't work, some troubleshooting for common problems would be great. Screenshots are always worth 1000 words.

So for me, I think I set it up right and I manually ran it via my Windows Powershell and there weren't any errors. However, I go to my qbittorrent and check the trackers and it's hard to tell if they were added. They definitely were not added to queued up torrents. I added some best trackers to the currently downloading torrents, but I imagine there are supposed to be a lot more trackers. I'm not sure it's working or what to do about it. Thanks.

Trackers aren't added via Sonarr/Radarr on Transmission

hi @Jorman and thank you for the great script!

I followed the instructions and can make it work when run manually (with -a), but it seems the script is not being handled correctly by sonarr 4.0.0.733 and radarr 5.2.3.8303 on Transmission 4.0.4, as no trackers are added to new torrents on grab.

Is there a way to help you debug this and see what's going on?

Add Readarr support

To validate script execution (and pass test event without exit code 1) in Readarr - line 263 in AddqBittorrentTrackers.sh (or 163 in AddTransmissionTrackers.sh) must be changed to

if [[ $sonarr_eventtype == "Test" ]] || [[ $radarr_eventtype == "Test" ]] || [[ $lidarr_eventtype == "Test" ]] || [[ $readarr_eventtype == "Test" ]]; then

After that, everything work as expected.

AddqBittorrentTrackers.sh for Lidarr ?

If I try to add it to custom scripts like in radarr/sonarr it just says "Script exited with code: 1" when I press test so I can not save it.
Any way to add it in Lidarr?

AddqBittorrentTracker.sh on Synology

Regarding AddqBittorrentTrackers.sh at this line
Synology DSM 7 doesn’t have the “rev” command. So I replaced:
| tail -n +4 | tr '\n' '|' | rev | cut -c2- | rev)

With:

| tail -n +4 | tr '\n' '|' | grep -o . | tac | tr -d '\n' | cut -c2- | grep -o . | tac | tr -d '\n')

This seems to work for me. I am not skilled in programming. Just used my Google Foo to find this option.

Step by step failure

This my first post sorry if its - messed up.

I loaded and edited the configuration file for qbitorrent.

########## CONFIGURATIONS ##########

Host on which qBittorrent runs

qbt_host="http://localhost"

Port -> the same port that is inside qBittorrent option -> Web UI -> Web User Interface

qbt_port="X123"

Username to access to Web UI

qbt_username="user"

Password to access to Web UI

qbt_password="passwd"

If true (lowercase) the script will inject trackers inside private torrent too (not a good idea)

ignore_private=false

Configure here your trackers list

declare -a live_trackers_list_urls=(
"https://newtrackon.com/api/stable"
"https://trackerslist.com/best.txt"
"https://trackerslist.com/http.txt"
"https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt"
)

I changed the qbt variables from their proper values. 
This configuration results in error: 
$ sh ./AddqBittorrentTrackers.sh 
./AddqBittorrentTrackers.sh: 17: Syntax error: "(" unexpected

I removed the "(" and ")" to fix the error. And ran again.
Resulting Error:

$ sh ./AddqBittorrentTrackers.sh
./AddqBittorrentTrackers.sh: 17: declare: not found
./AddqBittorrentTrackers.sh: 18: https://newtrackon.com/api/stable: not found
./AddqBittorrentTrackers.sh: 19: https://trackerslist.com/best.txt: not found
./AddqBittorrentTrackers.sh: 20: https://trackerslist.com/http.txt: not found
./AddqBittorrentTrackers.sh: 21: https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt: not found
./AddqBittorrentTrackers.sh: 32: [[: not found
./AddqBittorrentTrackers.sh: 39: [[: not found
./AddqBittorrentTrackers.sh: 140: Syntax error: redirection unexpected

 I havent been able to get past this. 




Qnap bad substitution

if [[ "${qbt_host,,}" == *"https"* ]] ;then

Qnap gives error on this argument:

bash  AddqBittorrentTrackers.sh -h
AddqBittorrentTrackers.sh: line 49: ${qbt_host,,}: bad substitution

May be change it to this simpler one

if [[ $qbt_host == "https://"* ]]; then

example private_tracker_list

Haven't been able to figure out how to use private_tracker_list

have tried (pulled from transmissions trackers list for the item) (tracker name was changed for this example though):
private_tracker_list='https://tracker.myprivatetracker.com:443'
and private_tracker_list='https://tracker.myprivatetracker.com:443/announce'

but keep getting:
Private tracker list present, checking if the torrent is private
The torrent is not private, I'll inject trackers on it

is there something obvious I'm missing here? And how would you add multiple private trackers to this list (comma, space or newline separate)?

Simplification of the "unique trackers" logic

This line looks convoluted:

trackers_list=$(echo "$tmp_trackers_list" | awk '{for (i=1;i<=NF;i++) if (!a[$i]++) printf("%s%s",$i,FS)}{printf("\n")}' | xargs | tr ' ' '\n')

How about simplifying it?

Do we care about the initial order of the list? If we don't care, we can just use:

	trackers_list=$(echo "$tmp_trackers_list" | tr ' ' '\n' | sort | uniq)
	# Alternative version that may not work on certain systems:
	trackers_list=$(echo "$tmp_trackers_list" | tr ' ' '\n' | sort -u)

If we care about the initial order:

	trackers_list=$(echo "$tmp_trackers_list" | tr ' ' '\n' | awk '{if ($0 && !a[$0]++) print($0)}')

We can even make it print an additional newline, in case that helps with #18:

	trackers_list=$(echo "$tmp_trackers_list" | tr ' ' '\n' | awk '{if ($0 && !a[$0]++) print($0 "\n")}')

String concatenation in awk is accomplished by just putting strings next to each other, no operator needed.

Fail on qBittorrent-cli. Aborting.

I'm running a Docker container with qBittorrent 4.2.5.
When trying to run the script from Sonarr it exits with code 1.

I used the console to manually run the script from inside the Sonarr container and it says qBittorrent-CLI is missing eventhough your Readme says it is not needed anymore.
When commenting the code below the script seems to work.

if [[ -z $qbt_executable ]]; then
	echo -e "\n\e[0;91;1mFail on qBittorrent-cli. Aborting.\n\e[0m"
	echo "You can find it here: https://github.com/fedarovich/qbittorrent-cli"
	exit 1
fi

AddTransmissionTrackers.sh failing to add trackers

Hi,

I am running the AddTransmissionTrackers.sh script manually on a torrent of ID 1:

AddTransmissionTrackers.sh 1

Output shows that it failed to add the trackers:

For the Torrent: 
Private tracker list present, checking if the torrent is private
The torrent is not private, I'll inject trackers on it
Tracker file exist, I'll check if I need to upgrade it
File /root/TorrentTrackersList is not older than 1 days and I don't need to upgrade it
1/20 - Adding tracker udp://tracker.opentrackr.org:1337/announce - < Failed > 
2/20 - Adding tracker udp://open.tracker.cl:1337/announce - < Failed > 
3/20 - Adding tracker udp://9.rarbg.com:2810/announce - < Failed > 
4/20 - Adding tracker http://tracker.openbittorrent.com:80/announce - < Failed > 
5/20 - Adding tracker udp://tracker.openbittorrent.com:6969/announce - < Failed > 
6/20 - Adding tracker udp://opentracker.i2p.rocks:6969/announce - < Failed > 
7/20 - Adding tracker https://opentracker.i2p.rocks:443/announce - < Failed > 
8/20 - Adding tracker udp://www.torrent.eu.org:451/announce - < Failed > 
9/20 - Adding tracker udp://tracker.torrent.eu.org:451/announce - < Failed > 
10/20 - Adding tracker udp://open.stealth.si:80/announce - < Failed > 
11/20 - Adding tracker udp://ipv4.tracker.harry.lu:80/announce - < Failed > 
12/20 - Adding tracker udp://exodus.desync.com:6969/announce - < Failed > 
13/20 - Adding tracker udp://tracker.tiny-vps.com:6969/announce - < Failed > 
14/20 - Adding tracker udp://opentor.org:2710/announce - < Failed > 
15/20 - Adding tracker udp://tracker1.bt.moack.co.kr:80/announce - < Failed > 
16/20 - Adding tracker udp://tracker.zerobytes.xyz:1337/announce - < Failed > 
17/20 - Adding tracker udp://tracker.theoks.net:6969/announce - < Failed > 
18/20 - Adding tracker udp://tracker.monitorit4.me:6969/announce - < Failed > 
19/20 - Adding tracker udp://tracker.moeking.me:6969/announce - < Failed > 
20/20 - Adding tracker udp://tracker.loadbt.com:6969/announce - < Failed > 
Done!

Echoing the command in inject_trackers (), it looks like $1 is being not being passed in:

/usr/bin/transmission-remote localhost:9091 -n=REDACTED:REDACTED -t  --tracker-add udp://tracker.opentrackr.org:1337/announce 1>/dev/null 2>&1
...

Request: remove old trackers

Heya,

Is there an option to make the script clear the current trackers the torrent has before adding the fresh list?

Run from qBittorrent directly

Hi,

Thanks for your work, works well from Radarr etcetera.

Question though, there is also an option inside qBittorrent to execute a script when a torrent is added.
(Under Options -> Downloads -> Run External Program)
Now I've tried adding the script there, with the -n argument and %N (Torrent name), however this does not seem to work.
In the logs I see script is executed but no trackers are added.

It looks like this now:

/path/to/script/AddqBittorrentTrackers.sh -n "%N"

I'm running qBittorrent via docker container on Linux by the way.
When I see the log, it does say execute command /path/to/script/AddqBittorrentTrackers.sh -n "TORRENT NAME",
but nothing happens.
When I bash inside the docker container and copy-paste the command, it does work.
Now I'm wondering if it is maybe the -n argument which is preventing it from working, but this is just a wild guess.

I have also tried to put it like this:
/path/to/script/AddqBittorrentTrackers.sh -a
But this also does not work.

Would it be possible to check from your side if this can be debugged?
I would be more than happy to help of course!

AddqBittorrentTrackers.sh curl errors

Manually trying to test this script before using it in Radarr.

Running it using the IP docker provides the container and passing the -a flag leads to a curl error.

Output shows:

ubuntu@main:/data$ ./trackers.sh -a
curl: (22) The requested URL returned error: 401
curl: (22) The requested URL returned error: 403
No torrents found, exiting

Running it with the -l flag makes me believe it's a qBittorrent issue.

ubuntu@main:/data$ ./trackers.sh -l
curl: (22) The requested URL returned error: 401

Current torrents:
movie1.mkv
ubuntu@main:/data$

I'm using the original tracker links provided in the script and manually changed the backup trackers but nothing other than that. chown and chmod have both been run appropriately, thanks.

AddqBittorrentTrackers.sh won't get torrents list

I don't understand this all well enough to know what dumb mistake I may be making.

qBittorrent 4.2.5 is installed and up and running on Debian sid. jc and curl are installed and AddqBittorrentTrackers.sh is executable. qBittorrent has multiple resumed/active torrents, but all I get is

$ ./AddqBittorrentTrackers.sh
Getting torrents list ...

This script expects one or more parameters
AddqBittorrentTrackers.sh 		- list current torrents 
AddqBittorrentTrackers.sh $s1 $s2...	- add trackers to first torrent with part of name $s1 and $s2
AddqBittorrentTrackers.sh .		- add trackers to all torrents
Names are case insensitive 

Current torrents:
$ 

qBittorrent is set to Use a different port on each startup. AddqBittorrentTrackers.sh's ########## CONFIGURATIONS ########## section has no username or password variables to set, I have no private trackers to list, and host is set to http://localhost and port is the port I see in the qBittorrent Execution Log next to "Embedded Tracker" right after launch. Is that the wrong port to use?

Thanks

All trackers get added to tier 0 with AddqBittorrentTrackers

qBittorrent 4.5.3 on Windows 10
AddqBittorrentTrackers runs on Ubuntu 22.04

When AddqBittorrentTrackers runs it adds all the trackers without an empty line between them. qBittorrent (and I believe other clients) treat that as 1 tracker that has multiple URLs (tiers). By default the second tracker URL only gets checked when the first tracker URL is unavailable, which means that if the first tracker works, but has no seeders or leechers, and the second tracker does, you can never get those seeders or leechers.
You can enable announce_to_all_trackers to get around this by having qBittorrent always announce to all trackers in 1 tier (since all our trackers are now in tier 0), but by default that is disabled.

I tried adding a line break to the cURL command on line 131, but I couldn't get that to work. I don't know if I did that wrong, or if the API trims the tracker URL it gets.

multiple trackers list?

hello,

how can i add multiple live_trackers_list_url?
is it possible?

thanks for the script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.