Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Use Spotify Import Map #53

Closed
sortedcord opened this issue Jan 22, 2025 · 6 comments
Closed

Cannot Use Spotify Import Map #53

sortedcord opened this issue Jan 22, 2025 · 6 comments

Comments

@sortedcord
Copy link

Whenever I go to settings > Spotify Import Map, I enter the details, and when clicking on "save" it always fails to save and I keep seeing a spinner in the background. When heading over the requests, it for some reason gives a 404 for the trackmap request:

Image

Response { type: "basic", url: "https://jellyfin.adityagupta.dev/Viperinius.Plugin.SpotifyImport/ManualTrackMap", redirected: false, status: 404, ok: false, statusText: "", headers: Headers(7), body: ReadableStream, bodyUsed: false }
​
body: ReadableStream { locked: false }
​
bodyUsed: false
​
headers: Headers(7) { "access-control-allow-origin" → "*", "content-type" → "text/plain", date → "Wed, 22 Jan 2025 17:45:55 GMT", … }
​
ok: false
​
redirected: false
​
status: 404
​
statusText: ""
​
type: "basic"
​
url: "https://jellyfin.adityagupta.dev/Viperinius.Plugin.SpotifyImport/ManualTrackMap"
​
<prototype>: ResponsePrototype { clone: clone(), arrayBuffer: arrayBuffer(), blob: blob(), … }
​​
arrayBuffer: function arrayBuffer()
​​
blob: function blob()
​​
body: 
​​
bodyUsed: 
​​
bytes: function bytes()
​​
clone: function clone()
​​
constructor: function Response()
​​
formData: function formData()
​​
headers: 
​​
json: function json()
​​
ok: 
​​
redirected: 
​​
status: 
​​
statusText: 
​​
text: function text()
​​
type: 
​​
url: 
​​
Symbol(Symbol.toStringTag): "Response"
​​
<get body()>: function body()
​​
<get bodyUsed()>: function bodyUsed()
​​
<get headers()>: function headers()
​​
<get ok()>: function ok()
​​
<get redirected()>: function redirected()
​​
<get status()>: function status()
​​
<get statusText()>: function statusText()
​​
<get type()>: function type()
​​
<get url()>: function url()
​​
<prototype>: Object { … }
configurationpage:271:21
    default https://jellyfin.adityagupta.dev/web/configurationpage?name=spotifyimportmapjs:271
    (Async: promise callback)
    default https://jellyfin.adityagupta.dev/web/configurationpage?name=spotifyimportmapjs:270

How can this be fixed? I'm not sure if this is an issue with only my instance of jellyfin or its the same for everyone else...

@Viperinius
Copy link
Owner

Hm, I haven't seen that before...

  • What Jellyfin and plugin version do you have?
  • What happens if you try to open that url in the browser?
  • Could you try to open that url locally to check if this is maybe caused by the reverse proxy even though it's unprobable?

@sortedcord
Copy link
Author

Jellyfin 10.10.3
Spotify Import 1.12.2.0

On opening the url (/Viperinius.Plugin.SpotifyImport/ManualTrackMap) in the browser I just get a blank page... The issue persists even if using the local address.

@Viperinius
Copy link
Owner

Ok, as a quick check, could you please navigate to <your jellyfin data dir>/plugins/Viperinius.Plugin.SpotifyImport and check if you have a file manual_track_map.json there?

If not, please create that file with the following content. Afterwards, try if the error still occurs.

{
  "$schema": "https://raw.githubusercontent.com/Viperinius/jellyfin-plugin-spotify-import/refs/heads/master/schemas/manual_track_map.schema.json",
  "Version": "1.0.0",
  "Items": []
}

If you don't know where <your jellyfin data dir> is, look at the top of one of the Jellyfin logs, it should print the "Program data path" as one of the first lines when starting up.

@sortedcord
Copy link
Author

It seems that the paths have changed for plugins... I found out that the jellyfin data dir is at /var/lib/jellyfin/data but there is no plugins folder in it. Here's the structure:

.
└── jellyfin/
    ├── data/
    │   ├── device.txt
    │   ├── keyframes
    │   ├── playlists
    │   └── ...
    ├── plugins/
    │   ├── configurations
    │   └── 'Spotify Import_1.12.2.0'/
    │       ├── Fastenshtein.dll
    │       ├── HtmlAgilityPack.dll
    │       ├── Json.More.dll
    │       ├── JsonPointer.Net.dll
    │       ├── JsonSchema.Net.dll
    │       ├── meta.json
    │       ├── SpotifyAPI.Web.dll
    │       ├── Viperinius.Plugin.SpotifyImport.dll
    │       └── viperinius-plugin-spotifyimport.png
    ├── metadata
    └── root

I made the manual_track_map.json in the spotify import folder, set the appropriate permissions and restarted the server, but to no luck, I still face the same issue...

@Viperinius
Copy link
Owner

The issue should be fixed with release 1.12.3.1. Please update to that version and see if you can confirm on your end

@sortedcord
Copy link
Author

Updated and it works fine now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants