Browse Source

[vgtv] Add support for tv.aftonbladet.se (Closes #10800)

totalwebcasting
Sergey M․ 8 years ago
parent
commit
b0582fc806
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      youtube_dl/extractor/vgtv.py

+ 12
- 1
youtube_dl/extractor/vgtv.py View File

@ -22,6 +22,7 @@ class VGTVIE(XstreamIE):
'fvn.no/fvntv': 'fvntv',
'aftenposten.no/webtv': 'aptv',
'ap.vgtv.no/webtv': 'aptv',
'tv.aftonbladet.se/abtv': 'abtv',
}
_APP_NAME_TO_VENDOR = {
@ -30,6 +31,7 @@ class VGTVIE(XstreamIE):
'satv': 'sa',
'fvntv': 'fvn',
'aptv': 'ap',
'abtv': 'ab',
}
_VALID_URL = r'''(?x)
@ -40,7 +42,8 @@ class VGTVIE(XstreamIE):
/?
(?:
\#!/(?:video|live)/|
embed?.*id=
embed?.*id=|
articles/
)|
(?P<appname>
%s
@ -135,6 +138,14 @@ class VGTVIE(XstreamIE):
'url': 'http://www.vgtv.no/#!/video/127205/inside-the-mind-of-favela-funk',
'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):


Loading…
Cancel
Save