[vgtv] Escape '#' in _VALID_URL and remove empty newlines at the end
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 9 May 2015 10:34:45 +0000 (12:34 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 9 May 2015 10:34:45 +0000 (12:34 +0200)
In verbose mode, '#' is interpreted as the start of a comment.

youtube_dl/extractor/vgtv.py

index db7a4bdb117df9747fbcbc6521c2465ac35dd65f..eb2652fb16cdc5b757e122f9dbc5584fa3f6369b 100644 (file)
@@ -17,7 +17,7 @@ class VGTVIE(InfoExtractor):
                     (?P<host>vgtv|bt)
                     (?:
                         :|
-                        \.no/(?:tv/)?#!/(?:video|live)/
+                        \.no/(?:tv/)?\#!/(?:video|live)/
                     )
                     (?P<id>[0-9]+)
                     '''
@@ -188,5 +188,3 @@ class BTVestlendingenIE(InfoExtractor):
 
     def _real_extract(self, url):
         return self.url_result('xstream:btno:%s' % self._match_id(url), 'Xstream')
-
-