Skip to content

Commit

Permalink
Change name of My List playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
1hitsong committed Dec 23, 2024
1 parent b5c5f80 commit eacf521
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/ItemGrid/LoadItemsTask2.bs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ sub loadItems()
myListPlaylist = api.items.Get({
"userid": m.global.session.user.id,
"includeItemTypes": "Playlist",
"nameStartsWith": "[ROKU] My List",
"nameStartsWith": "|My List|",
"parentId": item.LookupCI("id")
})
exit for
Expand Down
2 changes: 1 addition & 1 deletion components/home/LoadItemsTask.bs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ function loadMyList() as object
myListPlaylist = api.items.Get({
"userid": m.global.session.user.id,
"includeItemTypes": "Playlist",
"nameStartsWith": "[ROKU] My List",
"nameStartsWith": "|My List|",
"parentId": item.LookupCI("id")
})
exit for
Expand Down
6 changes: 3 additions & 3 deletions source/MainEventHandlers.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ sub processLibraryItemPopup(selectedPopupButton as string, itemID as string)
myListPlaylist = api.items.Get({
"userid": m.global.session.user.id,
"includeItemTypes": "Playlist",
"nameStartsWith": "[ROKU] My List",
"nameStartsWith": "|My List|",
"parentId": item.LookupCI("id")
})
exit for
Expand All @@ -1338,7 +1338,7 @@ sub processLibraryItemPopup(selectedPopupButton as string, itemID as string)

' My list playlist does not exist. Create it with this item
api.playlists.Create({
name: "[ROKU] My List",
name: "|My List|",
ids: [itemID],
userid: m.global.session.user.id,
mediatype: "Unknown",
Expand All @@ -1364,7 +1364,7 @@ sub processLibraryItemPopup(selectedPopupButton as string, itemID as string)
myListPlaylist = api.items.Get({
"userid": m.global.session.user.id,
"includeItemTypes": "Playlist",
"nameStartsWith": "[ROKU] My List",
"nameStartsWith": "|My List|",
"parentId": item.LookupCI("id")
})
exit for
Expand Down

0 comments on commit eacf521

Please sign in to comment.