mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-11-09 04:22:41 +01:00
[vidme:user] Relax _VALID_URLs
This commit is contained in:
parent
c1c1585b31
commit
0b4a8eb3ac
@ -263,29 +263,43 @@ class VidmeListBaseIE(InfoExtractor):
|
|||||||
|
|
||||||
class VidmeUserIE(VidmeListBaseIE):
|
class VidmeUserIE(VidmeListBaseIE):
|
||||||
IE_NAME = 'vidme:user'
|
IE_NAME = 'vidme:user'
|
||||||
_VALID_URL = r'https?://vid\.me/(?:e/)?(?P<id>[\da-zA-Z]{6,})(?!/likes)(?:[^\da-zA-Z]|$)'
|
_VALID_URL = r'https?://vid\.me/(?:e/)?(?P<id>[\da-zA-Z_-]{6,})(?!/likes)(?:[^\da-zA-Z_-]|$)'
|
||||||
_API_ITEM = 'list'
|
_API_ITEM = 'list'
|
||||||
_TITLE = 'Videos'
|
_TITLE = 'Videos'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://vid.me/EFARCHIVE',
|
'url': 'https://vid.me/MasakoX',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '3834632',
|
'id': '16112341',
|
||||||
'title': 'EFARCHIVE - %s' % _TITLE,
|
'title': 'MasakoX - %s' % _TITLE,
|
||||||
},
|
},
|
||||||
'playlist_mincount': 238,
|
'playlist_mincount': 191,
|
||||||
}
|
}, {
|
||||||
|
'url': 'https://vid.me/unsQuare_netWork',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '16148757',
|
||||||
|
'title': 'unsQuare_netWork - %s' % _TITLE,
|
||||||
|
},
|
||||||
|
'playlist_mincount': 73,
|
||||||
|
}]
|
||||||
|
|
||||||
|
|
||||||
class VidmeUserLikesIE(VidmeListBaseIE):
|
class VidmeUserLikesIE(VidmeListBaseIE):
|
||||||
IE_NAME = 'vidme:user:likes'
|
IE_NAME = 'vidme:user:likes'
|
||||||
_VALID_URL = r'https?://vid\.me/(?:e/)?(?P<id>[\da-zA-Z]{6,})/likes'
|
_VALID_URL = r'https?://vid\.me/(?:e/)?(?P<id>[\da-zA-Z_-]{6,})/likes'
|
||||||
_API_ITEM = 'likes'
|
_API_ITEM = 'likes'
|
||||||
_TITLE = 'Likes'
|
_TITLE = 'Likes'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://vid.me/ErinAlexis/likes',
|
'url': 'https://vid.me/ErinAlexis/likes',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '6483530',
|
'id': '6483530',
|
||||||
'title': 'ErinAlexis - %s' % _TITLE,
|
'title': 'ErinAlexis - %s' % _TITLE,
|
||||||
},
|
},
|
||||||
'playlist_mincount': 415,
|
'playlist_mincount': 415,
|
||||||
}
|
}, {
|
||||||
|
'url': 'https://vid.me/Kaleidoscope-Ish/likes',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '16908594',
|
||||||
|
'title': 'Kaleidoscope-Ish - %s' % _TITLE,
|
||||||
|
},
|
||||||
|
'playlist_mincount': 43,
|
||||||
|
}]
|
||||||
|
Loading…
Reference in New Issue
Block a user