saltfish 0.2.67 → 0.2.68
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.
|
@@ -2012,9 +2012,16 @@ class PlayerInitializationService {
|
|
|
2012
2012
|
* Check for in-progress playlists and resume them
|
|
2013
2013
|
*/
|
|
2014
2014
|
async checkAndResumeInProgressPlaylist(watchedPlaylists) {
|
|
2015
|
+
var _a;
|
|
2015
2016
|
if (!watchedPlaylists) {
|
|
2016
2017
|
return false;
|
|
2017
2018
|
}
|
|
2019
|
+
const store = useSaltfishStore.getState();
|
|
2020
|
+
const currentManifestId = (_a = store.manifest) == null ? void 0 : _a.id;
|
|
2021
|
+
const currentState = store.currentState;
|
|
2022
|
+
if (currentManifestId && currentState !== "idle" && currentState !== "error") {
|
|
2023
|
+
return false;
|
|
2024
|
+
}
|
|
2018
2025
|
const currentTime = Date.now();
|
|
2019
2026
|
const MAX_AGE_MS = 6e3;
|
|
2020
2027
|
const inProgressEntry = Object.entries(watchedPlaylists).find(([playlistId, status]) => {
|
|
@@ -10686,7 +10693,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
10686
10693
|
__proto__: null,
|
|
10687
10694
|
SaltfishPlayer
|
|
10688
10695
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10689
|
-
const version = "0.2.
|
|
10696
|
+
const version = "0.2.68";
|
|
10690
10697
|
const packageJson = {
|
|
10691
10698
|
version
|
|
10692
10699
|
};
|