[scrolller] fix exception for albums with missing media (#7428)

fixes regression introduced in a44ea6b3d9
This commit is contained in:
Mike Fährmann
2025-04-27 08:56:44 +02:00
parent 87f02acd9e
commit d7c365e08c
3 changed files with 19 additions and 2 deletions

View File

@@ -73,6 +73,7 @@ __tests__ = (
{
"#url" : "https://scrolller.com/long-comic-the-twelve-tasks-of-eve-12ch1ve8ko",
"#comment": "album post (#7339)",
"#class" : scrolller.ScrolllerPostExtractor,
"#pattern": r"https://static\.scrolller\.com/\w+/long-comic-the-twelve-tasks-of-eve-\d+-\w+\.png",
"#count" : 177,
@@ -81,6 +82,17 @@ __tests__ = (
"num" : range(1, 177),
},
{
"#url" : "https://scrolller.com/some-quick-news-tboi-rule-34-mod-czedll1bum",
"#comment": "album post with empty 'mediaSources' (#7428)",
"#class" : scrolller.ScrolllerPostExtractor,
"#urls" : "https://static.scrolller.com/gamma/some-quick-news-tboi-rule-34-mod-1-50uolks94u.png",
"#count" : 1,
"count": 1,
"num" : 1,
},
{
"#url" : "https://scrolller.com/following",
"#class" : scrolller.ScrolllerFollowingExtractor,