Skip to content

Commit

Permalink
When pinning an item, if the queue is unknown (During a search), assu…
Browse files Browse the repository at this point in the history
…me it's AI.
  • Loading branch information
FMaz008 committed Oct 9, 2024
1 parent e8d9d1b commit ec4f4b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/PinnedListMgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ class PinnedListMgr {
}

async addItem(asin, queue, title, thumbnail, isParentAsin, enrollmentGUID, save = true, broadcast = true) {
if (!asin || !queue || !title || !thumbnail || !isParentAsin || !enrollmentGUID) {
if (!queue) {
queue = "encore"; //Not really a good fix but if there is no known queue, assume it's AI.
}
if (!asin || !title || !thumbnail || !isParentAsin || !enrollmentGUID) {
throw new Error("Invalid data");
}

Expand Down

0 comments on commit ec4f4b3

Please sign in to comment.