瀏覽代碼

[redtube] Extend _VALID_URL (#26506)

tags/2020.09.20
nixxo GitHub 3 年之前
父節點
當前提交
1ca5f821c8
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      youtube_dl/extractor/redtube.py

+ 4
- 1
youtube_dl/extractor/redtube.py 查看文件

@@ -15,7 +15,7 @@ from ..utils import (


class RedTubeIE(InfoExtractor):
_VALID_URL = r'https?://(?:(?:www\.)?redtube\.com/|embed\.redtube\.com/\?.*?\bid=)(?P<id>[0-9]+)'
_VALID_URL = r'https?://(?:(?:\w+\.)?redtube\.com/|embed\.redtube\.com/\?.*?\bid=)(?P<id>[0-9]+)'
_TESTS = [{
'url': 'http://www.redtube.com/66418',
'md5': 'fc08071233725f26b8f014dba9590005',
@@ -31,6 +31,9 @@ class RedTubeIE(InfoExtractor):
}, {
'url': 'http://embed.redtube.com/?bgcolor=000000&id=1443286',
'only_matching': True,
}, {
'url': 'http://it.redtube.com/66418',
'only_matching': True,
}]

@staticmethod


Loading…
取消
儲存