[vk] Add support for mobile URLs
authorSergey M․ <dstftw@gmail.com>
Sun, 29 Jun 2014 12:51:00 +0000 (19:51 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 29 Jun 2014 12:51:00 +0000 (19:51 +0700)
youtube_dl/extractor/vk.py

index c48528ad973973a557a8129ecf0997fc74f3dd74..4afb059235ecaf9024ed8c2ad0721ff63cf4260a 100644 (file)
@@ -16,7 +16,7 @@ from ..utils import (
 
 class VKIE(InfoExtractor):
     IE_NAME = 'vk.com'
-    _VALID_URL = r'https?://vk\.com/(?:video_ext\.php\?.*?\boid=(?P<oid>-?\d+).*?\bid=(?P<id>\d+)|(?:.+?\?.*?z=)?video(?P<videoid>.*?)(?:\?|%2F|$))'
+    _VALID_URL = r'https?://(?:m\.)?vk\.com/(?:video_ext\.php\?.*?\boid=(?P<oid>-?\d+).*?\bid=(?P<id>\d+)|(?:.+?\?.*?z=)?video(?P<videoid>.*?)(?:\?|%2F|$))'
     _NETRC_MACHINE = 'vk'
 
     _TESTS = [