infinityofspace / jellyfin_alexa_skill

Selfhosted Alexa media player skill for Jellyfin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows compatibility

brandonssmith opened this issue · comments

I attempted to install and run on my windows machine that is running Jellyfin. Everything seemed to go fine until the actual running of the program since there is no directory created which matches the default paths.

2 solutions:

  1. I am simply missing where the installation went to...
  2. Allowing windows type paths to config and data

I did try pointing it to the python310 subdirectory at \Python310\Lib\site-packages\jellyfin_alexa_skill just to see what would happen but it gave the same error.

Again, I am not the master of all things so it is quite possible that I simply missed the install location and it is a much easier fix than that.

Thanks for your feature suggestion.

In the current state there is no explicit support for Windows.
By default, any skill data should be saved to the following path "C:\Users\your-username.jellyfin_alexa_skill". See also here for the detailed paths.
Since Windows specifies the paths with a backslash instead of a frontslash, the error is due to these default paths.

You can explicitly set the path with the following program arguments at startup:

  • Path to the config file: --config
  • Path to the data folder: --data

If you set both arguments, then the default with the wrong slashes will be bypassed. So this might work as workaround.

Currently, the underlying database of the program is being renewed and thus the storage of skill data in an additional directory will no longer be necessary. This indirectly solves the path problem. Moreover DB adjustments are almost ready.

I leave the ticket open until we have solved the path problem using the ongoing DB adjustment and have also done a test on a Win system in case of further incompatibilities.