muldjord / skyscraper

Powerful and versatile game scraper written in c++
GNU General Public License v3.0
489 stars 128 forks source link

[RFC] Subfolders #324

Open a8bit opened 2 years ago

a8bit commented 2 years ago

I can't find any documentation on how skyscraper handles subfolders and the metadata for them. Could you explain how this functionality is implemented?

Here's my particular use case, I'd like to set up skyscraper to handle this when I build a gamelist but I don't know how.

I have the usual system rom folders, gb/gbc/snes, etc. Inside those folders I have a "Homebrew" and a "Demo" folder, the same two folders in every system rom folder. In my gamelist.xml I have

    <folder>
        <name>Homebrew</name>
        <desc>Homebrew and Hacks</desc>
        <image>./.media/folders/homebrew.png</image>
        <thumbnail>./.media/folders/folder.svg</thumbnail>
        <path>./Homebrew</path>
    </folder>
    <folder>
        <name>Demos</name>
        <desc>Demoscene Releases</desc>
        <image>./.media/folders/demo.png</image>
        <thumbnail>./.media/folders/folder.svg</thumbnail>
        <path>./Demos</path>
    </folder>

to give the folders some metadata.

I expect there is something I can do when importing custom data to include subfolder metadata but I can't see how to do it.

muldjord commented 2 years ago

Skyscraper doesn't scrape and add folder entries unless it is for a cd-rom based system. I don't think there's a good solution to your use case with Skyscraper at the moment, sorry.

EDIT: Btw, you might have better luck asking in the RetroPie forums. I'm pretty sure others have your use case. There's some clever people on there and someone might have found a workaround.

I'm not working on Skyscraper currently and I have to admit I don't even know how folders work in gamelists in the newer versions of ES. I've never arranged roms this way myself, so I've never had any use for it and therefore haven't implemented it in a useful way - yet.