mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
[imgur] fix parsing
This commit is contained in:
parent
129ca282e4
commit
4427734b70
@ -41,8 +41,7 @@ class ImgurExtractor(Extractor):
|
||||
|
||||
def get_job_metadata(self, page):
|
||||
"""Collect metadata for extractor-job"""
|
||||
_ , pos = text.extract(page, '<h1 ', '>')
|
||||
title, pos = text.extract(page, '', '</h1>', pos)
|
||||
title, _ = text.extract(page, '<meta property="og:title" content="', '"')
|
||||
return {
|
||||
"category": info["category"],
|
||||
"album-key": self.album,
|
||||
|
Loading…
Reference in New Issue
Block a user