• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • R
    rkoster
    last edited by 26 Jul 2017, 07:29

    This is easy enough to solve manually, but I wanted to report it just in case it's a legit bug.

    1. Install your MAME roms in /roms/mame-libretro
    2. go ahead and mark favorites from within emulationstation
    3. exit emulationstation and launch Selph's Scraper and scrape the mame-libretro roms

    What happened to me, at least, is that each game marked as favorite failed to scrape, with the message "already in gamelist."

    Order of operations thing? Not sure, but it would take me a bit of time to replicate because I'd have to wipe everything and start over...

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

    G 1 Reply Last reply 26 Jul 2017, 07:55 Reply Quote 0
    • G
      gaavoid @rkoster
      last edited by 26 Jul 2017, 07:55

      @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
      • H
        Hex
        last edited by 26 Jul 2017, 08:49

        @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
        • P
          pjft
          last edited by pjft 26 Jul 2017, 09:10

          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 29 Jul 2017, 03:16 Reply Quote 0
          • S
            sselph @pjft
            last edited by 29 Jul 2017, 03:16

            @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
            • R
              rkoster
              last edited by rkoster 29 Jul 2017, 22:51

              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

              P 1 Reply Last reply 30 Jul 2017, 06:18 Reply Quote 1
              • P
                pjft @rkoster
                last edited by 30 Jul 2017, 06:18

                @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
                • P
                  pjft
                  last edited by 31 Aug 2017, 09:27

                  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 1 Sept 2017, 04:17 Reply Quote 0
                  • S
                    sselph @pjft
                    last edited by 1 Sept 2017, 04:17

                    @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

                    P 1 Reply Last reply 7 Sept 2017, 21:41 Reply Quote 1
                    • P
                      pjft @sselph
                      last edited by 7 Sept 2017, 21:41

                      @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 9 Sept 2017, 02:38 Reply Quote 0
                      • S
                        sselph @pjft
                        last edited by 9 Sept 2017, 02:38

                        @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

                        P 1 Reply Last reply 9 Sept 2017, 05:42 Reply Quote 1
                        • P
                          pjft @sselph
                          last edited by 9 Sept 2017, 05:42

                          @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 9 Sept 2017, 07:14 9 Sept 2017, 06:13

                            @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 15 Sept 2017, 03:44 Reply Quote 0
                            • S
                              sselph @Zigurana
                              last edited by 15 Sept 2017, 03:44

                              @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.

                                This community forum collects and processes your personal information.
                                consent.not_received