1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-16 06:15:46 +00:00

[southpark_de] Clean-up coding style

This commit is contained in:
Bastian Kern 2021-03-14 15:07:26 +01:00
parent 5e2839725f
commit 67d578b076
2 changed files with 5 additions and 3 deletions

View file

@ -142,7 +142,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
mediagen_url += 'hls' if use_hls else 'fms'
if (self._LANG):
mediagen_url += '&' if '?' in mediagen_url else '?'
mediagen_url += 'lang='+ self._LANG
mediagen_url += 'lang=' + self._LANG
mediagen_doc = self._download_xml(
mediagen_url, video_id, 'Downloading video urls', fatal=False)

View file

@ -85,10 +85,11 @@ class SouthParkDeIE(MTVServicesInfoExtractor):
'arcEp': 'shared.southpark.gsa.de',
'ep': '50c78199',
'imageEp': 'shared.southpark.gsa.de',
'clusterName' : 'EMEAA',
'clusterName': 'EMEAA',
'mgid': uri,
}
class SouthParkDeEnIE(SouthParkIE):
IE_NAME = 'southpark.de:en'
_VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.de/en/(?:video-clips|episodes|collections)/(?P<id>.+?)(\?|#|$))'
@ -120,10 +121,11 @@ class SouthParkDeEnIE(SouthParkIE):
'arcEp': 'shared.southpark.gsa.en',
'ep': '20476225',
'imageEp': 'shared.southpark.gsa.en',
'clusterName' : 'EMEAA',
'clusterName': 'EMEAA',
'mgid': uri,
}
class SouthParkNlIE(SouthParkIE):
IE_NAME = 'southpark.nl'
_VALID_URL = r'https?://(?:www\.)?(?P<url>southpark\.nl/(?:clips|(?:full-)?episodes|collections)/(?P<id>.+?)(\?|#|$))'