mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-17 03:04:38 -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) => {
|
.then((response) => {
|
||||||
if (response.data.Items)
|
if (response.data.Items)
|
||||||
|
// Playlists must be stored in Jellyfin's internal config directory
|
||||||
return resolve(
|
return resolve(
|
||||||
response.data.Items.filter(
|
response.data.Items.filter((playlist) => playlist.Path?.includes('data')),
|
||||||
(playlist) =>
|
|
||||||
// Unix Filesystem compatibility
|
|
||||||
playlist.Path?.includes('/data/playlists') ||
|
|
||||||
// Windows Filesystem compatibility
|
|
||||||
playlist.Path?.includes('\\data\\playlists'),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
else return resolve([])
|
else return resolve([])
|
||||||
})
|
})
|
||||||
@@ -96,10 +91,9 @@ export async function fetchPublicPlaylists(
|
|||||||
console.log(response)
|
console.log(response)
|
||||||
|
|
||||||
if (response.data.Items)
|
if (response.data.Items)
|
||||||
|
// Playlists must not be stored in Jellyfin's internal config directory
|
||||||
return resolve(
|
return resolve(
|
||||||
response.data.Items.filter(
|
response.data.Items.filter((playlist) => !playlist.Path?.includes('data')),
|
||||||
(playlist) => !playlist.Path?.includes('/data/playlists'),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
else return resolve([])
|
else return resolve([])
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user