pekempy / Breeze

A Material Design game launcher for Windows
http://pekempy.co.uk
GNU General Public License v3.0
27 stars 6 forks source link

Scraping images #4

Closed pekempy closed 5 years ago

pekempy commented 6 years ago

Plan to add the ability to scrape images based on the title input (e.g. Skyrim will scrape based on the search "Skyrim poster", "skyrim icon", and "skyrim banner", and then user can select which of the scraped images to use.

Increases ease of use / accessibility for the end user

pekempy commented 6 years ago

Need to look into this, Google API/Bing API both paid, need to find a free version or an alternative

pekempy commented 5 years ago

Potential API could be used, outputs a json file which we can parse to get the image link from to download/display

Scratch that, charges $50/m for 5000 searches

pekempy commented 5 years ago

Next option IGDB - Internet Game Database which has an API we can make 10,000 requests from a month for free. May look at implementing this, if requests are per image or something, we can have the user provide their own API key in the settings.

Need to look at implementing this

pekempy commented 5 years ago

Alternative to IGDB (as it doesn't distinguish between poster, icon, banner etc) is Qwant which is a free limitless search engine with an API. I'm leaning more towards this. The API is in JS so we'll need to find a way around this

pekempy commented 5 years ago

Image scraping now has a way of getting both a thumbnail and a direct link depending on the title of the game. It's currently only searching for poster from the debug button on poster view, will be moved to add/edit games later - need to build a UI All of this as of 0f6cf5a

pekempy commented 5 years ago

UI not currently working as the ItemsControl won't load the items from the collection, unsure why

pekempy commented 5 years ago

After a long night researching, need to use a Converter on the binding as it only supports URLs if hardcoded, not via binding. Need to convert URL to BitmapImage

pekempy commented 5 years ago

Binding working in 11cbfd4 - needs to have buttons to download the image, but first want to look at having different item templates for things like banner

pekempy commented 5 years ago

47bbf8f makes this pretty much 100% functional from poster view