浏览代码

[dbtv] Relax embed regex

Sergey M․ 9 年之前
父节点
当前提交
b0d578ff7b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/dbtv.py

+ 1 - 1
youtube_dl/extractor/dbtv.py

@@ -41,7 +41,7 @@ class DBTVIE(InfoExtractor):
     @staticmethod
     @staticmethod
     def _extract_urls(webpage):
     def _extract_urls(webpage):
         return [url for _, url in re.findall(
         return [url for _, url in re.findall(
-            r'<iframe[^>]+src=(["\'])((?:https?:)?//(?:www\.)?dbtv\.no/lazyplayer/\d+.*?)\1',
+            r'<iframe[^>]+src=(["\'])((?:https?:)?//(?:www\.)?dbtv\.no/(?:lazy)?player/\d+.*?)\1',
             webpage)]
             webpage)]
 
 
     def _real_extract(self, url):
     def _real_extract(self, url):