![]() # This script is for checking the RSS cart from a PT site and download added torrents RSS_PATTERN= "rssdd.php" SED_PATTERN= 's///g s//,/g' # Create temp file touch $TEMP_FILE_LOCATION # Download and parse the RSS from TTGĬurl $RSS_URI | grep $RSS_PATTERN | sed $SED_PATTERN > $TEMP_FILE_LOCATION # Use wget to download each of those torrents wget -content-disposition -i $TEMP_FILE_LOCATION -directory-prefix= $DESTINATION_DIR -nc # Clean up the temp file rm $TEMP_FILE_LOCATION TEMP_FILE_LOCATION= "/tmp/rss-checker.tmp" DESTINATION_DIR= "YOUR-TORRENT-FOLDER" RSS_URI= "YOUR-RSS-FEED-URI" # Following patterns are for TTG.im, that may not apply to other feeds. This will incre- # ase the speed of each check. T- # herefore in this script, wget will not re-download exist torrents. # for example, to check RSS feed every 15 minutes, add following: # */15 * * * * "LOCATION-OF-THIS-SCRIPT" # Steps above will set transmission-daemon not to delete old torrents after added. ![]() add this script to crontab to check RSS feed at a regular time. ![]() add/modify following parameters to your transmission settings file: # "start-added-torrents": true, # "trash-original-torrent-files": false, # "watch-dir": "YOUR-TORRENT-FOLDER", # "watch-dir-enabled": true # 3. create a folder for torrents and give owner and group as "debian-transmission" # 2. # To make transmission-daemon watches folder and add automatically, you need to: # 1. If the feed uses a diffe- # rent keyword to describe links, you may need to change RSS_PATTERN and SED_PATTERN # to fit the pattern of torrents in feed. # Replace value of RSS_URI to the address of your RSS feed. Therefore transmission-daemon will be able to add those torre- # nts and start to download. #!/bin/bash # PT site's RSS checker # By Bill Haofei Gong on 5th Jan, 2013 # This script is for checking the RSS cart from a PT site and download added torrents # to specified folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |