sselph / scraper

A scraper for EmulationStation written in Go using hashing
MIT License
448 stars 88 forks source link

Re-generate gamelist.xml to correct pathing issues #250

Closed lselinger closed 5 years ago

lselinger commented 5 years ago

I'm not sure this is an "issue" however i cannot figure it out for the life of me. In order to use account credentials I ran scraper from /home/pi using the user and pass options which created a single relative path gamelist.xml but also downloaded thousands of video and image files to /home/pi/images. It seems emulation station wont read from /home/pi for the gamelist file (Or I couldn't find a a way) so I figured as long as I have all of the images and videos which directly correspond to the roms I have (as scraped by scraper) I should be able to toast my gamelist files and rerun scraper somehow to create game list files in each corresponding console folder but point to the /home/pi images and videos files. I have tried numerous options running scraper from CLI and can get gamelist files created but it never populates the image and video file containers in the XML.

To prevent having to do it form scratch and redownload 10s of hours of videos and images is there a way to create gamelist.xml files in each rom folder using a unified images folder in /home/pi whihc already has every image a video file for all my ROMs. All the names correspond as scraper did populate this I just didn\t have it in each ROM folder and now even if there is a way to use a single XML file for ES, I dont know how to recreate that one with image and video path names either :(

Thoughts?

lselinger commented 5 years ago

Ok I think I found the secret sauce (this was ALL BEBKAC) ... I needed to provide the path and dir potions for all of image and video. I had only been doing the path portion hoping the xml would populate that missing part. As an example:

/opt/retropie/supplementary/scraper/scraper -add_not_found=true -append=true -video_dir=/home/pi/images -video_path=/home/pi/images -console_src ss -workers=4 -download_videos=false -download_images=false -image_path=/home/pi/images -image_dir=/home/pi/images -ss_user <my_user_account> -ss_password <my_ss_password> -scrape_all=false

I ran this within the rom directory for each console and Bam ... all paths updates to the proper directory where I originally put the videos and images. The re-learning will be when I add more roms.