stremiok 2.2.5 → 2.2.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  What changed in each version of StremioK, newest first. How everything works is in the
4
4
  [user guide](docs/USER-GUIDE.md).
5
5
 
6
+ ## 2.2.6 — 2026-11-02
7
+ - **Watching:** a title saved without a poster, or whose poster no longer loads, shows its usual
8
+ poster instead of only its name, for titles already there too (#6). One still without a
9
+ poster: see [Troubleshooting](docs/TROUBLESHOOTING.md#home).
10
+ - **Start on** (Settings › Appearance): the tab StremioK opens on, any Home tab. Until you choose
11
+ one, Watching. The Guide opens once its TV guide is read.
12
+ - **Guide tab:** opened as StremioK starts, its channels no longer stay on *Loading…* until you
13
+ change tabs. OK on a channel still loading plays it.
14
+
6
15
  ## 2.2.5 — 2026-11-01
7
16
  - **A Stalker portal's Channel groups** (OK on it, in Settings › Content › IPTV): tick the genres you
8
17
  want and only those are read, however big the portal is.
package/config.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"
3
- id="http://stremiok.tizen/StremioKTizen" version="2.2.5" viewmodes="maximized">
3
+ id="http://stremiok.tizen/StremioKTizen" version="2.2.6" viewmodes="maximized">
4
4
  <tizen:application id="StremioK01.StremioK" package="StremioK01" required_version="3.0"/>
5
5
  <content src="index.html"/>
6
6
  <feature name="http://tizen.org/feature/screen.size.all"/>
package/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=1920, height=1080, user-scalable=no">
6
6
  <title>StremioK</title>
7
- <link rel="stylesheet" href="css/style.css?v=2.2.5">
7
+ <link rel="stylesheet" href="css/style.css?v=2.2.6">
8
8
  </head>
9
9
  <body>
10
10
  <!-- CSS-applied sentinel (kept off-screen); app.js waits for its width before rendering -->
@@ -53,38 +53,38 @@
53
53
 
54
54
  <!-- Load order matters: polyfills -> util -> iptv -> data -> input -> tvapps -> player parts -> player -> ytplay -> view parts -> views -> app -->
55
55
  <!-- ?v= busts the TV webview cache on every release (keep in sync with package.json) -->
56
- <script src="js/polyfills.js?v=2.2.5"></script>
57
- <script src="js/util.js?v=2.2.5"></script>
58
- <script src="js/iptv.js?v=2.2.5"></script>
59
- <script src="js/xtvod.js?v=2.2.5"></script>
60
- <script src="js/epg.js?v=2.2.5"></script>
61
- <script src="js/youtube.js?v=2.2.5"></script>
62
- <script src="js/stremio.js?v=2.2.5"></script>
63
- <script src="js/trakt.js?v=2.2.5"></script>
64
- <script src="js/keys.js?v=2.2.5"></script>
65
- <script src="js/focus.js?v=2.2.5"></script>
66
- <script src="js/tvapps.js?v=2.2.5"></script>
67
- <script src="js/player-core.js?v=2.2.5"></script>
68
- <script src="js/player-store.js?v=2.2.5"></script>
69
- <script src="js/player-lang.js?v=2.2.5"></script>
70
- <script src="js/player-quality.js?v=2.2.5"></script>
71
- <script src="js/player-subs.js?v=2.2.5"></script>
72
- <script src="js/player-audio.js?v=2.2.5"></script>
73
- <script src="js/player-controls.js?v=2.2.5"></script>
74
- <script src="js/player.js?v=2.2.5"></script>
75
- <script src="js/ytplay.js?v=2.2.5"></script>
76
- <script src="js/local.js?v=2.2.5"></script>
77
- <script src="js/downloads.js?v=2.2.5"></script>
78
- <script src="js/stremio-account.js?v=2.2.5"></script>
79
- <script src="js/view-core.js?v=2.2.5"></script>
80
- <script src="js/view-home.js?v=2.2.5"></script>
81
- <script src="js/view-guide.js?v=2.2.5"></script>
82
- <script src="js/view-detail.js?v=2.2.5"></script>
83
- <script src="js/view-search.js?v=2.2.5"></script>
84
- <script src="js/view-settings.js?v=2.2.5"></script>
85
- <script src="js/view-discover.js?v=2.2.5"></script>
86
- <script src="js/views.js?v=2.2.5"></script>
87
- <script src="js/app.js?v=2.2.5"></script>
88
- <script src="js/hubpreview.js?v=2.2.5"></script>
56
+ <script src="js/polyfills.js?v=2.2.6"></script>
57
+ <script src="js/util.js?v=2.2.6"></script>
58
+ <script src="js/iptv.js?v=2.2.6"></script>
59
+ <script src="js/xtvod.js?v=2.2.6"></script>
60
+ <script src="js/epg.js?v=2.2.6"></script>
61
+ <script src="js/youtube.js?v=2.2.6"></script>
62
+ <script src="js/stremio.js?v=2.2.6"></script>
63
+ <script src="js/trakt.js?v=2.2.6"></script>
64
+ <script src="js/keys.js?v=2.2.6"></script>
65
+ <script src="js/focus.js?v=2.2.6"></script>
66
+ <script src="js/tvapps.js?v=2.2.6"></script>
67
+ <script src="js/player-core.js?v=2.2.6"></script>
68
+ <script src="js/player-store.js?v=2.2.6"></script>
69
+ <script src="js/player-lang.js?v=2.2.6"></script>
70
+ <script src="js/player-quality.js?v=2.2.6"></script>
71
+ <script src="js/player-subs.js?v=2.2.6"></script>
72
+ <script src="js/player-audio.js?v=2.2.6"></script>
73
+ <script src="js/player-controls.js?v=2.2.6"></script>
74
+ <script src="js/player.js?v=2.2.6"></script>
75
+ <script src="js/ytplay.js?v=2.2.6"></script>
76
+ <script src="js/local.js?v=2.2.6"></script>
77
+ <script src="js/downloads.js?v=2.2.6"></script>
78
+ <script src="js/stremio-account.js?v=2.2.6"></script>
79
+ <script src="js/view-core.js?v=2.2.6"></script>
80
+ <script src="js/view-home.js?v=2.2.6"></script>
81
+ <script src="js/view-guide.js?v=2.2.6"></script>
82
+ <script src="js/view-detail.js?v=2.2.6"></script>
83
+ <script src="js/view-search.js?v=2.2.6"></script>
84
+ <script src="js/view-settings.js?v=2.2.6"></script>
85
+ <script src="js/view-discover.js?v=2.2.6"></script>
86
+ <script src="js/views.js?v=2.2.6"></script>
87
+ <script src="js/app.js?v=2.2.6"></script>
88
+ <script src="js/hubpreview.js?v=2.2.6"></script>
89
89
  </body>
90
90
  </html>
package/js/stremio.js CHANGED
@@ -179,6 +179,7 @@ var Stremio = (function () {
179
179
  homePreviewOrder: p.homePreviewOrder === 'watching' ? 'watching' : 'recent', // ...its tiles: the latest first, or as in Watching
180
180
  hiddenTabs: wordList(p.hiddenTabs, 20, 20), // Settings > Appearance > Menu: tabs hidden
181
181
  menuOrder: wordList(p.menuOrder, 20, 20), // ...and the menu's order (see ViewParts.menuOrder)
182
+ startTab: /^[a-z]{1,20}$/.test(p.startTab || '') ? p.startTab : 'continue', // Settings > Appearance > Start on: the Home tab a launch opens on
182
183
  hideWords: wordList(p.hideWords, 30, 40), // Settings > Source ranking: sources with these words at the bottom
183
184
  watchRegion: /^[A-Z]{2}$/.test(p.watchRegion || '') ? p.watchRegion : '' }; // Settings > Integrations ('' = automatic)
184
185
  }
package/js/view-detail.js CHANGED
@@ -96,6 +96,8 @@
96
96
  Stremio.getMeta(type, id, pageCancel()).then(function (meta) {
97
97
  if (!still()) { return; }
98
98
  _d.meta = meta;
99
+ if (_d.preview && !meta.poster && _d.preview.poster) { meta.poster = _d.preview.poster; } // (details without artwork: the card's, so Continue Watching has one)
100
+ if (_d.preview && !meta.background && _d.preview.background) { meta.background = _d.preview.background; }
99
101
  U.spinner(false);
100
102
  afterMeta();
101
103
  }, function (err) {
package/js/view-guide.js CHANGED
@@ -22,14 +22,15 @@
22
22
 
23
23
  // Drawn again soon after (Home redrawn, the tab picked again): from what the grid before had
24
24
  // read (REUSE_MS), the same channels in the same window and hours, focus where it was;
25
- // no "Reading…" between, nothing asked again.
25
+ // no "Reading…" between, nothing asked again. Not while it's still reading (Home redrawn as
26
+ // StremioK starts on the Guide): what comes would draw only the grid gone, so asked again.
26
27
  var REUSE_MS = 5 * 60 * 1000;
27
28
  function guideGrid(rows) {
28
29
  stopFinding(); // (a lookup from the grid drawn before: stopped)
29
30
  var now = Date.now() / 1000, chans = EPG.guided(), was = _g;
30
31
  var g = _g = { el: rows, start: floorStep(now), live: true, chans: chans, lists: {}, asked: {}, failed: {}, got: {}, top: 0, nodes: [], at: Date.now(), gen: EPG.generation ? EPG.generation() : 0 }; // (live: the hours show the present, and follow the clock: tick)
31
32
  if (!chans.length) { rows.appendChild(U.el('div', 'row-empty', 'No TV guide yet (Settings › Content › IPTV › Guide link).')); return; }
32
- if (was && was.at && Date.now() - was.at < REUSE_MS && was.gen === g.gen && sameChans(was, chans)) {
33
+ if (was && was.at && !was.reading && Date.now() - was.at < REUSE_MS && was.gen === g.gen && sameChans(was, chans)) {
33
34
  var f = Focus.current(), want = (f && was.box && was.box.contains(f) && f.__chan) ? (f.__loading ? { id: f.__chan, t: f.__t } : { id: f.__chan, start: f.__p.start }) : null;
34
35
  g.lists = was.lists; g.asked = was.asked; g.failed = was.failed || {}; g.got = was.got || {}; g.at = was.at; g.top = was.top;
35
36
  g.chans = chans.filter(function (c) { return !(c.id in g.lists) || g.lists[c.id].length; });
@@ -75,7 +76,9 @@
75
76
  var ids = g.chans.slice(g.top, g.top + ROWS + AHEAD).filter(function (c) { return !g.asked[c.id]; }).map(function (c) { g.asked[c.id] = 1; return c.id; });
76
77
  if (!ids.length) { return Promise.resolve(false); }
77
78
  var now = Date.now() / 1000;
79
+ g.reading = (g.reading || 0) + 1; // (reads not in yet: see guideGrid)
78
80
  return EPG.range(ids, now - 2 * 3600, now + 30 * 3600).then(function (lists) {
81
+ g.reading--;
79
82
  var unknown = {};
80
83
  ((lists && lists._unknown) || []).forEach(function (id) { unknown[id] = 1; });
81
84
  ids.forEach(function (id) {
@@ -88,7 +91,7 @@
88
91
  g.top = Math.max(0, Math.min(g.top, g.chans.length - ROWS));
89
92
  if (Object.keys(unknown).length) { retryLater(g); }
90
93
  return true;
91
- }, function () { ids.forEach(function (id) { delete g.asked[id]; g.failed[id] = 1; }); retryLater(g); return true; });
94
+ }, function () { g.reading--; ids.forEach(function (id) { delete g.asked[id]; g.failed[id] = 1; }); retryLater(g); return true; });
92
95
  }
93
96
  // Channels whose programs didn't come (the service didn't answer, or not all of it): asked
94
97
  // again RETRY_MS later, while the grid is still on screen; their rows say so meanwhile.
@@ -169,7 +172,7 @@
169
172
  wait.__meta = { name: c.name, releaseInfo: 'Reading its TV guide…' };
170
173
  hooks(wait, -1);
171
174
  wait.__onlongpress = function () { hold(g, r, null); };
172
- if (!c.guideOnly) { wait.__onplay = function () { playChannel(g, r, true); }; }
175
+ if (!c.guideOnly) { wait.__onselect = function () { playChannel(g, r); }; wait.__onplay = function () { playChannel(g, r, true); }; } // (OK: the channel, as for what's on now)
173
176
  track.appendChild(wait);
174
177
  nodes.push(wait);
175
178
  if (want && want.id === c.id) { found = wait; }
@@ -310,14 +313,14 @@
310
313
 
311
314
  // Hold OK on a program: ▶ Watch now (what's on now, a channel that plays), ★ Add to / Remove
312
315
  // from favorites (its channel), Find in your addons (that program, as a guide-only channel's
313
- // OK). p: null for a channel whose guide hasn't come (its favorites only).
316
+ // OK). p: null for a channel whose guide hasn't come (Watch now, its favorites).
314
317
  function hold(g, r, p) {
315
318
  var c = g.chans[r], now = Date.now() / 1000, fav = IPTV.isFavorite(c.id), items = [];
316
- if (p && !c.guideOnly && p.start <= now && now < p.stop) { items.push(['play', '▶ Watch now']); }
319
+ if (!c.guideOnly && (!p || (p.start <= now && now < p.stop))) { items.push(['play', '▶ Watch now']); }
317
320
  items.push(['fav', fav ? '★ Remove from favorites' : '★ Add to favorites']);
318
321
  if (p && p.title) { items.push(['find', '🔍 Find in your addons']); }
319
322
  pickList(c.name + (p && p.title ? ' · ' + p.title : ''), items, items[0][0], function (v) {
320
- if (v === 'play') { pick(g, r, p); return; }
323
+ if (v === 'play') { if (p) { pick(g, r, p); } else { playChannel(g, r); } return; }
321
324
  if (v === 'find') { findInAddons(p); return; }
322
325
  IPTV.setFavorite(c.id, !fav);
323
326
  U.toast(fav ? 'Removed from favorites' : 'Added to favorites: ★ Favorites, first on the IPTV and Guide tabs', 3000);
package/js/view-home.js CHANGED
@@ -636,7 +636,8 @@
636
636
  // next episodes queued at the credits don't record one.
637
637
  var base = e.parent || e.id.split(':')[0];
638
638
  var a = (art && art[base]) || {};
639
- var c = posterCard({ id: base, type: e.type, name: e.name, poster: a.poster || e.poster, background: a.background || e.background }, e.type);
639
+ var stock = calPoster(base); // (a title's usual poster: for an entry saved without one, or whose link no longer loads)
640
+ var c = posterCard({ id: base, type: e.type, name: e.name, poster: a.poster || e.poster || stock, background: a.background || e.background, _posterAlt: stock }, e.type);
640
641
  // Keep the full episode/file id so detail opens on it. With a saved stream the
641
642
  // card resumes it directly; long-press offers the Details page instead.
642
643
  var preview = { name: e.name, poster: e.poster, type: e.type };
@@ -1197,10 +1198,14 @@
1197
1198
  }
1198
1199
 
1199
1200
  // Switch the active home tab (from the shared top menu) and show it.
1200
- function setHomeTab(key) { _homeTab = key || _homeTab; _focusFirstCard = 'new'; _wantTab = null; }
1201
+ function setHomeTab(key) { _homeTab = key || _homeTab; _focusFirstCard = 'new'; _wantTab = null; _wantGuide = null; }
1201
1202
  // A tab asked for whose rows are still coming (a first playlist's IPTV tab): shown when they
1202
1203
  // come, if Home is still on the tab it showed instead. { key, instead }
1203
1204
  var _wantTab = null;
1205
+ // Start on the Guide (Settings › Appearance › Start on): at a launch its guides aren't read yet,
1206
+ // so Home opens on Watching and switches once they are, if it's still there (a tab you picked:
1207
+ // not). The tab shown instead, or null.
1208
+ var _wantGuide = null;
1204
1209
 
1205
1210
  // prevFocus: a Home card to put focus back on after the rebuild (the card a title
1206
1211
  // was opened from). Otherwise the card currently focused on Home is kept, so rows
@@ -1224,12 +1229,15 @@
1224
1229
  U.clear(s);
1225
1230
 
1226
1231
  if (_homeCatalogs === null) { useHomeCache(); }
1232
+ var launch = _homeTab === null;
1233
+ if (launch) { _homeTab = Stremio.getPrefs().startTab; } // (a launch: Settings › Appearance › Start on)
1227
1234
  // Keep the active tab valid for what's actually available.
1228
1235
  var avail = availableTabs();
1229
1236
  if (!_homeTab || !avail.some(function (t) { return t.key === _homeTab; })) {
1230
1237
  var asked = _homeTab;
1231
1238
  _homeTab = avail.length ? avail[0].key : 'movie';
1232
1239
  if (asked && (_homeLoading || _reloadOnly)) { _wantTab = { key: asked, instead: _homeTab }; }
1240
+ if (launch && asked === 'guide' && (Stremio.getPrefs().hiddenTabs || []).indexOf('guide') === -1) { _wantGuide = _homeTab; } // (see EPG.onChange below)
1233
1241
  }
1234
1242
 
1235
1243
  s.appendChild(buildTopMenu(_homeTab));
@@ -1355,7 +1363,12 @@
1355
1363
  var has = hasGuide();
1356
1364
  if (has !== _hadGuide) {
1357
1365
  _hadGuide = has;
1358
- if (_current() === scr('home') && !isModalOpen() && !Player.isActive()) { renderHome(); }
1366
+ var want = has && _wantGuide; // (started on the Guide: it's here now)
1367
+ if (has) { _wantGuide = null; }
1368
+ if (_current() === scr('home') && !isModalOpen() && !Player.isActive()) {
1369
+ if (want && _homeTab === want) { setHomeTab('guide'); }
1370
+ renderHome();
1371
+ }
1359
1372
  }
1360
1373
  });
1361
1374
  }
@@ -243,6 +243,10 @@
243
243
  get: function () { return { spoilers: Stremio.getPrefs().spoilers }; },
244
244
  set: function (cfg) { Stremio.setPref('spoilers', cfg.spoilers); }
245
245
  }));
246
+ wrap.appendChild(subPickRow('Start on', V.HOME_TABS.map(function (t) { return [t.key, t.label]; }), 'startTab', {
247
+ get: function () { return { startTab: Stremio.getPrefs().startTab }; },
248
+ set: function (cfg) { Stremio.setPref('startTab', cfg.startTab); } // (the next launch: Home stays where it is now)
249
+ }));
246
250
  var menu = sectionRow('Menu ›', 'Order the top menu, and show or hide its tabs', 'menuorder');
247
251
  menu.className += ' cfg-row';
248
252
  wrap.appendChild(menu);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stremiok",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "StremioK streaming client for Tizen 3.0+ Samsung TVs (TizenBrew app module).",
5
5
  "packageType": "app",
6
6
  "appName": "StremioK",