[erome] tests

This commit is contained in:
Mike Fährmann
2023-11-20 22:41:12 +01:00
parent c6ad9bcd9b
commit a43cf78bb7
2 changed files with 6 additions and 2 deletions

View File

@@ -44,13 +44,15 @@ class EromeExtractor(Extractor):
pos = page.index('<div class="user-profile', pos)
user, pos = text.extract(
page, 'href="https://www.erome.com/', '"', pos)
count = text.extr(page, 'fa-camera"></i>', '</span>')
count, pos = text.extract(
page, 'fa-camera"></i>', '</span>', pos)
data = {
"album_id" : album_id,
"title" : text.unescape(title),
"user" : text.unquote(user),
"_http_headers": {"Referer": url},
"count" : count,
"count" : text.parse_int(count),
}
yield Message.Directory, data