This is exactly what I was looking for as well. I am having one problem, though. The script crashes if I try to pull torrent files for the Daily Show. Could it be something with the torrent file name?
The terminal output is:
Code:
ben@Ben-EeePC ~ $ tormon.py -O /home/ben/Downloads/Torrents
Downloading /The.Daily.Show.2009.10.26.%28PDTV-FQM%29%5BVTV%5D.torrent
Traceback (most recent call last):
File "/bin/tormon.py", line 81, in <module>
Main()
File "/bin/tormon.py", line 78, in __init__
self.parse_rss_feed()
File "/bin/tormon.py", line 70, in parse_rss_feed
self.download_torrent(torrent)
File "/bin/tormon.py", line 57, in download_torrent
except (HTTPError, URLError):
NameError: global name 'HTTPError' is not defined
The script works fine if I don't try and pull from the Daily Show. Any suggestions?
Bookmarks