Author Topic: Unable to scrape metadata  (Read 348 times)

abert

  • Newbie
  • *
  • Posts: 6
    • View Profile
Unable to scrape metadata
« on: May 05, 2017, 11:45:39 PM »
Latest version of Attract Mode and I'm having some issues scraping metadata (Maker, year, game info, etc.)

I have the History plugin working just fine using a history.dat, and unless I'm confused I need to scrape for the metadata I want.  I've restricted the scraper to "overview" only, but the output list it writes is devoid of any actual game information.

Am I confused?  Is there a better way to get this data?

Code: [Select]
pi@arcade:~ $ grep -i "scrape" ~/RetroPie/attract/attract.cfg
scrape_snaps         no
scrape_marquees      no
scrape_flyers        no
scrape_wheels        no
scrape_fanart        no
scrape_videos        no
scrape_overview      yes

Code: [Select]
pi@arcade:~ $ attract -s mame -c ~/RetroPie/attract -i ~/RetroPie/attract/romlists/mame.txt
*** Scraping artwork for: mame
 - scraping thegamesdb.net...
*** Scraping done.
*** Importing Collection/Rom List: /home/pi/RetroPie/attract/romlists/mame.txt
[Import /home/pi/RetroPie/attract/romlists/mame.txt] - Imported 4721 entries.
 - Removing any duplicate entries...
 + Writing 4721 entries to: /home/pi/RetroPie/attract/romlists/multi.txt

Code: [Select]
pi@arcade:~ $ more /home/pi/RetroPie/attract/romlists/multi.txt
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
005;005;mame;;;;;;;;;;;;;;
1941;1941;mame;;;;;;;;;;;;;;
1941j;1941j;mame;;;;;;;;;;;;;;
1942;1942;mame;;;;;;;;;;;;;;
1942a;1942a;mame;;;;;;;;;;;;;;
1942b;1942b;mame;;;;;;;;;;;;;;
1943;1943;mame;;;;;;;;;;;;;;
etc.

progets

  • Sr. Member
  • ****
  • Posts: 460
    • View Profile
Re: Unable to scrape metadata
« Reply #1 on: May 06, 2017, 12:23:39 AM »
You need generate a mame.xml file to get the data you want.

My advice is to download a current version of MAME for Windows here http://mamedev.org/release.html. Install it and go to the command line and change to the folder where you installed mame and run "mame64.exe -listxml > mame.xml". Create a /home/pi/.attract/extras folder on the Pi. Copy the mame.xml file from your Windows machine to your Pi /home/pi/.attract/extras folder. You should also download the catver.ini, nplayers.ini and controls.ini files from the web and place them in the /home/pi/.attract/extras folder to get the most complete data in your romlist.

Next you need these lines in your Attract-Mode mame.cfg emulator file
Code: [Select]
system               Arcade
info_source         
import_extras        ./extras/mame.xml;./extras/catver.ini;./extras/nplayers.ini;./extras/controls.ini

Once this is done regenerate the mame romlist and you should have the names and information you want.
« Last Edit: May 06, 2017, 12:36:11 AM by progets »

abert

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Unable to scrape metadata
« Reply #2 on: May 06, 2017, 09:18:53 AM »
Did some reading to better understand those files, what they contain, and how they worked together made perfect sense in the context of generating a romlist.

Romlist built with all the info I could ever ask for.

Thanks very much for your advice!