1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 15:14:14 +01:00

viafree: fix a warning with multiple spaces after ','

This commit is contained in:
Johan Andersson 2018-09-05 16:45:50 +02:00
parent 32aaabd9a9
commit a7aa860f61

View File

@ -217,7 +217,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
baseurl = self.url
match = re.search("(saeson|sasong|sesong)-\d+", urlparse(self.url).path)
if match:
if re.search("(avsnitt|episode)", urlparse(baseurl).path):
if re.search("(avsnitt|episode)", urlparse(baseurl).path):
baseurl = baseurl[:baseurl.rfind("/")]
baseurl = baseurl[:baseurl.rfind("/")]