[erome] skip deleted albums (fixes #1447)

This commit is contained in:
Mike Fährmann
2021-04-09 15:24:18 +02:00
parent 457abf0e71
commit fe6ce5b8f8

View File

@@ -9,7 +9,7 @@
"""Extractors for https://www.erome.com/"""
from .common import Extractor, Message
from .. import text, util
from .. import text, util, exception
from ..cache import cache
import itertools
import time
@@ -32,7 +32,13 @@ class EromeExtractor(Extractor):
def items(self):
for album_id in self.albums():
url = "{}/a/{}".format(self.root, album_id)
page = self.request(url).text
try:
page = self.request(url).text
except exception.HttpError as exc:
self.log.warning(
"Unable to fetch album '%s' (%s)", album_id, exc)
continue
title, pos = text.extract(
page, 'property="og:title" content="', '"')