From c5cd9c84511748683d9c880b1f63c5481ebd6394 Mon Sep 17 00:00:00 2001 From: Remy Varma Date: Sat, 5 Nov 2011 13:24:00 +0000 Subject: [PATCH] Torrent support (courtesy of coolbombom), updated gitignore --- .gitignore | 3 ++- headphones/searcher.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f1b2e7cb..bb2f77d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Compiled source # ################### *.pyc +*.py~ # Logs and databases # ###################### @@ -14,4 +15,4 @@ logs/* .DS_Store? ehthumbs.db Icon? -Thumbs.db \ No newline at end of file +Thumbs.db diff --git a/headphones/searcher.py b/headphones/searcher.py index 82dd442b..d4828586 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -1,4 +1,4 @@ -import urllib, urllib2 +import urllib, urllib2, urlparse import lib.feedparser as feedparser from xml.dom import minidom from xml.parsers.expat import ExpatError @@ -877,4 +877,4 @@ def preprocesstorrent(resultlist): except ExpatError: logger.error('Unable to torrent file. Skipping.') continue - return torrent, selresult \ No newline at end of file + return torrent, selresult