move external playback fetch to context

This commit is contained in:
jeffvli
2026-02-07 01:26:04 -08:00
parent 812ca5302a
commit bec6464a44
3 changed files with 24 additions and 34 deletions
@@ -237,7 +237,6 @@ const EmptyQueueDropZone = () => {
const sourceServerId = (
args.source.item?.[0] as unknown as { _serverId: string }
)?._serverId;
const sourceItemType = args.source.itemType as LibraryItem;
switch (args.source.type) {
@@ -297,7 +296,7 @@ const EmptyQueueDropZone = () => {
const folderIds = folders.map((folder) => folder.id);
// Handle folders: fetch and add to queue
if (folderIds.length > 0) {
if (folderIds.length > 0 && sourceServerId) {
playerContext.addToQueueByFetch(
sourceServerId,
folderIds,