1
0
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:
davidphood 2019-04-26 12:34:07 +10:00 committed by Daniel Heath
parent 4bafc5ec3c
commit 92d90f65f5

View File

@ -105,7 +105,7 @@ class ABCIE(InfoExtractor):
class ABCIViewShowIE(InfoExtractor):
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']
# 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):
show_id = self._match_id(url)
show_data = self._download_json('https://api.iview.abc.net.au/v2/show/' + show_id, show_id)