mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix for No episode number found error for air-by-date/sports shows
This commit is contained in:
parent
ca4fe51b97
commit
0fddbac1c4
@ -179,7 +179,6 @@ class NameParser(object):
|
||||
else:
|
||||
result.version = -1
|
||||
|
||||
|
||||
matches.append(result)
|
||||
|
||||
if len(matches):
|
||||
@ -218,6 +217,9 @@ class NameParser(object):
|
||||
"SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?",
|
||||
[bestResult.show.indexerid, bestResult.show.indexer, airdate])
|
||||
|
||||
season_number = None
|
||||
episode_numbers = []
|
||||
|
||||
if sql_result:
|
||||
season_number = int(sql_result[0][0])
|
||||
episode_numbers = [int(sql_result[0][1])]
|
||||
@ -422,7 +424,7 @@ class NameParser(object):
|
||||
# anime absolute numbers
|
||||
final_result.ab_episode_numbers = self._combine_results(file_name_result, dir_name_result, 'ab_episode_numbers')
|
||||
|
||||
if not final_result.air_date:
|
||||
# season and episode numbers
|
||||
final_result.season_number = self._combine_results(file_name_result, dir_name_result, 'season_number')
|
||||
final_result.episode_numbers = self._combine_results(file_name_result, dir_name_result, 'episode_numbers')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user