Skip to content

[kemono] AttributeError: 'str' object has no attribute 'copy' #8929

@XCanG

Description

@XCanG
>gallery-dl --verbose https://kemono.cr/patreon/user/17152737/post/126135488
[gallery-dl][debug] Version 1.31.4
[gallery-dl][debug] Python 3.14.2 - Windows-10-10.0.19043-SP0
[gallery-dl][debug] requests 2.32.5 - urllib3 2.6.2
[gallery-dl][debug] Configuration Files ['%USERPROFILE%\\gallery-dl.conf']
[gallery-dl][debug] Starting DownloadJob for 'https://kemono.cr/patreon/user/17152737/post/126135488'
[kemono][debug] Using KemonoPostExtractor for 'https://kemono.cr/patreon/user/17152737/post/126135488'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): kemono.cr:443
[urllib3.connectionpool][debug] https://kemono.cr:443 "GET /api/v1/patreon/user/17152737/post/126135488 HTTP/1.1" 200 None
[urllib3.connectionpool][debug] https://kemono.cr:443 "GET /api/v1/patreon/user/17152737/post/126135488/revisions HTTP/1.1" 200 733
[kemono][error] An unexpected error occurred: AttributeError - 'str' object has no attribute 'copy'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[kemono][debug]
Traceback (most recent call last):
  File "C:\Python\Python314\Lib\site-packages\gallery_dl\job.py", line 158, in run
    msg = self.dispatch(extractor)
  File "C:\Python\Python314\Lib\site-packages\gallery_dl\job.py", line 209, in dispatch
    for msg, url, kwdict in messages:
                            ^^^^^^^^
  File "C:\Python\Python314\Lib\site-packages\gallery_dl\extractor\kemono.py", line 84, in items
    for post in posts:
                ^^^^^
  File "C:\Python\Python314\Lib\site-packages\gallery_dl\extractor\kemono.py", line 251, in <genexpr>
    self._revisions_post(post) for post in posts)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "C:\Python\Python314\Lib\site-packages\gallery_dl\extractor\kemono.py", line 266, in _revisions_post
    rev["revision_hash"] = self._revision_hash(rev)
                           ~~~~~~~~~~~~~~~~~~~^^^^^
  File "C:\Python\Python314\Lib\site-packages\gallery_dl\extractor\kemono.py", line 309, in _revision_hash
    rev["file"] = rev["file"].copy()
                  ^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'copy'

In conf it is setup to "revisions": "unique"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions