I was looking for the way to add website as game in Playnite so it also tracks "play time", and after figuring it out, I decided to share it in case someone else can find that useful, since by just trying to import shortcut to web app, Playnite throws error (Catastrophic failure, mentioned in this issue after it was closed https://github.com/JosefNemec/Playnite/issues/1201 )
So here is how to make it work.
1. Go to the website that you want to add to Playnite. Use "install this site as an app" option, available in most browsers (I am using chromium Edge as an example, but in other browsers the process will be similar).
2. Still in Edge, go to "..."=>Apps=>Manage Apps, right click on your new app, "Pin to...", and check "Desktop", confirm.
3. In Playnite, "Add game", "Manually...", type whatever name you like for the app, and go to Actions tab. Click "Add Play Action". Leave its type as "Executable" and keep that window open.
4. Go to desktop, right click on your new app shortcut, and from "target" field copy everything between quotations ("") (excluding quotations)...
... and paste it to "Path" field in your Actions tab in Playnite. Then, copy everything after .exe starting with (and including) dash (-), and paste it to "Arguments" field, so it looks like that
Now you can launch that website as an app from Playnite like it was a game, and the play time will be recorded until you close it. The only issue is that the browser you are using for that purpose cannot be already opened when you launch the app, or else it will not record the play time.
So here is how to make it work.
1. Go to the website that you want to add to Playnite. Use "install this site as an app" option, available in most browsers (I am using chromium Edge as an example, but in other browsers the process will be similar).
2. Still in Edge, go to "..."=>Apps=>Manage Apps, right click on your new app, "Pin to...", and check "Desktop", confirm.
3. In Playnite, "Add game", "Manually...", type whatever name you like for the app, and go to Actions tab. Click "Add Play Action". Leave its type as "Executable" and keep that window open.
4. Go to desktop, right click on your new app shortcut, and from "target" field copy everything between quotations ("") (excluding quotations)...
... and paste it to "Path" field in your Actions tab in Playnite. Then, copy everything after .exe starting with (and including) dash (-), and paste it to "Arguments" field, so it looks like that
Now you can launch that website as an app from Playnite like it was a game, and the play time will be recorded until you close it. The only issue is that the browser you are using for that purpose cannot be already opened when you launch the app, or else it will not record the play time.