JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
9.48k stars 504 forks source link

Programatically add games or implement blacklist for .exes when scanning folders #3638

Closed vesper8 closed 10 months ago

vesper8 commented 10 months ago

Feature description

I'm in the process of importing a lot of really old Dos games and other games from the 90s and I'm a bit annoyed at the 'Scan automatically' -> 'Scan folder' behaviour because it shows hundreds of .exe files that are not game executables and whenever I want to re-scan a folder after adding some new games it shows all these bad .exes and makes it very difficult to locate the good .exes within the list.

I wish there was a simple blacklist where you could add patterns for .exes that should be ignored and filtered out.

Alternatively I think I can whip up a script that locates good exes that aren't already imported but the question is, is there a command line interface or another means of adding games programatically? Maybe even by adding them to the LiteDB directly?

Screenshots

No response

JosefNemec commented 10 months ago

If you want import process that's customizable, you need to make a script or an extension. https://api.playnite.link/docs/tutorials/index.html

Future versions will introduce .playnite files you will be able to use to configure folder scan import with, but there's no plan to add any GUI for folder scan customization. Mainly because various people have too many different setups and requirements that would make any GUI implementation too much work.