]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Extended valid urls schema
authorMikeCol <MikeCol@gmx.net>
Fri, 7 Feb 2014 23:09:26 +0000 (00:09 +0100)
committerMikeCol <MikeCol@gmx.net>
Fri, 7 Feb 2014 23:09:26 +0000 (00:09 +0100)
youtube_dl/extractor/tube8.py

index 4d9d41db3af2382bead67efa4afe6edbf9a6846e..3ec9442c9392fe6168d315925ee83f0df6222b5d 100644 (file)
@@ -11,7 +11,7 @@ from ..aes import (
 )
 
 class Tube8IE(InfoExtractor):
-    _VALID_URL = r'^(?:https?://)?(?:www\.)?(?P<url>tube8\.com/[^/]+/[^/]+/(?P<videoid>[0-9]+)/?)'
+    _VALID_URL = r'^(?:https?://)?(?:www\.)?(?P<url>tube8\.com/.+?/(?P<videoid>\d+)/?)$'
     _TEST = {
         u'url': u'http://www.tube8.com/teen/kasia-music-video/229795/',
         u'file': u'229795.mp4',