kopia lustrzana https://github.com/yt-dlp/yt-dlp
[on.orf.at] fix url parsing
some urls are without slug also some video-Id's are shorter that 8 digits and could probably be bigger than 8pull/9677/head
rodzic
f9c443ba2c
commit
8c6550ae43
|
@ -569,7 +569,7 @@ class ORFFM4StoryIE(InfoExtractor):
|
|||
|
||||
class ORFONIE(InfoExtractor):
|
||||
IE_NAME = 'orf:on'
|
||||
_VALID_URL = r'https?://on\.orf\.at/video/(?P<id>\d{8})/(?P<slug>[\w-]+)'
|
||||
_VALID_URL = r'https?://on\.orf\.at/video/(?P<id>\d+)(/(?P<slug>[\w-]+))?'
|
||||
_TESTS = [{
|
||||
'url': 'https://on.orf.at/video/14210000/school-of-champions-48',
|
||||
'info_dict': {
|
||||
|
@ -631,6 +631,8 @@ class ORFONIE(InfoExtractor):
|
|||
|
||||
def _real_extract(self, url):
|
||||
video_id, display_id = self._match_valid_url(url).group('id', 'slug')
|
||||
if display_id is None:
|
||||
display_id = video_id
|
||||
webpage = self._download_webpage(url, display_id)
|
||||
|
||||
return {
|
||||
|
|
Ładowanie…
Reference in New Issue