]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vgtv] Add support for www.aftonbladet.se/tv/ URLs
authorSergey M․ <dstftw@gmail.com>
Mon, 18 Jun 2018 16:08:35 +0000 (23:08 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 18 Jun 2018 16:08:35 +0000 (23:08 +0700)
youtube_dl/extractor/vgtv.py

index c21a09c01f03035b092a09ab314bf73430cd7d5a..d430e2944350751ab20de498c7ce9a270f0795ef 100644 (file)
@@ -24,6 +24,7 @@ class VGTVIE(XstreamIE):
         'aftenposten.no/webtv': 'aptv',
         'ap.vgtv.no/webtv': 'aptv',
         'tv.aftonbladet.se/abtv': 'abtv',
+        'www.aftonbladet.se/tv': 'abtv',
     }
 
     _APP_NAME_TO_VENDOR = {
@@ -44,7 +45,7 @@ class VGTVIE(XstreamIE):
                     (?:
                         (?:\#!/)?(?:video|live)/|
                         embed?.*id=|
-                        articles/
+                        a(?:rticles)?/
                     )|
                     (?P<appname>
                         %s
@@ -143,6 +144,10 @@ class VGTVIE(XstreamIE):
             'url': 'http://tv.aftonbladet.se/abtv/articles/36015',
             'only_matching': True,
         },
+        {
+            'url': 'https://www.aftonbladet.se/tv/a/36015',
+            'only_matching': True,
+        },
         {
             'url': 'abtv:140026',
             'only_matching': True,