Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 30, 2023
1 parent a926d3c commit e318c82
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions source/utils/quickplay.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e318c82

Please sign in to comment.