Gamez icon indicating copy to clipboard operation
Gamez copied to clipboard

Scrape art and metadata from TheGamesDB.net

Open smidley opened this issue 12 years ago • 13 comments

It would be nice to be able to scrape artwork and metadata for games from http://thegamesdb.net and then store it locally.

Info about scraping with the API can be found in the wiki here: http://wiki.thegamesdb.net

smidley avatar May 28 '12 16:05 smidley

Do you mean that i should replace this for "Update Game List" function?

avjui avatar May 28 '12 19:05 avjui

No, I mean that when a game is downloaded, Gamez should query the API for thegamesdb and see if there is available art or metadata to download with it. If there is, it will be downloaded and placed into the games download folder.

Gamez could also be set up kind of like sickbeard, where you could keep track of what games you have and "post process" them by downloading art and metadata.

smidley avatar May 28 '12 23:05 smidley

How must this look like

Gamename/ ----------------->Cover.jpg ----------------->fanart/ ---------------------------->Picture1 ----------------------------->Picture2 ----------------->meta.nfo ?

avjui avatar May 29 '12 05:05 avjui

Gamename/ ---------------->folder.jpg or poster.jpg (front box art) ---------------->fanart.jpg ---------------->banner.jpg ---------------->logo.png --------->gamename.nfo

smidley avatar May 29 '12 06:05 smidley

Please can you post me a gamename.nfo. So i can see the structur of the file.

avjui avatar Jun 07 '12 09:06 avjui

I don't personally use local nfo files, but I took this info from Advanced Launcher. Much more information is available from the API, so it could be added also. This is just the minimal structure.

<game>
    <title></title>
    <platform></platform>
    <year></year>
    <publisher></publisher>
    <genre></genre>
    <plot></plot>
</game>

smidley avatar Jun 07 '12 17:06 smidley

Hi

I have made some changes and push a developer branch please can you test it? At the moment it will write only a gamename.nfo into the downloded folder. !!! Please Note that you must specified your complet download path where SABnzbd downloads your games This is in Settings -> Downloads -> SABnzbd -> SABnzbd+ Download Folder

Please give feedback

avjui avatar Oct 17 '12 16:10 avjui

I have a look to the art downloads but I have found some problem. I have seen that some files are png´s and some are jpg´s. For some art´s we need jpg´s and for some png´s. So i must convert the Images. And thats the problem. I don´t know some small libary to do this and I don´t want some depencies to PIL. Anybody know a small libary for this?

Thanks

avjui avatar Oct 28 '12 17:10 avjui

I tested the development branch, but it wouldn't postprocess the folder at all. I've been trying to work out why, but i can't find it. I'm looking into a python lib to change the images for you.

aaronflorey avatar Nov 14 '12 09:11 aaronflorey

First thanks for testing. Hmm on witch system do you test? Can you post debuglog. Here it work on freenas

avjui avatar Nov 14 '12 16:11 avjui

I'm testing it on Ubuntu server 12.10, with XBOX 360 games. I'll try it again later

aaronflorey avatar Nov 14 '12 23:11 aaronflorey

http://pastebin.com/T8pi5kpK

aaronflorey avatar Nov 15 '12 00:11 aaronflorey

I have made a new issues. https://github.com/avjui/Gamez/issues/65

avjui avatar Nov 15 '12 06:11 avjui