mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-16 18:55:44 -06:00
Bugfix/playlists not appearing on windows (#631)
* update filter condition for user playlists to support windows filesystems fixes issue where playlists weren't showing up in the library for Windows Jellyfin users
This commit is contained in:
@@ -55,14 +55,9 @@ export async function fetchUserPlaylists(
|
||||
})
|
||||
.then((response) => {
|
||||
if (response.data.Items)
|
||||
// Playlists must be stored in Jellyfin's internal config directory
|
||||
return resolve(
|
||||
response.data.Items.filter(
|
||||
(playlist) =>
|
||||
// Unix Filesystem compatibility
|
||||
playlist.Path?.includes('/data/playlists') ||
|
||||
// Windows Filesystem compatibility
|
||||
playlist.Path?.includes('\\data\\playlists'),
|
||||
),
|
||||
response.data.Items.filter((playlist) => playlist.Path?.includes('data')),
|
||||
)
|
||||
else return resolve([])
|
||||
})
|
||||
@@ -96,10 +91,9 @@ export async function fetchPublicPlaylists(
|
||||
console.log(response)
|
||||
|
||||
if (response.data.Items)
|
||||
// Playlists must not be stored in Jellyfin's internal config directory
|
||||
return resolve(
|
||||
response.data.Items.filter(
|
||||
(playlist) => !playlist.Path?.includes('/data/playlists'),
|
||||
),
|
||||
response.data.Items.filter((playlist) => !playlist.Path?.includes('data')),
|
||||
)
|
||||
else return resolve([])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user