Download and set up multiple blocklists for your Transmission BitTorrent client in a simple way (Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
3.5 KiB

5 years ago
  1. # Transmission blocklist downloader
  2. Download and set up multiple blocklists for your Transmission BitTorrent client in a simple way (Linux)
  3. ## Disclaimer
  4. Author of this repository is not responsible for any possible illegal or malicious usage of any files provided in this repository by anyone. The repository is provided as an act of good will and does not intend to encourage users to participate in any illegal activities.
  5. ## Requirements
  6. - Unix-based OS (Linux tested)
  7. - Bash shell 4.0 or above
  8. - Internet connection
  9. - Transmission client
  10. - The following executables must be found on your system:
  11. - transmission-cli
  12. - gzip
  13. - unzip
  14. - bash
  15. - wget
  16. - date
  17. - find
  18. - kill
  19. - awk
  20. - sed
  21. - grep
  22. - ping
  23. - mv
  24. - wc
  25. - Recommended: Transmission GTK or Transmission Qt
  26. ## Installation
  27. Just grab the script. On your shell view, run
  28. ```
  29. wget https://github.com/Fincer/transmission-blocklist-downloader/blob/master/transmission-blocklists.sh
  30. ```
  31. Then add your blocklists as instructed [below](https://github.com/Fincer/transmission-blocklist-downloader#q-how-do-i-add-more-blocklists).
  32. ## Usage
  33. On your bash shell, run
  34. ```
  35. bash transmission_blocklists.sh
  36. ```
  37. or
  38. ```
  39. bash transmission_blocklists.sh -y
  40. ```
  41. where -y parameter passes all Yes/No questions with auto-yes answer (except for internet connection test)
  42. ## Configuration
  43. ### Q: How do I add more blocklists?
  44. **A:** The provided script has array BLOCKLISTS where your blocklists should be placed in. Adding new lists is very simple. The list syntax is as follows
  45. ```
  46. [list_1-friendly-name]="list_1_URL"
  47. [list_2-friendly-name]="list_2_URL"
  48. ...
  49. ```
  50. where
  51. - 'list_X-friendly-name' is human-readable name you give to the blocklist. This is for easier management for massive amount of blocklists you may have.
  52. - 'list_X_URL' is the corresponding URL address of your blocklist, points to zip or gz archive.
  53. Take a look into the script for more examples.
  54. -----------------------
  55. ### Q: In which format the blocklists should be added?
  56. **A:** The script supports only zip and gz archive formats.
  57. Required Transmission .bin blocklist files are generated by 'transmission-cli' executable.
  58. -----------------------
  59. ### Q: When I delete a blocklist, does it get deleted from my Transmission client as well?
  60. **A:** Yes, the script deletes blocklists you've removed from BLOCKLISTS array. However, I recommend you to close your Transmission client and then running the script (after blocklist deletion).
  61. -----------------------
  62. ### Q: I have added an unavailable blocklist. How does the script handle this blocklist?
  63. **A:** The script finds out that the blocklist is not available anymore, warns you about it and asks you whether to continue downloading other blocklists.
  64. -----------------------
  65. ### Script configuration parameters
  66. - **UPDATELIMIT_DAYS** = Older blocklist files than this should be updated
  67. - Default value: 15
  68. - Value in days
  69. - **WGET_TIMEOUT** = Time out after which downloading a blocklist will be ignored
  70. - Default value: 30
  71. - Value in seconds
  72. - **TRANSMISSION_BLOCKLISTDIR** = Default blocklist directory path of Transmission client program
  73. - Default value: $HOME/.config/transmission/blocklists/
  74. - **TEST_PROVIDER** = The script checks your internet connection by pinging this URL address
  75. - Default value: www.github.com
  76. ## License
  77. This repository uses GPLv3 license. Please see [LICENSE](https://github.com/Fincer/transmission-blocklist-downloader/blob/master/LICENSE) for details.