Private GIT

Skip to content
Snippets Groups Projects
Commit 1c1f8087 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge pull request #1873 from adampetrovic/master

SCC doesn't support searching dates with pipe characters. Use '.'
parents 7af9a845 7064211b
No related branches found
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