about summary refs log tree commit diff
path: root/youtube_dl/extractor/vgtv.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-05-09 12:34:45 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-05-09 12:34:45 +0200
commit5c0b2c16a80c509dbcee48f48da3de0bf9912cda (patch)
tree2603dd2dbc074221d0bba62d5a31d22ee33f4551 /youtube_dl/extractor/vgtv.py
parentd39e0f05db226ef5691f5730d40da796aec6bac6 (diff)
downloadyoutube-dl-5c0b2c16a80c509dbcee48f48da3de0bf9912cda.tar.gz
youtube-dl-5c0b2c16a80c509dbcee48f48da3de0bf9912cda.tar.xz
youtube-dl-5c0b2c16a80c509dbcee48f48da3de0bf9912cda.zip
[vgtv] Escape '#' in _VALID_URL and remove empty newlines at the end
In verbose mode, '#' is interpreted as the start of a comment.
Diffstat (limited to 'youtube_dl/extractor/vgtv.py')
-rw-r--r--youtube_dl/extractor/vgtv.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/vgtv.py b/youtube_dl/extractor/vgtv.py
index db7a4bdb1..eb2652fb1 100644
--- a/youtube_dl/extractor/vgtv.py
+++ b/youtube_dl/extractor/vgtv.py
@@ -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')
-
-