Remove games without artwork?
-
Hi all, I got a bit crazy with my roms in the early days of playing with Retropie and have many games that I've never heard of or care to play (often so obscure they don't even have artwork).
I want to clean up but because the roms often have names that don't make it clear what they are, and because there are so bloody many of them, I have no clue where to begin with my cleanup effort. I thought a good place to start would be by deleting all of the games that have no artwork.
Does anyone have any ideas how I could do that? Thanks!
-
Images path:
/home/pi/.emulationstation/downloaded_images/Roms path:
/home/pi/RetroPie/roms/Try to work with it:
rsync -d --delete $(find . -type d|while read d ; do echo $d/ ; done) /targetDirectory && rmdir /targetDirectory/* 2>&-The difficulty is this: To enable deletion of files at the target position, you need to:
specify directories as sources for rsync (it doesn't delete if the source is a list of files).
give it the complete list of sources at once (rsync within a loop will give you the contents of the last directory only at the target).
end the directory names with a slash (otherwise it creates the directories at the target directory)
So the command substitution (the stuff enclosed with the $( )) does this: It finds all directories and adds a slash (/) at the end of the directory names. Now rsync sees a list of source directories, all terminated with a slash and so copies their contents to the target directory. The option -d tells it, not to copy recursively.The second trick is the rmdir /targetDirectory/* which removes the empty directories which rsync created (although we didn't ask it to do that).
-
Thanks, based on this I probably have enough to write a bit of python to walk through the files and remove/move anything missing artwork! Much appreciated!
-
I had this problem to.
Going from No-Intro to Hyperspin made my day.Just ran my No-Intro sets true the hyperspin/hyperlist databases and cleaned up a lot of rom collections.
I have scraped the games using sselph/scraper on my Desktop and then transferred them over to my USB drive.
https://github.com/sselph/scraper/releases-
Download RomCenter & Google some tutorials to learn it
-
Download a HyperList
-
Load the HyperList in RomCenter
-
Run it against your collection
-
Rinse/Repeat with all collections
Now my collection are bare minimum.
Basically what they did is create an XML for each system that is a trim the fat set of roms for each system. This means 1 version of each game, only English playable. First they go after the US game, if that doesn't exist they include English friendly European games. They also include prototypes that are considered playable. No duplicates. And the roms are renamed to something more human friendly.
They don't include japanese games, translations, or hacks. Although you are free to add any you would like.
-
-
Funnily enough I just started setting up a brand new system and had this same problem again (ironically this topic was the first thing that came up when I googled!). So for anyone that may ever need it, I did in fact write a script designed to clean up roms that don't have images :)
You can find it here on my GitHub https://github.com/andywarburton/RetroPie-Tools
Enjoy!
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.