mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-05 09:56:20 +00:00
Accept suggested change by @davidphood
Co-Authored-By: DanielHeath <daniel@heath.cc>
This commit is contained in:
parent
4bafc5ec3c
commit
92d90f65f5
@ -105,7 +105,7 @@ class ABCIE(InfoExtractor):
|
|||||||
|
|
||||||
class ABCIViewShowIE(InfoExtractor):
|
class ABCIViewShowIE(InfoExtractor):
|
||||||
IE_NAME = 'abc.net.au:iview:show'
|
IE_NAME = 'abc.net.au:iview:show'
|
||||||
_VALID_URL = r'https?://iview\.abc\.net\.au/(?:[^/]+/)*show/(?P<id>[^/?#]+)/?$'
|
_VALID_URL = r'https?://iview\.abc\.net\.au/(?:[^/]+/)*show/(?P<id>[^/?#]+)/?'
|
||||||
_GEO_COUNTRIES = ['AU']
|
_GEO_COUNTRIES = ['AU']
|
||||||
|
|
||||||
# ABC iview programs are normally available for 14 days only.
|
# ABC iview programs are normally available for 14 days only.
|
||||||
@ -122,6 +122,10 @@ class ABCIViewShowIE(InfoExtractor):
|
|||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def suitable(cls, url):
|
||||||
|
return False if ABCIViewIE.suitable(url) else super(ABCIViewShowIE, cls).suitable(url)
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
show_id = self._match_id(url)
|
show_id = self._match_id(url)
|
||||||
show_data = self._download_json('https://api.iview.abc.net.au/v2/show/' + show_id, show_id)
|
show_data = self._download_json('https://api.iview.abc.net.au/v2/show/' + show_id, show_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user