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

https://github.com/mikf/gallery-dl/issues/4463#issuecomment-2014550302
This commit is contained in:
Mike Fährmann
2024-03-22 18:00:20 +01:00
parent 7a7dc442a0
commit 4b6f47e571
2 changed files with 5 additions and 0 deletions

View File

@@ -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>")),
}