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:
echel0n 2014-03-16 04:57:59 -07:00
parent ce193ffcdb
commit 146d9ba23b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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: