Skip to content

[erome] handle deleted and copyrighted albums #8665

@powerfulsaber

Description

@powerfulsaber

When searching, I sometimes come across deleted and copyrighted albums. Currently, it'll raise a httperror exception when it encounters one:

[gallery-dl][debug] Starting DownloadJob for 'https://www.erome.com/a/qlV5z90y'
[erome][debug] Using EromeAlbumExtractor for 'https://www.erome.com/a/qlV5z90y'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.erome.com:443
[urllib3.connectionpool][debug] https://www.erome.com:443 "GET /a/qlV5z90y HTTP/1.1" 410 None
[erome][debug]
Traceback (most recent call last):
  File "gallery_dl/extractor/erome.py", line 75, in items
  File "gallery_dl/extractor/erome.py", line 42, in request
  File "gallery_dl/extractor/common.py", line 267, in request
gallery_dl.exception.HttpError: '410 Gone' for 'https://www.erome.com/a/qlV5z90y'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "gallery_dl/job.py", line 158, in run
  File "gallery_dl/job.py", line 209, in dispatch
  File "gallery_dl/extractor/erome.py", line 77, in items
gallery_dl.exception.AbortExtraction: qlV5z90y: Unable to fetch album page ('410 Gone' for 'https://www.erome.com/a/qlV5z90y')
[erome][error] qlV5z90y: Unable to fetch album page ('410 Gone' for 'https://www.erome.com/a/qlV5z90y')

I'd like to see it handle this and to log that it was either deleted or copyrighted instead.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions