RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Possible bug?

    Scheduled Pinned Locked Moved Help and Support
    bug reportselphscraperfavorites
    14 Posts 6 Posters 3.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gaavoid @rkoster
      last edited by

      @rkoster I think when a game is added to favourites, an entry in the gamelist.xml file is created for that game, so regardless if it has any other info (video/metadata/box art etc.), sselph's scraper will detect that it's already there and the gamelist.xml won't be updated unless you set it to overwrite rather than append. But if you overwrite it, then I would assume it would be removed from the favourites list.

      1 Reply Last reply Reply Quote 2
      • HexH
        Hex
        last edited by

        @pjft Might wanna take a look.

        Sent from 20,000 leagues under the sea.

        Powersaver Emulation station : https://github.com/hex007/EmulationStation
        ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

        1 Reply Last reply Reply Quote 1
        • pjftP
          pjft
          last edited by pjft

          Correct. Adding a favorite effectively creates an entry in the gamelist. As such, if the scraper does not support updating existing entries, it will claim it's already in the gamelist (which it is).

          I do wonder if that's the case, though - might be worth asking @sselph if the scraper supports metadata merging for previously existing entries. If it doesn't, my concern is that re-scraping will overwrite the previous metadata (which means losing the favorite status).

          It's the same if you edit a game's metadata and then decide to scrape it afterwards :/

          S 1 Reply Last reply Reply Quote 0
          • S
            sselph @pjft
            last edited by

            @pjft Today with regards to the favorites it is either overwriting the entry(removing any favorite/last played/etc) or appending (completely ignoring it).

            Auto-scraper: https://github.com/sselph/scraper
            Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

            1 Reply Last reply Reply Quote 1
            • rkosterR
              rkoster
              last edited by rkoster

              I took the plunge and went ahead and scraped again with Selph's Scraper set to overwrite. Favorites for that system, as expected, disappeared. I'll just recreate the faves for that system, but it does seem like a note should be made in the docs for favorites that one should scrape BEFORE marking faves.

              Github/helper scripts * Creativision/Arcadia/Astrocade guide * Amiga guide * Atari 8bit guide

              pjftP 1 Reply Last reply Reply Quote 1
              • pjftP
                pjft @rkoster
                last edited by

                @rkoster thanks. I suppose when I document the whole collections bit I'll make sure to add that there.

                Thank you!

                1 Reply Last reply Reply Quote 0
                • pjftP
                  pjft
                  last edited by

                  Hi all.

                  I was thinking about this yesterday, per chance, and I think I have a fix for it in ES.

                  https://github.com/pjft/EmulationStation/tree/Fix-Scraping-Data

                  I haven't compiled it and tested it yet, as I don't have access to a build and runtime environment for the moment, alas. That being said, it seems reasonably straightforward.

                  Now, the concern with using @sselph 's scraper is that, while for me it is the best, it does not run within ES, so this fix will not help with that.

                  @sselph : a question/though - would you think it'd be manageable, in your scraper, to implement this in a non-destructive manner? Meaning, any existing non-scrapeable data for a particular entry should be kept, rather than destroyed?

                  There are a few that come to mind, at least: favorites, last played and times played, but in the future potentially kid-friendly, etc.

                  I don't know the inner workings of your scraper - do you check if there's an entry before scraping at all? - but I wanted to bring this up here as well, and also open to thoughts.

                  Thanks.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sselph @pjft
                    last edited by

                    @pjft So as mentioned before the default is to overwrite the entire xml. I have another mode that will append to the xml which doesn't touch anything that already exists. I think what you are asking for is something in the middle. If the entry already exists and I get a result from scraping, preserve the non-scraped data. If the entry can't be scraped, keep what exists.

                    This could be possible but I have to know all the fields that need to be preserved. The way the xml library works, I have to declare every field.

                    Auto-scraper: https://github.com/sselph/scraper
                    Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

                    pjftP 1 Reply Last reply Reply Quote 1
                    • pjftP
                      pjft @sselph
                      last edited by

                      @sselph thanks and sorry for the delay. I replied in more detail on GitHub, but let me know if it's not clear.

                      Thank you.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sselph @pjft
                        last edited by

                        @pjft I know you don't want to dig through my code but these are the fields I recognize already:
                        https://github.com/sselph/scraper/blob/master/rom/rom.go#L505
                        You said favorites, lastplayed and playcount
                        I have lastplayed and playcount but have favorite not favorites which is it?

                        Auto-scraper: https://github.com/sselph/scraper
                        Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

                        pjftP 1 Reply Last reply Reply Quote 1
                        • pjftP
                          pjft @sselph
                          last edited by

                          @sselph I don't have a problem digging through your code :)

                          It is "favorite", that's correct. Sorry for that - I've been mostly answering these on my phone for the moment, mistakes will happen.

                          Thanks!

                          1 Reply Last reply Reply Quote 0
                          • Z
                            Zigurana
                            last edited by Zigurana

                            @sselph , could you please also add hidden and kidgame to the list of tags to ignore and retain?

                            If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              sselph @Zigurana
                              last edited by

                              @zigurana said in Possible bug?:

                              hidden and kidgame

                              done

                              Auto-scraper: https://github.com/sselph/scraper
                              Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post

                              Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                              Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.