[pornhub:gif] extract 'viewkey' and 'timestamp' metadata (#4463)

https://github.com/mikf/gallery-dl/issues/4463#issuecomment-2014550302
pull/5372/head
Mike Fährmann 6 months ago
parent 7a7dc442a0
commit 4b6f47e571
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -143,6 +143,9 @@ class PornhubGifExtractor(PornhubExtractor):
"url" : extr('"contentUrl": "', '"'),
"date" : text.parse_datetime(
extr('"uploadDate": "', '"'), "%Y-%m-%d"),
"viewkey" : extr('From this video: '
'<a href="/view_video.php?viewkey=', '"'),
"timestamp": extr('lass="directLink tstamp" rel="nofollow">', '<'),
"user" : text.remove_html(extr("Created by:", "</div>")),
}

@ -62,9 +62,11 @@ __tests__ = (
"hardcore sex",
"babes 18 year",
],
"timestamp": "5:07",
"title" : "Intense sloppy blowjob of Danika Mori",
"url" : "https://el.phncdn.com/pics/gifs/043/726/891/43726891a.webm",
"user" : "Danika Mori",
"viewkey" : "64367c8c78a4a",
},
{

Loading…
Cancel
Save