mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
fix: fix jellyfin / emby api proxies when passing external library ID to endpoint
This commit is contained in:
@@ -151,7 +151,9 @@ export const embyApiRouter: RouterPluginCallback = (fastify, _, done) => {
|
||||
(req, res) =>
|
||||
withEmbyMediaSource(req, res, async (mediaSource) => {
|
||||
const library = mediaSource.libraries.find(
|
||||
(lib) => lib.uuid === req.params.libraryId,
|
||||
(lib) =>
|
||||
lib.externalKey === req.params.libraryId ||
|
||||
lib.uuid === req.params.libraryId,
|
||||
);
|
||||
if (!library) {
|
||||
return res
|
||||
|
||||
@@ -185,7 +185,9 @@ export const jellyfinApiRouter: RouterPluginCallback = (fastify, _, done) => {
|
||||
(req, res) =>
|
||||
withJellyfinMediaSource(req, res, async (mediaSource) => {
|
||||
const library = mediaSource.libraries.find(
|
||||
(lib) => lib.uuid === req.params.libraryId,
|
||||
(lib) =>
|
||||
lib.uuid === req.params.libraryId ||
|
||||
lib.externalKey === req.params.libraryId,
|
||||
);
|
||||
if (!library) {
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user