Skip to content

[DeviantArt] KeyError: 'src' when downloading videos off DeviantArt #9307

@BelleDame123

Description

@BelleDame123

When downloading from a gallery I have multiple in the past, it gets through a certain amount of downloads before pulling this error.

  File "C:\Users\Programs\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 158, in run
    msg = self.dispatch(extractor)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Programs\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 209, in dispatch
    for msg, url, kwdict in messages:
                            ^^^^^^^^
  File "C:\Users\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 167, in items
    yield self.commit(deviation, content)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 281, in commit
    url = target["src"]
          ~~~~~~^^^^^^^
KeyError: 'src'

A similar thing happens with another gallery I'm trying to download.

  File "C:\Users\Programs\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 158, in run
    msg = self.dispatch(extractor)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Programs\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 209, in dispatch
    for msg, url, kwdict in messages:
                            ^^^^^^^^
  File "C:\Users\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 167, in items
    yield self.commit(deviation, content)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 281, in commit
    url = target["src"]
          ~~~~~~^^^^^^^

What does this error mean and how could I try to fix it?

After doing some digging I found that the error also appears when attempting to download videos by themself, which were in the galleries I was downloading.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions