[FetLife] Add new extractor - fixed test. Needs .netrc.
This commit is contained in:
parent
54ca369444
commit
1c0a5f8802
@ -12,18 +12,24 @@ from ..utils import (
|
|||||||
class FetLifeIE(JWPlatformBaseIE):
|
class FetLifeIE(JWPlatformBaseIE):
|
||||||
_VALID_URL = r'https?://fetlife\.com/users/[0-9]+/videos/(?P<id>[0-9]+)'
|
_VALID_URL = r'https?://fetlife\.com/users/[0-9]+/videos/(?P<id>[0-9]+)'
|
||||||
_LOGIN_URL = 'https://fetlife.com/users/sign_in'
|
_LOGIN_URL = 'https://fetlife.com/users/sign_in'
|
||||||
|
_NETRC_MACHINE = 'fetlife'
|
||||||
|
|
||||||
_TEST = {
|
_TEST = {
|
||||||
'url': 'https://fetlife.com/users/1537262/videos/660686',
|
'url': 'https://fetlife.com/users/1537262/videos/660686',
|
||||||
'md5': 'TODO: md5 sum of the first 10241 bytes of the video file (use --test)',
|
'md5': '83ca9598d9c10afde75a4e730a882560',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '660686',
|
'id': '660686',
|
||||||
'thumbnail': r'https://cap[0-9]\.fetlife\.com/thumbnails/660686/thumb_0000_345\.jpg\?token=[^\s]+',
|
'thumbnail': r're:^https?://.*\.jpg\?token=[^\s]+$',
|
||||||
'timestamp': 1484020451,
|
'timestamp': 1484020451,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'Sully Savage and Violet Monroe ',
|
'title': 'Sully Savage and Violet Monroe ',
|
||||||
'uploader': 'MissBratDom',
|
'uploader': 'MissBratDom',
|
||||||
'uploader_id': '1537262',
|
'uploader_id': '1537262',
|
||||||
|
'age_limit': 18,
|
||||||
|
'upload_date': '20170110',
|
||||||
|
},
|
||||||
|
'params': {
|
||||||
|
'usenetrc': True,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user