Skip to content

extractor.schalenetwork.tags = true is not working not working #8625

@oldmenewme

Description

@oldmenewme

https://gdl-org.github.io/docs/configuration.html#extractor-schalenetwork-tags is not working.
I am getting the following error.

Traceback (most recent call last):
  File "~\Lib\site-packages\gallery_dl\job.py", line 152, in run
    for msg in extractor:
  File "~\Lib\site-packages\gallery_dl\extractor\common.py", line 773, in items
    data = self.metadata(page)
           ^^^^^^^^^^^^^^^^^^^
  File "~\Lib\site-packages\gallery_dl\extractor\schalenetwork.py", line 150, in metadata
    tags[tag.get("namespace", 0)].append(tag["name"])
         ^^^^^^^
AttributeError: 'str' object has no attribute 'get'

When checking source code, error seems to happen here
https://github.com/mikf/gallery-dl/blob/master/gallery_dl/extractor/schalenetwork.py#L141

data["tags"] is a list of strings, not a list of dicts

Example:

['general:fingering', 'general:lingerie', 'general:short hair', 'general:stockings', 'general:x-ray', 'artist:kise itsuki', 'magazine:comic kairakuten beast 2024-08', 'male:condom', 'female:petite', 'female:schoolgirl uniform', 'language:english', 'language:translated', 'other:full color', 'other:uncensored', 'other:vanilla']

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions