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

Re-added restrictions to the id expression until the following can be otherwise distinguished:

https://iview.abc.net.au/programs/play-school-celebrity-covers
https://iview.abc.net.au/programs/CK1752H001S00
This commit is contained in:
David Hood 2019-04-25 23:56:06 +10:00
parent 2b90c649bb
commit ccf7ed236f

View File

@ -105,7 +105,7 @@ class ABCIE(InfoExtractor):
class ABCIViewIE(InfoExtractor): class ABCIViewIE(InfoExtractor):
IE_NAME = 'abc.net.au:iview' IE_NAME = 'abc.net.au:iview'
_VALID_URL = r'https?://iview\.abc\.net\.au/(?:(?:[^/]+/)*video/|programs/(?:[^/]+/)*)(?P<id>[^/?#]+)' _VALID_URL = r'https?://iview\.abc\.net\.au/(?:(?:[^/]+/)*video/|programs/(?:[^/]+/)*)(?P<id>[A-Z0-9]+)'
_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.
@ -231,7 +231,7 @@ class ABCIViewIE(InfoExtractor):
class ABCIViewShowIE(ABCIViewIE): class ABCIViewShowIE(ABCIViewIE):
IE_NAME = 'abc.net.au:iview:show' IE_NAME = 'abc.net.au:iview:show'
_VALID_URL = r'https?://iview\.abc\.net\.au/(show|programs)/(?P<id>[^/?#]+)/?' _VALID_URL = r'https?://iview\.abc\.net\.au/(?:show|programs)/(?P<id>[a-z0-9\-]+)/?'
_TESTS = [ _TESTS = [
{ {