mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-01-31 19:51:34 +01:00
[xvideos] fix metadata extraction
This commit is contained in:
parent
adc3aa0b77
commit
5b979b5706
@ -38,13 +38,13 @@ class XvideosGalleryExtractor(XvideosBase, GalleryExtractor):
|
||||
|
||||
def metadata(self, page):
|
||||
extr = text.extract_from(page)
|
||||
title = extr('"title":"', '"')
|
||||
user = {
|
||||
"id" : text.parse_int(extr('"id_user":', ',')),
|
||||
"display": extr('"display":"', '"'),
|
||||
"sex" : extr('"sex":"', '"'),
|
||||
"name" : self.user,
|
||||
}
|
||||
title = extr('"title":"', '"')
|
||||
user["description"] = extr(
|
||||
'<small class="mobile-hide">', '</small>').strip()
|
||||
tags = extr('<em>Tagged:</em>', '<').strip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user