saltfish 0.3.47 → 0.3.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2535,7 +2535,7 @@ class PlaylistValidator {
|
|
|
2535
2535
|
const hasTriggers = foundPlaylist.hasTriggers ?? foundPlaylist.autoStart ?? false;
|
|
2536
2536
|
const playlistData = watchedPlaylists[playlistId];
|
|
2537
2537
|
const maxVisits = (_b = foundPlaylist.triggers) == null ? void 0 : _b.maxVisits;
|
|
2538
|
-
const visitCount = (playlistData == null ? void 0 : playlistData.visitCount) ?? 0;
|
|
2538
|
+
const visitCount = (playlistData == null ? void 0 : playlistData.visitCount) ?? ((playlistData == null ? void 0 : playlistData.status) === "completed" || (playlistData == null ? void 0 : playlistData.status) === "dismissed" ? 1 : 0);
|
|
2539
2539
|
if (hasTriggers && maxVisits !== null && maxVisits !== void 0 && visitCount >= maxVisits) {
|
|
2540
2540
|
info(`Playlist ${playlistId} has hasTriggers enabled with maxVisits:${maxVisits} and user has ${visitCount} visits. Skipping playlist start.`, {
|
|
2541
2541
|
watchedPlaylists,
|
|
@@ -9779,7 +9779,7 @@ class TriggerManager {
|
|
|
9779
9779
|
return true;
|
|
9780
9780
|
}
|
|
9781
9781
|
const playlistData = watchedPlaylists && watchedPlaylists[playlistId];
|
|
9782
|
-
const visitCount = (playlistData == null ? void 0 : playlistData.visitCount) ?? 0;
|
|
9782
|
+
const visitCount = (playlistData == null ? void 0 : playlistData.visitCount) ?? ((playlistData == null ? void 0 : playlistData.status) === "completed" || (playlistData == null ? void 0 : playlistData.status) === "dismissed" ? 1 : 0);
|
|
9783
9783
|
return visitCount < maxVisits;
|
|
9784
9784
|
}
|
|
9785
9785
|
/**
|
|
@@ -12038,7 +12038,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
12038
12038
|
__proto__: null,
|
|
12039
12039
|
SaltfishPlayer
|
|
12040
12040
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12041
|
-
const version = "0.3.
|
|
12041
|
+
const version = "0.3.48";
|
|
12042
12042
|
const packageJson = {
|
|
12043
12043
|
version
|
|
12044
12044
|
};
|