From 33a45da5f36c35487a59ad7ba93c507f1809d5a4 Mon Sep 17 00:00:00 2001 From: Ade Date: Mon, 26 Nov 2012 22:21:10 +1300 Subject: [PATCH] rutracker website title change rutracker website title change --- headphones/searcher_rutracker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/headphones/searcher_rutracker.py b/headphones/searcher_rutracker.py index 270b5fc3..be3ea0ed 100644 --- a/headphones/searcher_rutracker.py +++ b/headphones/searcher_rutracker.py @@ -110,7 +110,7 @@ class Rutracker(): # Title - for link in soup.find_all('a', attrs={'class' : 'med tLink bold'}): + for link in soup.find_all('a', attrs={'class' : 'med tLink hl-tags bold'}): title = link.get_text() titles.append(title) @@ -144,7 +144,7 @@ class Rutracker(): if not torrentlist: return False - # get headphones track count for album, return if not found + # get headphones track count for album, return if not found myDB = db.DBConnection() tracks = myDB.select('SELECT * from tracks WHERE AlbumID=?', [albumid]) @@ -155,6 +155,7 @@ class Rutracker(): return False # Return the first valid torrent, unless we want a preferred bitrate then we want all valid entries + unwantedlist = ['promo', 'vinyl', '[lp]', 'songbook', 'tvrip', 'hdtv', 'dvd'] formatlist = ['.ape', '.flac', '.ogg', '.m4a', '.aac', '.mp3', '.wav', '.aif'] deluxelist = ['deluxe', 'edition', 'japanese', 'exclusive']