1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Removed some re-dundant code from daily search.

Fixed up some entries in mede8er metadata provider.
Changed detection of non-season packs.
This commit is contained in:
echel0n 2014-05-20 08:08:44 -07:00
parent 6a02edd7fc
commit a15db1719d
3 changed files with 8 additions and 9 deletions

View File

@ -187,9 +187,9 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
IMDB_ID.attrib["moviedb"] = "imdb"
IMDB_ID.text = myShow['imdb_id']
tvdbid = etree.SubElement(tv_node, "indexerid")
indexerid = etree.SubElement(tv_node, "indexerid")
if myShow['id'] != None:
tvdbid.text = myShow['id']
indexerid.text = myShow['id']
Runtime = etree.SubElement(tv_node, "runtime")
if myShow['runtime'] != None:

View File

@ -159,9 +159,8 @@ class NameParser(object):
if 'extra_info' in named_groups:
tmp_extra_info = match.group('extra_info')
# Show.S04.Special is almost certainly not every episode in the season
if tmp_extra_info and cur_regex_name == 'season_only' and re.match(
r'([. _-]|^)(special|extra)\w*([. _-]|$)', tmp_extra_info, re.I):
# Show.S04.Special or Show.S05.Part.2.Extras is almost certainly not every episode in the season
if tmp_extra_info and cur_regex_name == 'season_only' and re.search(r'([. _-]|^)(special|extra)s?\w*([. _-]|$)', tmp_extra_info, re.I):
continue
result.extra_info = tmp_extra_info

View File

@ -353,10 +353,10 @@ def searchForNeededEpisodes(episodes):
continue
# find the best result for the current episode
bestResult = None
for curResult in curFoundResults[curEp]:
if not bestResult or bestResult.quality < curResult.quality:
bestResult = curResult
#bestResult = None
#for curResult in curFoundResults[curEp]:
# if not bestResult or bestResult.quality < curResult.quality:
# bestResult = curResult
bestResult = pickBestResult(curFoundResults[curEp], curEp.show)