瀏覽代碼

[vgtv] Escape '#' in _VALID_URL and remove empty newlines at the end

In verbose mode, '#' is interpreted as the start of a comment.
Jaime Marquínez Ferrándiz 10 年之前
父節點
當前提交
5c0b2c16a8
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      youtube_dl/extractor/vgtv.py

+ 1 - 3
youtube_dl/extractor/vgtv.py

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