mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-28 22:45:15 +00:00
[vidme] Always use the non-embedded page
For example, https://vid.me/Wmur contains more information than https://vid.me/e/Wmur
This commit is contained in:
parent
d23da75b32
commit
23dd1fc74c
@ -10,7 +10,7 @@ from ..utils import (
|
|||||||
|
|
||||||
class VidmeIE(InfoExtractor):
|
class VidmeIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://vid\.me/(?:e/)?(?P<id>[\da-zA-Z]+)'
|
_VALID_URL = r'https?://vid\.me/(?:e/)?(?P<id>[\da-zA-Z]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://vid.me/QNB',
|
'url': 'https://vid.me/QNB',
|
||||||
'md5': 'f42d05e7149aeaec5c037b17e5d3dc82',
|
'md5': 'f42d05e7149aeaec5c037b17e5d3dc82',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -23,9 +23,14 @@ class VidmeIE(InfoExtractor):
|
|||||||
'upload_date': '20140725',
|
'upload_date': '20140725',
|
||||||
'thumbnail': 're:^https?://.*\.jpg',
|
'thumbnail': 're:^https?://.*\.jpg',
|
||||||
},
|
},
|
||||||
}
|
}, {
|
||||||
|
# From http://naked-yogi.tumblr.com/post/118312946248/naked-smoking-stretching
|
||||||
|
'url': 'https://vid.me/e/Wmur',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
url = url.replace('vid.me/e/', 'vid.me/')
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user