Page 7 of 12 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 111

Thread: download torrents from rss feed

  1. #61
    Join Date
    Apr 2006
    Location
    Coventry
    Beans
    1,379
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: download torrents from rss feed

    Thanks for the updates unutbu.

    One smallish problem regarding the error script. Basically, I run my script every five minutes 24 hours a day seven days a week. Its not really a problem since most of the time it comes up empty (except when one of my feeds obviously updates).

    Now each time the script runs (i.e. 12 times an hour) the error log appends all the errors. So, essentially, every hour I have the same list of errors repeated 12 times.

    I'm not really sure what the best solution to this would be. Obviously deleting the error log or even purging it does not serve the purpose.

    The best thing I can think of is adding the list of torrent files that are having an error into the already downloaded torrent files list. So, the first time they run they would show up as an error, but the next time it would seem as though they were already downloaded. Does that make sense?

    Thanks!

  2. #62
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: download torrents from rss feed

    KillaB7, yep, you found a bug! It has been fixed.

    abhiroopb, the script now reports each error once and only once. If at some point it succeeds in downloading a file that had failed before, it removes the url from the error log and adds it to the downloaded files log.

    You know the drill.

  3. #63
    Join Date
    Apr 2006
    Location
    Coventry
    Beans
    1,379
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: download torrents from rss feed

    Thanks, just tested it and it works perfectly! But, the script still displays the "failed to download". This doesn't really matter though as the script mostly runs in the background anyway.

    Thanks!

  4. #64
    Join Date
    Oct 2007
    Location
    Vancouver, BC Canada
    Beans
    69
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: download torrents from rss feed

    Thanks again unutbu!
    That -f flag is great. Just tested on an .mp4 feed without a hitch.

    Any chance of adding a batch file flag to better manage the string length?

    So as an alternative to:
    Code:
    tormon.py -u "http://rss.feed1" -u "http://rss.feed2"
    You could run:
    Code:
    tormon.py -O /path/to/downloaded/dot/torrent/files -b /path/to/torrent_feeds.txt
    Or by extension:
    Code:
    tormon.py -O /path/to/downloaded/media/files -f mp4 -f wmv -f mp3 -b /path/to/direct_feeds.txt
    Last edited by KillaB7; November 6th, 2009 at 05:16 AM.

  5. #65
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: download torrents from rss feed

    LOL, that's a good idea. Thanks KillaB7.

    Now you can create a file with a list of all the rss feeds (urls) you wish to monitor.
    Put one url per line. If you put the list of urls in /path/to/torrent_feeds.txt
    then
    Code:
    tormon.py -b /path/to/torrent_feeds.txt
    will download .torrents (or other files) to ~/Desktop.

  6. #66
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: download torrents from rss feed

    Quote Originally Posted by abhiroopb View Post
    But, the script still displays the "failed to download".
    I've commented out the "tormon failed to download ..." message.
    The errors are now only in the error log file.

  7. #67
    Join Date
    Oct 2007
    Location
    Vancouver, BC Canada
    Beans
    69
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: download torrents from rss feed

    Working great here.

    Sorry for all the extra work unutbu, it's very much appreciated

    The only other feature I can think of that would be handy for first runs would be a dummy parse mode (ie. parse and update .downloaded_torrents without actually downloading any torrent/media files).

  8. #68
    Join Date
    Oct 2007
    Location
    Vancouver, BC Canada
    Beans
    69
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: download torrents from rss feed

    For anyone interested, here's a howto (and more importantly an init script) on setting up a Deluge backend.
    http://apocryph.org/2008/11/30/setti...indows_client/
    Last edited by KillaB7; November 6th, 2009 at 08:05 AM.

  9. #69
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: download torrents from rss feed

    I've added a "-m" flag to the script which adds all torrents/files found to the log of downloaded files.

    When you run
    Code:
    tormon.py -m -b direct_feeds.txt
    tormon slurps all the .torrents that it finds in the rss feeds
    and adds them to the log of downloaded files, and removes them (if they exist)
    from the error log.

    This is a way to tell tormon that you are currently up-to-date.

    I hope this is what you were looking for, KillaB7.

    By the way, you can get a help summary of all the options by typing
    Code:
    tormon.py -h

  10. #70
    Join Date
    May 2008
    Beans
    Hidden!

    Re: download torrents from rss feed

    Quote Originally Posted by unutbu View Post
    I've added a "-m" flag to the script which adds all torrents/files found to the log of downloaded files.

    When you run
    Code:
    tormon.py -m -b direct_feeds.txt
    tormon slurps all the .torrents that it finds in the rss feeds
    and adds them to the log of downloaded files, and removes them (if they exist)
    from the error log.

    This is a way to tell tormon that you are currently up-to-date.

    I hope this is what you were looking for, KillaB7.

    By the way, you can get a help summary of all the options by typing
    Code:
    tormon.py -h
    I've been using bashpodder for downloading my podcasts. Now that you've added the -m option, this script will be much more useful than bashpodder. I can set up a text file for each type of download whether audio, video or torrent and even set up different files for daily, weekly or monthly updates.

    This script isn't much more complicated than bashpodder but it's tons more flexible! Thanks for doing all the work in Python that I was trying to figure out in Bash.

    Actually the only thing I can think of to add is the ability to have comments in the text file containing rss urls.
    For example:
    Code:
    #The following is the escape pod podcast.
    http://escapepod.org/podcast.xml
    Last edited by mobilediesel; November 6th, 2009 at 10:06 PM.

Page 7 of 12 FirstFirst ... 56789 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •