Private GIT

Skip to content
Snippets Groups Projects
Commit f991bcb7 authored by sarakha63's avatar sarakha63
Browse files

corrected ftdb

parent 814e7d37
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,7 @@ NZB_METHOD = None
USENET_RETENTION = None
TORRENT_METHOD = None
TORRENT_DIR = None
NZB_DIR = None
DOWNLOAD_PROPERS = None
DOWNLOAD_FRENCH = None
PREFERED_METHOD = None
......@@ -181,8 +182,6 @@ ETHOR_KEY = None
BTN = False
BTN_API_KEY = None
TORRENT_DIR = None
ADD_SHOWS_WO_DIR = None
CREATE_MISSING_SHOW_DIRS = None
RENAME_EPISODES = False
......
......@@ -167,7 +167,7 @@ class FTDBProvider(generic.TorrentProvider):
link = row.find("a", title=True)
title = link['title']
autogetURL = self.url + (row.find("li", { "class" : "torrents_name"}).find('a')['href'][1:]).replace('#FTD_MENU','&menu=4')
autogetURL = self.url +'/'+ (row.find("li", { "class" : "torrents_name"}).find('a')['href'][1:]).replace('#FTD_MENU','&menu=4')
r = self.opener.open(autogetURL,'wb').read()
soup = BeautifulSoup( r)
downloadURL = soup.find("div", { "class" : "autoget"}).find('a')['href']
......
......@@ -145,7 +145,7 @@ class XTHORProvider(generic.TorrentProvider):
r = self.opener.open( searchUrl )
soup = BeautifulSoup( r, "html.parser" )
soup = BeautifulSoup( r)
resultsTable = soup.find("table", { "id" : "torrents_table_classic" })
if resultsTable:
......@@ -165,6 +165,8 @@ class XTHORProvider(generic.TorrentProvider):
if re.match(recherched,title , re.IGNORECASE):
downloadURL = row.find("a",href=re.compile("action=download"))['href']
logger.log(u"XTHOR DOWNLOAD URL : " + downloadURL, logger.DEBUG)
else:
continue
quality = Quality.nameQuality( title )
if quality==Quality.UNKNOWN and title:
if '720p' not in title.lower() and '1080p' not in title.lower():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment