mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
couple small bugfixes in code when it was expecting a string but got a integer instead well trying to create a search string for providers to use.
This commit is contained in:
parent
ce193ffcdb
commit
146d9ba23b
2 changed files with 2 additions and 2 deletions
|
@ -401,7 +401,7 @@ class TVRage:
|
|||
if elm.text is "0000-00-00":
|
||||
elm.text = str(dt.date.fromordinal(1))
|
||||
try:
|
||||
fixDate = parse(elm.text, fuzzy=True)
|
||||
fixDate = parse(elm.text, fuzzy=True).date()
|
||||
elm.text = fixDate.strftime("%Y-%m-%d")
|
||||
except:
|
||||
pass
|
||||
|
|
|
@ -304,7 +304,7 @@ class GenericProvider:
|
|||
searchSeason = True
|
||||
|
||||
for sceneSeason,sceneEpisodes in sceneSeasons.iteritems():
|
||||
for curString in self._get_season_search_strings(show, sceneSeason, sceneEpisodes, searchSeason):
|
||||
for curString in self._get_season_search_strings(show, str(sceneSeason), sceneEpisodes, searchSeason):
|
||||
itemList += self._doSearch(curString)
|
||||
|
||||
for item in itemList:
|
||||
|
|
Loading…
Reference in a new issue