stremiok 2.3.7 → 2.3.8
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 +5 -0
- package/README.md +1 -1
- package/config.xml +1 -1
- package/index.html +43 -43
- package/js/lang/ca.js +2030 -0
- package/js/lang/languages.js +1 -0
- package/js/ytplay.js +6 -1
- package/package.json +1 -1
- package/tizenbrew.html +1 -1
package/js/lang/languages.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
how numbers change its words (and whether it runs right to left). Global: I18N_LANGS (read by js/i18n.js) */
|
|
5
5
|
var I18N_LANGS = [
|
|
6
6
|
{ code: "ar", name: "العربية", matches: ["ar"], plural: "arabic", direction: "rtl" },
|
|
7
|
+
{ code: "ca", name: "Català", matches: ["ca"], plural: "one" },
|
|
7
8
|
{ code: "de", name: "Deutsch", matches: ["de"], plural: "one" },
|
|
8
9
|
{ code: "es", name: "Español", matches: ["es"], plural: "one" },
|
|
9
10
|
{ code: "fi", name: "Suomi", matches: ["fi"], plural: "one" },
|
package/js/ytplay.js
CHANGED
|
@@ -129,10 +129,15 @@ var YTPlay = (function () {
|
|
|
129
129
|
// Where a Nuvio plugin's Worker sends its requests (js/plugins.js): { url, headers }, the
|
|
130
130
|
// token in the link (a Worker's POST then needs no preflight). lan: home-network requests
|
|
131
131
|
// allowed (Local-network links from internet addons).
|
|
132
|
+
// Without the token (it can't be read on every TV), the guide ticket goes in the link too: a
|
|
133
|
+
// Worker's POST can carry an Origin (seen on a Tizen 4 TV: every plugin request refused,
|
|
134
|
+
// "not allowed (origin)"), which the service lets through only with one of them (#21).
|
|
132
135
|
function pluginNet(lan) {
|
|
133
136
|
if (MODE === 'browser') { return Promise.reject(new Error('no service')); }
|
|
134
137
|
return ensureService().then(entryAuth).then(function (a) {
|
|
135
|
-
return
|
|
138
|
+
return (a.q ? Promise.resolve(a.q) : ticketOf(a)).then(function (cred) {
|
|
139
|
+
return { url: PROXY + '/plug/fetch?' + (cred || '').replace(/^&/, '') + (lan ? '&lan=1' : ''), headers: a.h || {} };
|
|
140
|
+
});
|
|
136
141
|
});
|
|
137
142
|
}
|
|
138
143
|
function liveOpen(url, h, force, opts, cancel) {
|
package/package.json
CHANGED
package/tizenbrew.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// from there: it opens this version's own copy (npm/stremiok@<version>/index.html), whose
|
|
11
11
|
// files all come from that address. build.sh stamps the ?v= below.
|
|
12
12
|
(function () {
|
|
13
|
-
var v = '?v=2.3.
|
|
13
|
+
var v = '?v=2.3.8'.slice(3), l = location, rest = (l.search || '') + (l.hash || '');
|
|
14
14
|
var m = /^(\/module\/npm%2F[^\/%@]+)\//i.exec(l.pathname || '');
|
|
15
15
|
l.replace(m ? m[1] + '%40' + v + '/index.html' + rest : 'index.html' + rest);
|
|
16
16
|
})();
|