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
Tags
No related merge requests found
......@@ -130,12 +130,12 @@ class SCCProvider(generic.TorrentProvider):
if self.show.air_by_date:
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \
str(ep_obj.airdate).replace('-', '|')
str(ep_obj.airdate).replace('-', '.')
search_string['Episode'].append(ep_string)
elif self.show.sports:
for show_name in set(show_name_helpers.allPossibleShowNames(self.show)):
ep_string = sanitizeSceneName(show_name) + ' ' + \
str(ep_obj.airdate).replace('-', '|') + '|' + \
str(ep_obj.airdate).replace('-', '.') + '|' + \
ep_obj.airdate.strftime('%b')
search_string['Episode'].append(ep_string)
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