mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 23:25:06 +00:00
[vgtv] Add support for tv.aftonbladet.se (Closes #10800)
This commit is contained in:
parent
af33dd8ee7
commit
b0582fc806
1 changed files with 12 additions and 1 deletions
|
@ -22,6 +22,7 @@ class VGTVIE(XstreamIE):
|
||||||
'fvn.no/fvntv': 'fvntv',
|
'fvn.no/fvntv': 'fvntv',
|
||||||
'aftenposten.no/webtv': 'aptv',
|
'aftenposten.no/webtv': 'aptv',
|
||||||
'ap.vgtv.no/webtv': 'aptv',
|
'ap.vgtv.no/webtv': 'aptv',
|
||||||
|
'tv.aftonbladet.se/abtv': 'abtv',
|
||||||
}
|
}
|
||||||
|
|
||||||
_APP_NAME_TO_VENDOR = {
|
_APP_NAME_TO_VENDOR = {
|
||||||
|
@ -30,6 +31,7 @@ class VGTVIE(XstreamIE):
|
||||||
'satv': 'sa',
|
'satv': 'sa',
|
||||||
'fvntv': 'fvn',
|
'fvntv': 'fvn',
|
||||||
'aptv': 'ap',
|
'aptv': 'ap',
|
||||||
|
'abtv': 'ab',
|
||||||
}
|
}
|
||||||
|
|
||||||
_VALID_URL = r'''(?x)
|
_VALID_URL = r'''(?x)
|
||||||
|
@ -40,7 +42,8 @@ class VGTVIE(XstreamIE):
|
||||||
/?
|
/?
|
||||||
(?:
|
(?:
|
||||||
\#!/(?:video|live)/|
|
\#!/(?:video|live)/|
|
||||||
embed?.*id=
|
embed?.*id=|
|
||||||
|
articles/
|
||||||
)|
|
)|
|
||||||
(?P<appname>
|
(?P<appname>
|
||||||
%s
|
%s
|
||||||
|
@ -135,6 +138,14 @@ class VGTVIE(XstreamIE):
|
||||||
'url': 'http://www.vgtv.no/#!/video/127205/inside-the-mind-of-favela-funk',
|
'url': 'http://www.vgtv.no/#!/video/127205/inside-the-mind-of-favela-funk',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'url': 'http://tv.aftonbladet.se/abtv/articles/36015',
|
||||||
|
'only_matching': True,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'url': 'abtv:140026',
|
||||||
|
'only_matching': True,
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in a new issue