[nrk] Inline _extract_from_playback

pull/27650/head
Sergey M․ 4 years ago
parent 7b643d4cd0
commit cabfd4b1f0
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

@ -143,7 +143,9 @@ class NRKIE(NRKBaseIE):
'only_matching': True,
}]
def _extract_from_playback(self, video_id):
def _real_extract(self, url):
video_id = self._match_id(url).split('/')[-1]
path_templ = 'playback/%s/' + video_id
def call_playback_api(item, query=None):
@ -212,10 +214,6 @@ class NRKIE(NRKBaseIE):
'formats': formats,
}
def _real_extract(self, url):
video_id = self._match_id(url).split('/')[-1]
return self._extract_from_playback(video_id)
class NRKTVIE(InfoExtractor):
IE_DESC = 'NRK TV and NRK Radio'

Loading…
Cancel
Save