From e318c829729cb1b110e7bdc420e8ff31c7ed9198 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Wed, 29 Nov 2023 22:15:01 -0500 Subject: [PATCH] remove unused code --- source/utils/quickplay.bs | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/source/utils/quickplay.bs b/source/utils/quickplay.bs index e963e0a06..a022be0f9 100644 --- a/source/utils/quickplay.bs +++ b/source/utils/quickplay.bs @@ -256,37 +256,6 @@ namespace quickplay end if end sub - ' A folder with Videos inside of it. - ' Shuffle play all videos inside that are not resumable. - sub videoFolder(itemNode as object) - print "itemNode=", itemNode - if isValidAndNotEmpty(itemNode) - ' get randomized list of videos inside - data = api.users.GetItemsByQuery(m.global.session.user.id, { - "parentId": itemNode.id, - "sortBy": "Random", - "recursive": true, - "includeItemTypes": "Movie,Video", - "limit": 2000 - }) - print "data=", data - if isValid(data) and isValidAndNotEmpty(data.items) - videoList = [] - ' add each item to the queue - for each item in data.Items - print "data.Item=", item - ' only add videos we're not currently watching - if isValid(item.userdata) and isValid(item.userdata.PlaybackPositionTicks) - if item.userdata.PlaybackPositionTicks = 0 - videoList.push(item) - end if - end if - end for - quickplay.pushToQueue(videoList) - end if - end if - end sub - ' A container with some kind of videos inside of it sub videoContainer(itemNode as object) print "itemNode=", itemNode