1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 16:17:18 +08:00

orf: Fix typo and flake8 errors

This commit is contained in:
hh0rva1h 2020-04-24 09:33:37 +02:00
parent c9ddb997f8
commit 1d8f34a30f

View File

@ -162,7 +162,6 @@ class ORFTVthekIE(InfoExtractor):
class ORFRadioIE(InfoExtractor):
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
station = mobj.group('station')
show_date = mobj.group('date')
show_id = mobj.group('show')
@ -236,6 +235,7 @@ class ORFNOEIE(ORFRadioIE):
'only_matching': True,
}
class ORFWIEIE(ORFRadioIE):
IE_NAME = 'orf:wien'
IE_DESC = 'Radio Wien'
@ -311,7 +311,7 @@ class ORFSBGIE(ORFRadioIE):
class ORFTIRIE(ORFRadioIE):
IE_NAME = 'orf:tirol'
IE_DESC = 'Radio Tirol'
_VALID_URL = r'https?://(?P<station>salzburg)\.orf\.at/player/(?P<date>[0-9]+)/(?P<show>\w+)'
_VALID_URL = r'https?://(?P<station>tirol)\.orf\.at/player/(?P<date>[0-9]+)/(?P<show>\w+)'
api_station = "tir"
loop_station = "oe2t"