GithubHelp home page GithubHelp logo

addlink's Introduction

AddLink

AddLink Extension for Playnite

To install:

Download the .pext from releases and run it.

To use, select one or multiple games and run the appropriate command from the Extensions menu.

NOTES: I value accuracy over speed, so this extension is designed to confirm all links added. In most cases, this means simply clicking OK on a confirmation dialog box for each game because the code is pretty good at guessing the correct IGDB or MetaCritic URL for the game.

When running the extension goes through each game and opens up two web pages. One is the best attempt at the correct URL for the game. If this URL is correct (i.e. you see the page for the game load) then simply click OK on the dialog box and it will add a link and move to the next game. If not correct, the second page is a search of the game on the site. You can copy the correct link for the game and paste it in the dialog box in Playnite to add the link.

Also, there is a 5 second wait timer built in between games, because attempting to load pages too fast from either of these sites will trigger an error and timeout before you are allowed access again. Refer to the code for the particulars.

addlink's People

Contributors

dragonmc77 avatar

Stargazers

 avatar  avatar Carlos Guillot avatar  avatar  avatar  avatar Daniel Sims avatar Ricardo Gutiérrez avatar

Watchers

Brandon avatar  avatar  avatar  avatar

Forkers

slipperyjim

addlink's Issues

Does not work for portable installs

In a portable install the Playnite files are not kept in appdata and so the extension fails. Editing the .ps1 file and changing the two $scriptPath lines to point towards the extension folder in the portable install will fix this manually though.

" - " in title of game results in wrong guess

Hi Dragon,

I noticed that for Metacritic, when a game has " - " in the title (like Batman - Arkham Origins), the script will try and search for a url with this in i:

batman---arkham-origins

when the correct version is this:

batman-arkham-origins

It works OK for IGDB which would otherwise have the same problem, so I presume it is simply a question of editing the .replace command in the script to be the same for Metacritic?

While I'm here, I have created a second version that comments out the lines that launches the browser and asks for confirmation but if I was a better scripter I would have added a prompt right at the start asking if I wanted to confirm each result or simply accept it's best guess automatically (which is almost always right anyway). I imagine it's quite easy for someone with your skills, so if you wanted to add this yourself, then I'd be very grateful! I don't have the patience to confirm 800 games :)

Cheers for the script again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.