Movies & TV: Watch later (a Plex playlist), Collections, who-is-watching switch
This commit is contained in:
1 parent
92cf86bf5c
commit
93ae8f8840
2 files changed
+27
-6
No files matched your search
@@ -97,7 +97,7 @@ function plexPinSheet(u) {
|
||||
async function plexSwitchTo(u, pin, onError) {
|
||||
try {
|
||||
await jfetch('/api/plex/switch', { method: 'POST', body: JSON.stringify({ id: u.id, pin }) });
|
||||
closeSheet(); plexHome.data = null; px.secs = null;
|
||||
closeSheet(); plexHome.data = null; px.secs = null; wl.id = ''; try { for (const k of Object.keys(localStorage)) if (k.startsWith('vc:')) localStorage.removeItem(k); } catch {} // (what the last person had on their home screen)
|
||||
toast('Now using Plex as ' + u.title); route();
|
||||
} catch (e) { if (onError) onError(e.message); else toast(e.message); }
|
||||
}
|
||||
Reference in new issue
Block a user