[erome] improve error message for deleted & copyrighted albums (#8665)

This commit is contained in:
Mike Fährmann
2025-12-09 11:59:04 +01:00
parent 4ee998df0a
commit b141bbd2ae
2 changed files with 20 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
# published by the Free Software Foundation.
from gallery_dl.extractor import erome
from gallery_dl import exception
__tests__ = (
@@ -38,6 +39,20 @@ __tests__ = (
"user" : "yYgWBZw8o8qsMzM",
},
{
"#url" : "https://www.erome.com/a/qlV5z90y",
"#comment" : "deleted album (#8665)",
"#class" : erome.EromeAlbumExtractor,
"#exception": exception.AbortExtraction,
},
{
"#url" : "https://www.erome.com/a/ACGo2Pmy",
"#comment" : "copyrighted album (#8665)",
"#class" : erome.EromeAlbumExtractor,
"#exception": exception.AbortExtraction,
},
{
"#url" : "https://www.erome.com/yYgWBZw8o8qsMzM",
"#category": ("", "erome", "user"),