stremiok 2.2.2 → 2.2.4

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.
package/js/view-home.js CHANGED
@@ -229,7 +229,7 @@
229
229
  if (what === _savedHomeSig) { return; }
230
230
  _savedHomeSig = what;
231
231
  (_homeCatalogs || []).slice(0, HOME_ROWS_MAX).forEach(function (c) {
232
- if (bytes > _homeBytesMax) { return; }
232
+ if (bytes > _homeBytesMax || c.loading) { return; }
233
233
  var metas = c.metas.map(trimMeta);
234
234
  metas.forEach(function (m) { bytes += sizeOf(m); });
235
235
  if (bytes <= _homeBytesMax) { cats.push(copyCat(c, metas)); }
@@ -644,6 +644,9 @@
644
644
  c.__onselect = function () {
645
645
  App.openDetail(e.type, base, preview, target, e.url ? { resume: e } : null);
646
646
  };
647
+ c.__onplay = function () { // (a saved stream resumes, as OK; none: the top source)
648
+ App.openDetail(e.type, base, preview, target, e.url ? { resume: e } : { playBest: true });
649
+ };
647
650
  c.__onlongpress = function () { continueActions(e, base, preview, target, c); };
648
651
  c.__cwKey = showKey(e);
649
652
  c.__meta = { name: e.name, description: e.position
@@ -784,6 +787,7 @@
784
787
  c.appendChild(U.el('div', 'card-new card-code', code));
785
788
  c.__meta = { name: u.name, description: code + (u.ep.t ? ' “' + u.ep.t + '”' : '') + ' · ' + (u.ep.r > now ? 'out ' : 'came out ') + U.dayLabel(u.ep.r) };
786
789
  c.__onselect = function () { App.openDetail('series', u.show, { name: u.name, poster: u.poster, type: 'series' }, u.ep.id); };
790
+ c.__onplay = function () { App.openDetail('series', u.show, { name: u.name, poster: u.poster, type: 'series' }, u.ep.id, { playBest: true }); };
787
791
  return c;
788
792
  })));
789
793
  });
@@ -1359,6 +1363,12 @@
1359
1363
  if (!node || !scr('home').contains(node)) { return; }
1360
1364
  if (_homeInfoTimer) { clearTimeout(_homeInfoTimer); }
1361
1365
  _homeInfoTimer = setTimeout(function () { _homeInfoTimer = null; fillHomeInfo(node.__meta); }, 120);
1366
+ var row = node.parentNode && node.parentNode.parentNode;
1367
+ if (row && row.__more) { // (a long row: its next cards, as focus nears the end)
1368
+ var left = 0, n = node;
1369
+ while (left < ROW_NEAR && n.nextElementSibling) { n = n.nextElementSibling; left++; }
1370
+ if (left < ROW_NEAR) { row.__more(); }
1371
+ }
1362
1372
  });
1363
1373
 
1364
1374
  // Identify a Home card by its row title + content id, to find it again after a rebuild.
@@ -1375,6 +1385,10 @@
1375
1385
  if (!title || title.textContent !== key.row) { continue; }
1376
1386
  var cards = rows[i].querySelectorAll('.card');
1377
1387
  for (var j = 0; j < cards.length; j++) { if (cards[j].getAttribute('data-id') === key.id) { return cards[j]; } }
1388
+ if (rows[i].__more) { // (a long row: it may be among those not built yet)
1389
+ while (rows[i].__more) { rows[i].__more(); }
1390
+ i--;
1391
+ }
1378
1392
  }
1379
1393
  return null;
1380
1394
  }
@@ -1412,6 +1426,7 @@
1412
1426
  }
1413
1427
  // The IPTV playlists read after your addons loaded (they aren't waited for): their rows join.
1414
1428
  if (typeof Stremio !== 'undefined' && Stremio.onIptvReady) { Stremio.onIptvReady(function () { refreshAddonRows('local:iptv'); }); }
1429
+ if (typeof XtVod !== 'undefined' && XtVod.onChange) { XtVod.onChange(function () { refreshAddonRows('local:xtvod'); }); } // (an Xtream account's films and series, once its categories came)
1415
1430
  var PARTIAL_DELAY = 150; // coalesces catalogs that arrive together into one redraw
1416
1431
  function loadHomeCatalogs() {
1417
1432
  if (_homeLoading) { return; }
@@ -1420,8 +1435,8 @@
1420
1435
  var only = first ? null : _reloadOnly; // a partial reload: just these addons' rows
1421
1436
  _reloadOnly = null;
1422
1437
  _homeFirstLoad = first;
1423
- var old = {};
1424
- (_homeCatalogs || []).forEach(function (c) { old[c.type + '|' + c.name] = c.metas; });
1438
+ var old = {}, oldLoading = {};
1439
+ (_homeCatalogs || []).forEach(function (c) { old[c.type + '|' + c.name] = c.metas; if (c.loading) { oldLoading[c.type + '|' + c.name] = true; } });
1425
1440
  function oldFor(cat) {
1426
1441
  return cat.type === 'other'
1427
1442
  ? (old['movie|' + otherRowName('Movies', cat.name)] || []).concat(old['series|' + otherRowName('Series', cat.name)] || [])
@@ -1441,7 +1456,7 @@
1441
1456
  }
1442
1457
  function onHome() { return _current() === s && !isModalOpen() && !Player.isActive(); }
1443
1458
  Stremio.catalogsForHome().then(function (cats) {
1444
- var acc = cats.map(function (cat) { return copyCat({ name: cat.name, type: cat.type, yt: isYouTubeCat(cat) }, []); });
1459
+ var acc = cats.map(function (cat) { return copyCat({ name: cat.name, type: cat.type, yt: isYouTubeCat(cat) }, [], cat.def && cat.def._favs ? { all: true } : null); }); // (all: IPTV's ★ Favorites, every one)
1445
1460
  var arrived = cats.map(function () { return false; }), shown = 0, partialTimer = null;
1446
1461
  // First load: publish each row as soon as it arrives, in its own place (a slower one above
1447
1462
  // it held by a "Loading…" placeholder, so nothing jumps when it comes), and redraw when
@@ -1467,15 +1482,16 @@
1467
1482
  return function () {
1468
1483
  if (only && !only[cat.addon.url]) { // not the addon that changed: keep its rows
1469
1484
  acc[i].metas = oldFor(cat); arrived[i] = true;
1485
+ if (oldLoading[cat.type + '|' + cat.name]) { acc[i].loading = true; } // (its Loading… stays: an Xtream list still being read)
1470
1486
  return Promise.resolve();
1471
1487
  }
1472
- return Stremio.getCatalog(cat).then(function (metas) { acc[i].metas = metas; }, function () {
1488
+ return catalogUpTo(cat, rowCards()).then(function (metas) { acc[i].metas = metas; if (metas.pending) { acc[i].loading = true; } }, function () {
1473
1489
  acc[i].metas = oldFor(cat);
1474
1490
  }).then(function () { arrived[i] = true; partial(); });
1475
1491
  };
1476
1492
  });
1477
1493
  U.settleAll(tasks, 3).then(function () {
1478
- _homeCatalogs = splitOtherCatalogs(acc).filter(function (c) { return c.metas && c.metas.length; });
1494
+ _homeCatalogs = splitOtherCatalogs(acc).filter(function (c) { return c.loading || (c.metas && c.metas.length); });
1479
1495
  done();
1480
1496
  var want = _wantTab;
1481
1497
  _wantTab = null;
@@ -1504,25 +1520,78 @@
1504
1520
 
1505
1521
  // Catalogs of type "other" (e.g. Torrentio's RealDebrid downloads) aren't live TV:
1506
1522
  // their items go to a Movies row and a Series row, split by the release name.
1507
- // Everything is capped to the ROW_CARDS cards a Home row shows.
1523
+ // Everything is capped to the cards a Home row shows (Settings › Appearance › Titles in a Home
1524
+ // row), but for IPTV's ★ Favorites (all: every one you picked, up to the 300 kept).
1508
1525
  var ROW_CARDS = 30;
1526
+ function rowCards() { var n = Stremio.getPrefs().rowCards; return n === 'all' ? Infinity : n || ROW_CARDS; }
1527
+ // A row's titles, up to n: a catalog that pages (skip) is asked for its next pages (skip =
1528
+ // titles so far, as Discover does) until there are n, a page brings nothing new or fails (what
1529
+ // came is kept), or HOME_PAGES pages (Unlimited: HOME_PAGES_ALL, for an addon that never runs
1530
+ // out). IPTV's and YouTube's own: as they come.
1531
+ var HOME_PAGES = 10, HOME_PAGES_ALL = 200;
1532
+ function catalogPages(cat) {
1533
+ var def = cat.def || {};
1534
+ return (def.extra || []).some(function (e) { return e && e.name === 'skip'; }) || (def.extraSupported || []).indexOf('skip') !== -1;
1535
+ }
1536
+ function catalogUpTo(cat, n) {
1537
+ return Stremio.getCatalog(cat).then(function (first) {
1538
+ if ((cat.addon && cat.addon.__local) || first.stale || !first.length || first.length >= n || !catalogPages(cat)) { return first; }
1539
+ var out = first.slice(), seen = {};
1540
+ out.forEach(function (m) { seen[m.id] = 1; });
1541
+ function next(page) {
1542
+ if (out.length >= n || page > (n === Infinity ? HOME_PAGES_ALL : HOME_PAGES)) { return out; }
1543
+ return Stremio.getCatalog(cat, { skip: out.length }).then(function (more) {
1544
+ var added = 0;
1545
+ more.forEach(function (m) { if (!seen[m.id]) { seen[m.id] = 1; out.push(m); added++; } });
1546
+ return added ? next(page + 1) : out;
1547
+ }, function () { return out; });
1548
+ }
1549
+ return next(2);
1550
+ });
1551
+ }
1509
1552
  var SERIES_NAME = /(^|[^a-z0-9])(s\d{1,2}(e\d{1,3})?|\d{1,2}x\d{2}|season[\s._-]*\d+|temporada[\s._-]*\d+|complete[\s._-]*series)([^a-z0-9]|$)/i;
1510
1553
  function otherRowName(kind, name) { return kind + ' · ' + ('' + name).replace(/^Other · /, ''); }
1511
1554
  function splitOtherCatalogs(list) {
1512
1555
  var out = [];
1513
1556
  list.forEach(function (c) {
1514
1557
  if (c.loading) { if (c.type !== 'other' || c.yt) { out.push(copyCat(c, [], { loading: true })); } return; } // (a placeholder: still loading)
1515
- if (c.type !== 'other' || c.yt) { out.push(copyCat(c, c.metas.slice(0, ROW_CARDS))); return; } // (a YouTube one as it is, whatever its type)
1558
+ if (c.type !== 'other' || c.yt) { out.push(copyCat(c, c.all ? c.metas.slice() : c.metas.slice(0, rowCards()))); return; } // (a YouTube one as it is, whatever its type)
1516
1559
  var movies = [], series = [];
1517
1560
  c.metas.forEach(function (m) { (SERIES_NAME.test(m.name || '') ? series : movies).push(m); });
1518
- out.push({ name: otherRowName('Movies', c.name), type: 'movie', metas: movies.slice(0, ROW_CARDS) });
1519
- out.push({ name: otherRowName('Series', c.name), type: 'series', metas: series.slice(0, ROW_CARDS) });
1561
+ out.push({ name: otherRowName('Movies', c.name), type: 'movie', metas: movies.slice(0, rowCards()) });
1562
+ out.push({ name: otherRowName('Series', c.name), type: 'series', metas: series.slice(0, rowCards()) });
1520
1563
  });
1521
1564
  return out;
1522
1565
  }
1523
1566
 
1567
+ // A long row (Titles in a Home row, ★ Favorites up to 300) builds ROW_FIRST cards, not all of them
1568
+ // in one go with the remote waiting, then ROW_MORE at a time when focus is within ROW_NEAR of
1569
+ // the end (Home's Focus.onFocus). row.__rest(): the titles not built yet (CH+ / CH− go through
1570
+ // them); row.__cardOf(meta): its card, built if it wasn't.
1571
+ var ROW_FIRST = 30, ROW_MORE = 30, ROW_NEAR = 8;
1572
+ function lateCards(row, c) {
1573
+ var at = ROW_FIRST, scroller = row.querySelector('.row-scroller');
1574
+ function add(n) {
1575
+ var end = Math.min(c.metas.length, at + n), first = scroller.firstChild, nav = first && first.__navDOWN;
1576
+ for (; at < end; at++) {
1577
+ var card = posterCard(c.metas[at], c.type);
1578
+ if (nav) { card.__navDOWN = nav; } // (the rows below it, as its neighbors)
1579
+ scroller.appendChild(card);
1580
+ }
1581
+ if (at >= c.metas.length) { row.__more = null; }
1582
+ }
1583
+ row.__more = function () { add(ROW_MORE); };
1584
+ row.__rest = function () { return c.metas.slice(at); };
1585
+ row.__cardOf = function (m) {
1586
+ var want = c.metas.indexOf(m), kids = scroller.children;
1587
+ if (want === -1) { return null; }
1588
+ add(want + 1 - at);
1589
+ return kids[want] || null;
1590
+ };
1591
+ }
1592
+
1524
1593
  // Render cats[from .. from+ROW_BATCH) into `rows`. A large IPTV list can have 50+
1525
- // groups x ROW_CARDS cards; building them all up front bloats the DOM, the poster queue
1594
+ // groups x rowCards() cards; building them all up front bloats the DOM, the poster queue
1526
1595
  // and every D-pad scan. While more remain, DOWN on either of the last two rendered
1527
1596
  // rows renders the next batch first, then the normal DOWN move continues into it.
1528
1597
  function appendRows(rows, cats, from, atLeast) {
@@ -1530,7 +1599,8 @@
1530
1599
  var built = [];
1531
1600
  for (var i = from; i < to; i++) {
1532
1601
  var c = cats[i];
1533
- var row = buildRow(c.name, c.metas.map(function (m) { return posterCard(m, c.type); }));
1602
+ var row = buildRow(c.name, c.metas.slice(0, ROW_FIRST).map(function (m) { return posterCard(m, c.type); }));
1603
+ if (c.metas.length > ROW_FIRST) { lateCards(row, c); }
1534
1604
  if (c.loading) { row.className += ' row-loading'; row.appendChild(U.el('div', 'row-empty', 'Loading…')); } // (its place kept: nothing to focus)
1535
1605
  rows.appendChild(row);
1536
1606
  built.push(row);
@@ -142,7 +142,7 @@
142
142
  function render() { name.textContent = caption + ': ' + labelFor(list, store.get()[key]); }
143
143
  render();
144
144
  row.appendChild(name);
145
- row.appendChild(U.el('div', 'a-url', 'Press OK to choose'));
145
+ row.appendChild(U.el('div', 'a-url', 'Press OK to choose' + (store.warning ? '. ' + store.warning : '')));
146
146
  row.__onselect = function () {
147
147
  pickList(caption, list, store.get()[key], function (v) {
148
148
  var cfg = store.get(); cfg[key] = v; store.set(cfg);
@@ -215,6 +215,11 @@
215
215
  get: function () { return { zoom: '' + zoomPct() }; },
216
216
  set: function (cfg) { Stremio.setPref('zoom', +cfg.zoom); applyAppearance(); }
217
217
  }));
218
+ wrap.appendChild(subPickRow('Titles in a Home row', [['30', '30'], ['50', '50'], ['100', '100'], ['200', '200'], ['all', 'Unlimited']], 'rowCards', {
219
+ warning: 'Unlimited: Home can take much longer to load, an addon may refuse so many requests, and very long rows can slow an older TV',
220
+ get: function () { return { rowCards: '' + Stremio.getPrefs().rowCards }; },
221
+ set: function (cfg) { Stremio.setPref('rowCards', cfg.rowCards === 'all' ? 'all' : +cfg.rowCards); clearCatalogCache(); } // (the rows read again, with more pages or fewer)
222
+ }));
218
223
  wrap.appendChild(subPickRow('Poster orientation', POSTER_SHAPES, 'posterShape', {
219
224
  get: function () { return { posterShape: Stremio.getPrefs().posterShape }; },
220
225
  set: function (cfg) { Stremio.setPref('posterShape', cfg.posterShape); markHomeDirty(); } // Home redraws on return
@@ -922,6 +927,7 @@
922
927
  parts.push(thousands(st.count || 0) + ' channel' + (st.count === 1 ? '' : 's') + (st.groups ? ' in ' + st.groups + ' group' + (st.groups === 1 ? '' : 's') : ''));
923
928
  if (st.fetchedAt) { var d = new Date(st.fetchedAt); parts.push('downloaded ' + U.dayLabel(st.fetchedAt) + ' ' + two(d.getHours()) + ':' + two(d.getMinutes())); }
924
929
  if (st.dropped) { parts.push(thousands(st.dropped) + ' more left out (a playlist keeps its first 30,000)'); }
930
+ if (st.cut) { parts.push('stopped short' + (st.cut > 0 ? ' of ' + thousands(st.cut) : '') + ': see Stalker channels'); }
925
931
  if (st.uncached) { parts.push('too large to save on the TV: downloaded each launch'); }
926
932
  var g = guideInfo(p);
927
933
  if (g) { parts.push(g); }
@@ -982,6 +988,38 @@
982
988
  }
983
989
  });
984
990
  }
991
+ // + Add Stalker portal: its address, then its MAC address; checked (its channels read through
992
+ // the service), then added (Stremio.iptvAddStalker).
993
+ function addStalker() {
994
+ function done(portal, mac) {
995
+ U.toast('Checking the portal…', 60000);
996
+ IPTV.stalkerCheck(portal, mac).then(function (r) {
997
+ if (r.noService) { U.toast('Stalker portals are read by StremioK’s service, which a desktop browser doesn’t have (nothing was saved)', 5000); return; }
998
+ if (r.unreachable) { U.toast('Couldn’t read the portal' + (r.why ? ' (' + r.why + ')' : '') + ': nothing was saved', 6000); return; }
999
+ if (r.refused) { U.toast('The portal refused that MAC address' + (r.why ? ' (' + r.why + ')' : '') + ': nothing was saved', 6000); return; }
1000
+ Stremio.iptvAddStalker(portal, mac);
1001
+ refreshAddonRows('local:iptv');
1002
+ U.toast('Stalker portal added: ' + r.count + ' channels' + (r.cut ? (r.cut.total ? ' of ' + r.cut.total : ' so far') + ': see Stalker channels' : ''), r.cut ? 6000 : 4000);
1003
+ renderSettings();
1004
+ });
1005
+ }
1006
+ App.openEntry({
1007
+ title: 'Stalker portal: address', phone: 'playlist',
1008
+ hint: 'The portal address your provider gave you (http://portal.example.com/c/). RETURN cancels.',
1009
+ value: 'http://', placeholder: 'http://portal.example.com/c/',
1010
+ validate: function (v) { return IPTV.stalkerPortal(v) ? null : 'That isn’t a portal address'; },
1011
+ onConfirm: function (v) {
1012
+ var portal = IPTV.stalkerPortal(v);
1013
+ App.back();
1014
+ App.openEntry({
1015
+ title: 'Stalker portal: MAC address', phone: 'mac',
1016
+ hint: 'The MAC address your provider registered for you (00:1A:79:…), kept on the TV. RETURN cancels.', value: '00:1A:79:', placeholder: '00:1A:79:00:00:00',
1017
+ validate: function (m) { return IPTV.macOf(m) ? null : 'A MAC address is six pairs, like 00:1A:79:12:34:56'; },
1018
+ onConfirm: function (m) { App.back(); done(portal, IPTV.macOf(m)); }
1019
+ });
1020
+ }
1021
+ });
1022
+ }
985
1023
  // Streaming server: Stremio's or TorrServer, on your network (see Stremio.server). Picking one
986
1024
  // asks for its address; Test says whether it answers.
987
1025
  var SERVERS = [['', 'Off'], ['stremio', 'Stremio server'], ['torrserver', 'TorrServer']];
@@ -1064,7 +1102,7 @@
1064
1102
  var btns = orderButtons(function (dir, name) { move(dir, name)(); }, ctl);
1065
1103
  var item = ctl(U.el('div', 'addon-item focusable playlist-item'), 'item');
1066
1104
  item.appendChild(U.el('div', 'a-name', label + (playlist.off ? ' (off)' : '')));
1067
- item.appendChild(U.el('div', 'a-url', U.redactUrl(playlist.url))); // (credentials masked)
1105
+ item.appendChild(U.el('div', 'a-url', U.redactUrl(playlist.url) + (playlist.mac ? ' · MAC ' + playlist.mac.slice(0, 8) + ':••:••:••' : ''))); // (credentials masked; a Stalker portal's MAC too)
1068
1106
  var info = U.el('div', 'a-url playlist-info', playlistInfo(playlist));
1069
1107
  var problem = U.el('div', 'a-url addon-said', playlistProblem(playlist));
1070
1108
  item.appendChild(info);
@@ -1122,10 +1160,28 @@
1122
1160
  xt.appendChild(U.el('div', 'a-url', 'Its server, username and password: its channels and TV guide added'));
1123
1161
  xt.__onselect = addXtream;
1124
1162
  wrap.appendChild(xt);
1163
+ var sk = U.el('div', 'addon-item focusable add-row');
1164
+ sk.appendChild(U.el('div', 'a-name', '+ Add Stalker portal'));
1165
+ sk.appendChild(U.el('div', 'a-url', 'Its address and MAC address: its channels added'));
1166
+ sk.__onselect = addStalker;
1167
+ wrap.appendChild(sk);
1125
1168
  if (playlists.length && Stremio.iptvRefreshEvery) { // (all of them, with their guides, as Reload does)
1126
1169
  wrap.appendChild(subPickRow('Auto-refresh', IPTV_EVERY, 'every',
1127
1170
  { get: function () { return { every: String(Stremio.iptvRefreshEvery()) }; }, set: function (c) { Stremio.iptvSetRefreshEvery(+c.every); } }));
1128
1171
  }
1172
+ wrap.appendChild(subPickRow('Stalker channels', [['pages', 'First 100 pages (about 1,400 channels)'], ['all', 'Whole portal (up to 30,000 channels)']], 'stalker', {
1173
+ warning: 'Whole portal can take many minutes on every Reload and Auto-refresh, the IPTV rows wait for a first read, and a portal may slow down, cut off or block a MAC address that asks so much',
1174
+ get: function () { return { stalker: IPTV.stalkerAll() ? 'all' : 'pages' }; },
1175
+ set: function (c) {
1176
+ var on = c.stalker === 'all', was = IPTV.stalkerAll();
1177
+ IPTV.setStalkerAll(on);
1178
+ if (!on || was) { return; }
1179
+ var mine = playlists.filter(IPTV.isStalker); // (read again now: leave StremioK open meanwhile)
1180
+ if (!mine.length) { return; }
1181
+ U.toast('Reading the whole portal: this can take many minutes, leave StremioK open', 6000);
1182
+ mine.forEach(function (p) { Stremio.iptvReload(p.id).then(function () { refreshAddonRows('local:iptv'); }); });
1183
+ }
1184
+ }));
1129
1185
 
1130
1186
  wrap.appendChild(U.el('div', 'hint',
1131
1187
  'Channels are grouped into IPTV and Radio rows on Home. ▲ / ▼ set the playlists\' order: a channel in two playlists comes from the first.'));
@@ -1775,6 +1831,7 @@
1775
1831
  line('Settings storage: ' + fmtBytes(inf.ls) + ' (progress, watched marks, settings…)' + (inf.lsTop.length ? '; the largest:' : ''));
1776
1832
  inf.lsTop.forEach(function (e) { line(' ' + fmtBytes(e.bytes) + ' ' + e.key); });
1777
1833
  if (inf.guides && inf.guides.count) { line('Saved TV guides (in StremioK’s folder): ' + fmtBytes(inf.guides.bytes) + ' in ' + inf.guides.count + (inf.guides.count === 1 ? ' file' : ' files')); }
1834
+ if (inf.guides && inf.guides.xtv && inf.guides.xtv.count) { line('Saved Xtream film and series lists (in StremioK’s folder): ' + fmtBytes(inf.guides.xtv.bytes) + ' in ' + inf.guides.xtv.count + (inf.guides.xtv.count === 1 ? ' file' : ' files')); }
1778
1835
  if (inf.disk) { line('The TV’s own disk: ' + fmtBytes(inf.disk.free) + ' free of ' + fmtBytes(inf.disk.total) + ' (what the TV allows StremioK follows it: freeing space, unused apps for one, raises it)'); }
1779
1836
  }
1780
1837
  r.__onselect = function () {
@@ -1816,9 +1873,9 @@
1816
1873
  }
1817
1874
  var clr = U.el('div', 'addon-item focusable');
1818
1875
  clr.appendChild(U.el('div', 'a-name', 'Clear saved copies'));
1819
- clr.appendChild(U.el('div', 'a-url', 'Home’s saved rows, IPTV playlist copies, saved TV guides, the USB index: made again when needed (playlists and guides download again)'));
1876
+ clr.appendChild(U.el('div', 'a-url', 'Home’s saved rows, IPTV playlist copies, saved TV guides and Xtream lists, the USB index: made again when needed (playlists, guides and lists download again)'));
1820
1877
  clr.__onselect = function () {
1821
- confirm('Clear the copies StremioK can make again (Home rows, playlist copies, TV guides, USB index)?', 'Clear', function () {
1878
+ confirm('Clear the copies StremioK can make again (Home rows, playlist copies, TV guides, Xtream lists, USB index)?', 'Clear', function () {
1822
1879
  U.bigStore.keys().then(function (ks) {
1823
1880
  return Promise.all(ks.filter(function (k) { return /^stremiok\.(homecache|local\.index|iptv\.cache\.)/.test(k); }).map(function (k) { return U.bigStore.remove(k); }));
1824
1881
  }).then(function () {
@@ -2118,7 +2175,7 @@
2118
2175
  sl.setAttribute('data-fk', 'skiplist'); sl.setAttribute('data-ctl', 'extra');
2119
2176
  sl.appendChild(U.el('div', 'a-name', 'Skip the source list: ' + (skipList ? 'On' : 'Off')));
2120
2177
  sl.appendChild(U.el('div', 'a-url', (skipList ? '▶ Play, OK on an episode and ▶ Play SxEx play the top source at once (hold OK on an episode › Details for the list)'
2121
- : '▶ Play and OK on an episode show the sources to pick from') + ' · OK to turn ' + (skipList ? 'off' : 'on')));
2178
+ : '▶ Play and OK on an episode show the sources to pick from (the remote’s Play key plays the top one)') + ' · OK to turn ' + (skipList ? 'off' : 'on')));
2122
2179
  sl.__onselect = function () { Stremio.setPref('skipSourceList', !skipList); refeed('ranking', 'skiplist', 'extra'); };
2123
2180
  return sl;
2124
2181
  }
package/js/views.js CHANGED
@@ -14,7 +14,7 @@ var Views = (function (V) {
14
14
  renderLive: V.renderLive,
15
15
  renderSearch: V.renderSearch, searchFor: function (q) { V.searchFor(q); }, renderDiscover: V.renderDiscover, renderEntry: V.renderEntry, backInDetail: V.backInDetail,
16
16
  homeDirty: V.homeDirty, refreshHomeIfStale: V.refreshHomeIfStale, alertNewEpisodes: V.alertNewEpisodes, previewTiles: V.previewTiles, withShowInfo: V.withShowInfo,
17
- isModalOpen: V.isModalOpen, closeModal: V.closeModal, confirm: V.confirm, moveKey: V.moveKey, availableTabs: V.availableTabs,
17
+ isModalOpen: V.isModalOpen, closeModal: V.closeModal, confirm: V.confirm, moveKey: V.moveKey, playKey: V.playKey, availableTabs: V.availableTabs,
18
18
  menuItems: V.menuItems, menuOrder: V.menuOrder, moveMenuItem: V.moveMenuItem
19
19
  };
20
20
  })(ViewParts);