From b8874d4d4ea3becfde813d451d884bce558fe213 Mon Sep 17 00:00:00 2001 From: megustamucho Date: Tue, 9 Sep 2014 12:46:58 +1000 Subject: [PATCH 1/2] [tube8] Improved regex --- youtube_dl/extractor/tube8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/tube8.py b/youtube_dl/extractor/tube8.py index 08a48c05a..39f20c546 100644 --- a/youtube_dl/extractor/tube8.py +++ b/youtube_dl/extractor/tube8.py @@ -14,7 +14,7 @@ from ..aes import aes_decrypt_text class Tube8IE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?tube8\.com/(?:[^/]+/){2}(?P\d+)' + _VALID_URL = r'https?://(?:www\.)?tube8\.com/(?:gay/|shemale/)?(?:[^/]+/){2}(?P\d+)' _TEST = { 'url': 'http://www.tube8.com/teen/kasia-music-video/229795/', 'md5': '44bf12b98313827dd52d35b8706a4ea0', From 94b539d15505daf5213d5c4de7c2fde08b5d2f40 Mon Sep 17 00:00:00 2001 From: megustamucho Date: Tue, 9 Sep 2014 12:46:58 +1000 Subject: [PATCH 2/2] [tube8] Improved regex --- youtube_dl/extractor/tube8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/tube8.py b/youtube_dl/extractor/tube8.py index 08a48c05a..39f20c546 100644 --- a/youtube_dl/extractor/tube8.py +++ b/youtube_dl/extractor/tube8.py @@ -14,7 +14,7 @@ from ..aes import aes_decrypt_text class Tube8IE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?tube8\.com/(?:[^/]+/){2}(?P\d+)' + _VALID_URL = r'https?://(?:www\.)?tube8\.com/(?:gay/|shemale/)?(?:[^/]+/){2}(?P\d+)' _TEST = { 'url': 'http://www.tube8.com/teen/kasia-music-video/229795/', 'md5': '44bf12b98313827dd52d35b8706a4ea0',