Private GIT

Skip to content
Snippets Groups Projects
Commit 7064211b authored by Adam Petrovic's avatar Adam Petrovic
Browse files

SCC doesn't support searching dates with pipe characters. Use '.'

instead
parent 5ef5a0b2
Branches
No related tags found
No related merge requests found
...@@ -130,12 +130,12 @@ class SCCProvider(generic.TorrentProvider): ...@@ -130,12 +130,12 @@ class SCCProvider(generic.TorrentProvider):
if self.show.air_by_date: if self.show.air_by_date:
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)): for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \ ep_string = sanitizeSceneName(show_name) + ' ' + \
str(ep_obj.airdate).replace('-', '|') str(ep_obj.airdate).replace('-', '.')
search_string['Episode'].append(ep_string) search_string['Episode'].append(ep_string)
elif self.show.sports: elif self.show.sports:
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)): for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \ ep_string = sanitizeSceneName(show_name) + ' ' + \
str(ep_obj.airdate).replace('-', '|') + '|' + \ str(ep_obj.airdate).replace('-', '.') + '|' + \
ep_obj.airdate.strftime('%b') ep_obj.airdate.strftime('%b')
search_string['Episode'].append(ep_string) search_string['Episode'].append(ep_string)
elif self.show.anime: elif self.show.anime:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment