[imgur] fix parsing
This commit is contained in:
@@ -41,8 +41,7 @@ class ImgurExtractor(Extractor):
|
|||||||
|
|
||||||
def get_job_metadata(self, page):
|
def get_job_metadata(self, page):
|
||||||
"""Collect metadata for extractor-job"""
|
"""Collect metadata for extractor-job"""
|
||||||
_ , pos = text.extract(page, '<h1 ', '>')
|
title, _ = text.extract(page, '<meta property="og:title" content="', '"')
|
||||||
title, pos = text.extract(page, '', '</h1>', pos)
|
|
||||||
return {
|
return {
|
||||||
"category": info["category"],
|
"category": info["category"],
|
||||||
"album-key": self.album,
|
"album-key": self.album,
|
||||||
|
|||||||
Reference in New Issue
Block a user