stremiok 2.3.6 → 2.3.7
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 +17 -0
- package/README.md +5 -2
- package/config.xml +2 -1
- package/css/style.css +1 -0
- package/index.html +43 -43
- package/js/lang/ar.js +61 -3
- package/js/lang/de.js +61 -3
- package/js/lang/es.js +61 -3
- package/js/lang/fi.js +61 -3
- package/js/lang/fr.js +61 -3
- package/js/lang/he.js +61 -3
- package/js/lang/hi.js +61 -3
- package/js/lang/it.js +61 -3
- package/js/lang/ja.js +61 -3
- package/js/lang/ko.js +61 -3
- package/js/lang/pl.js +61 -3
- package/js/lang/pt-BR.js +61 -3
- package/js/lang/ru.js +61 -3
- package/js/lang/tr.js +61 -3
- package/js/lang/zh-CN.js +61 -3
- package/js/local.js +63 -18
- package/js/netfolders.js +76 -8
- package/js/player-audio.js +16 -8
- package/js/player-controls.js +68 -0
- package/js/player-core.js +98 -8
- package/js/player-lang.js +16 -0
- package/js/player-store.js +7 -2
- package/js/player-subs.js +267 -17
- package/js/plugins.js +43 -7
- package/js/stremio.js +54 -6
- package/js/view-core.js +2 -2
- package/js/view-detail.js +10 -3
- package/js/view-settings.js +167 -15
- package/js/ytplay.js +33 -5
- package/package.json +1 -1
- package/service/index.js +1660 -57
- package/tizenbrew.html +1 -1
package/js/lang/zh-CN.js
CHANGED
|
@@ -23,7 +23,7 @@ I18N.add("zh-CN", {
|
|
|
23
23
|
"(subtitles)": "(字幕)",
|
|
24
24
|
"(the last read failed: {why})": "(上次读取失败:{why})",
|
|
25
25
|
"(unreadable: {why})": "(无法读取:{why})",
|
|
26
|
-
"(with a USB drive
|
|
26
|
+
"(with a USB drive or network folder)": "(有 USB 驱动器或网络文件夹时)",
|
|
27
27
|
"({n} available)": "({n} 个可用)",
|
|
28
28
|
"({n} didn’t answer)": "({n} 个未响应)",
|
|
29
29
|
"({n} ignored)": "(已忽略 {n} 个)",
|
|
@@ -57,11 +57,14 @@ I18N.add("zh-CN", {
|
|
|
57
57
|
"@channel, a playlist link, or words": "@频道、播放列表链接或关键词",
|
|
58
58
|
"A MAC address is six pairs, like 00:1A:79:12:34:56": "MAC 地址由六组字符组成,例如 00:1A:79:12:34:56",
|
|
59
59
|
"A URL can’t contain spaces": "URL 不能包含空格",
|
|
60
|
+
"A WebDAV folder, a Windows / NAS share (SMB) or a media server (DLNA)": "WebDAV 文件夹、Windows / NAS 共享 (SMB) 或媒体服务器 (DLNA)",
|
|
61
|
+
"A backup saved there: StremioK/stremiok-backup.txt": "保存在那里的备份:StremioK/stremiok-backup.txt",
|
|
60
62
|
"A channel (like @ScreenJunkies, or its link), a playlist link, or words to search YouTube for (like “honest trailers”).": "频道(例如 @ScreenJunkies 或其链接)、播放列表链接,或在 YouTube 上搜索的关键词(例如“honest trailers”)。",
|
|
61
63
|
"A channel, a playlist or a search (or hold OK on a channel / playlist wherever it's shown)": "频道、播放列表或搜索(也可在任何显示频道 / 播放列表的地方长按 OK)",
|
|
62
64
|
"A code to enter at plex.tv/link, then which of your servers": "先在 plex.tv/link 输入代码,再选择你的服务器",
|
|
63
65
|
"A few times (3 in 5 minutes)": "几次(5 分钟内 3 次)",
|
|
64
66
|
"A movie": "一部电影",
|
|
67
|
+
"A name or address on your network, like 192.168.0.50": "你网络中的名称或地址,例如 192.168.0.50",
|
|
65
68
|
"A source that doesn’t start takes you back to the list": "片源无法播放时返回列表",
|
|
66
69
|
"A source the TV refuses, or that hasn’t started after 45 s, gives way to the next best one (up to 3 more)": "电视拒绝播放或 45 秒后仍未开始的片源,将自动换成下一个最佳片源(最多再试 3 个)",
|
|
67
70
|
"A source with one of them in its name, description or file name (a whole word: “CAM” isn’t in “CAMERA”) goes to the bottom, for every title · OK to change": "名称、描述或文件名中含有其中任一词(需为完整单词:“CAMERA”不算含有“CAM”)的片源,在所有影片中都排到最后 · 按 OK 更改",
|
|
@@ -85,6 +88,7 @@ I18N.add("zh-CN", {
|
|
|
85
88
|
"Add IPTV playlist": "添加 IPTV 播放列表",
|
|
86
89
|
"Add YouTube catalog": "添加 YouTube 目录",
|
|
87
90
|
"Add a Plex server": "添加 Plex 服务器",
|
|
91
|
+
"Add a network folder": "添加网络文件夹",
|
|
88
92
|
"Add addon": "添加插件",
|
|
89
93
|
"Add an app": "添加应用",
|
|
90
94
|
"Add to Continue Watching": "添加到继续观看",
|
|
@@ -123,6 +127,7 @@ I18N.add("zh-CN", {
|
|
|
123
127
|
"Alerts on": "提醒已开启",
|
|
124
128
|
"All": "全部",
|
|
125
129
|
"All HLS sources": "所有 HLS 片源",
|
|
130
|
+
"All files": "所有文件",
|
|
126
131
|
"All off": "全部关闭",
|
|
127
132
|
"All subtitle languages": "所有字幕语言",
|
|
128
133
|
"Allowed": "已允许",
|
|
@@ -157,6 +162,7 @@ I18N.add("zh-CN", {
|
|
|
157
162
|
"Asking Stremio for a code…": "正在向 Stremio 获取代码…",
|
|
158
163
|
"Asking the folder…": "正在读取文件夹…",
|
|
159
164
|
"Asking the portal for its groups…": "正在向门户获取分组…",
|
|
165
|
+
"Asking the server for its shares…": "正在向服务器询问其共享…",
|
|
160
166
|
"Asking the server…": "正在询问服务器…",
|
|
161
167
|
"Asking your streaming server for the torrent’s files…": "正在向你的流媒体服务器获取种子文件…",
|
|
162
168
|
"Asking…": "正在询问…",
|
|
@@ -169,6 +175,7 @@ I18N.add("zh-CN", {
|
|
|
169
175
|
"Audio language": "音频语言",
|
|
170
176
|
"Audio track": "音轨",
|
|
171
177
|
"Audio track changed": "已切换音轨",
|
|
178
|
+
"Audio tracks": "音轨",
|
|
172
179
|
"Audio {n}": "音轨 {n}",
|
|
173
180
|
"Audio: {track}": "音频:{track}",
|
|
174
181
|
"Aug": "8月",
|
|
@@ -313,6 +320,7 @@ I18N.add("zh-CN", {
|
|
|
313
320
|
"Couldn’t reach it": "无法连接",
|
|
314
321
|
"Couldn’t reach the server: check its address (nothing was saved)": "无法连接服务器:请检查地址(未保存任何内容)",
|
|
315
322
|
"Couldn’t read the USB drives": "无法读取 USB 驱动器",
|
|
323
|
+
"Couldn’t read the drive: {why}": "无法读取驱动器:{why}",
|
|
316
324
|
"Couldn’t read the portal: {why}": "无法读取门户:{why}",
|
|
317
325
|
"Couldn’t read the portal{why}: nothing was saved": "无法读取门户{why}:未保存任何内容",
|
|
318
326
|
"Couldn’t read this folder ({why}).": "无法读取此文件夹({why})。",
|
|
@@ -320,6 +328,7 @@ I18N.add("zh-CN", {
|
|
|
320
328
|
"Couldn’t reconnect": "无法重新连接",
|
|
321
329
|
"Couldn’t refresh it (showing the saved copy):": "无法刷新(显示已保存的副本):",
|
|
322
330
|
"Couldn’t refresh it: {why}": "无法刷新:{why}",
|
|
331
|
+
"Couldn’t save to the drive: {why}": "无法保存到驱动器:{why}",
|
|
323
332
|
"Couldn’t sign in ({why}).": "无法登录({why})。",
|
|
324
333
|
"Couldn’t start Quick Connect ({why}).": "无法启动快速连接({why})。",
|
|
325
334
|
"Couldn’t start the download: {why}": "无法开始下载:{why}",
|
|
@@ -362,8 +371,13 @@ I18N.add("zh-CN", {
|
|
|
362
371
|
"Disconnect your Stremio account?": "断开你的 Stremio 账号?",
|
|
363
372
|
"Discover": "发现",
|
|
364
373
|
"Documentary": "纪录片",
|
|
374
|
+
"Dolby Vision": "Dolby Vision",
|
|
365
375
|
"Dolby Vision (with HDR fallback)": "Dolby Vision(可回退到 HDR)",
|
|
366
376
|
"Dolby Vision only": "仅 Dolby Vision",
|
|
377
|
+
"Dolby Vision {p}: no HDR10 layer, its colors look wrong on this TV": "Dolby Vision {p}:无 HDR10 层,在这台电视上颜色会显示异常",
|
|
378
|
+
"Dolby Vision {p}: plays as HDR10": "Dolby Vision {p}:以 HDR10 播放",
|
|
379
|
+
"Dolby Vision {p}: plays as HLG": "Dolby Vision {p}:以 HLG 播放",
|
|
380
|
+
"Dolby Vision {p}: plays as SDR": "Dolby Vision {p}:以 SDR 播放",
|
|
367
381
|
"Done": "完成",
|
|
368
382
|
"Don’t match": "不匹配",
|
|
369
383
|
"Download": "下载",
|
|
@@ -544,7 +558,9 @@ I18N.add("zh-CN", {
|
|
|
544
558
|
"Imported: {what}": "已导入:{what}",
|
|
545
559
|
"In English where YouTube has a translation (the uploader's, or its own)": "YouTube 有翻译时显示英语(上传者提供的或 YouTube 自己的)",
|
|
546
560
|
"In Jellyfin on your phone or computer, open your profile › Quick Connect, and enter:": "在手机或电脑上的 Jellyfin 中,打开你的个人资料 › 快速连接,然后输入:",
|
|
561
|
+
"In its Subs folder": "在其 Subs 文件夹中",
|
|
547
562
|
"In that file: tick what to import": "在该文件中:勾选要导入的内容",
|
|
563
|
+
"In the file": "文件内容",
|
|
548
564
|
"In the language they were uploaded in": "使用上传时的语言",
|
|
549
565
|
"Index": "索引",
|
|
550
566
|
"Index again": "重新建立索引",
|
|
@@ -580,15 +596,16 @@ I18N.add("zh-CN", {
|
|
|
580
596
|
"Irish": "爱尔兰语",
|
|
581
597
|
"Israel": "以色列",
|
|
582
598
|
"It failed": "失败了",
|
|
583
|
-
"It holds your addon links, playlist logins, API keys and MAC addresses: keep the file private. Not in it: your Trakt sign-in
|
|
599
|
+
"It holds your addon links, playlist logins, API keys and MAC addresses: keep the file private. Not in it: your Trakt sign-in.": "其中包含你的插件链接、播放列表登录信息、API 密钥和 MAC 地址:请妥善保管该文件。不包含:你的 Trakt 登录信息。",
|
|
600
|
+
"It lists no shares you can open": "没有列出你可以打开的共享",
|
|
584
601
|
"It needs StremioK’s service on the TV (not in a desktop browser).": "需要电视上的 StremioK 服务(桌面浏览器中不可用)。",
|
|
602
|
+
"It only speaks SMB 3 (StremioK speaks SMB 2)": "它只支持 SMB 3(StremioK 支持 SMB 2)",
|
|
585
603
|
"It refused the user name or password": "用户名或密码被拒绝",
|
|
586
604
|
"It sent StremioK to another address (not followed)": "它将 StremioK 重定向到另一个地址(未跟随)",
|
|
587
605
|
"Italian": "意大利语",
|
|
588
606
|
"Italy": "意大利",
|
|
589
607
|
"Its TV guide didn’t come: asked again shortly": "未收到其节目单:稍后将再次请求",
|
|
590
608
|
"Its WebDAV address, like http://192.168.0.50:8080/media (https:// too). RETURN cancels.": "其 WebDAV 地址,例如 http://192.168.0.50:8080/media(也支持 https://)。按 RETURN 取消。",
|
|
591
|
-
"Its WebDAV address, then the user name and password it asks for, if any": "其 WebDAV 地址,然后是所需的用户名和密码(如有)",
|
|
592
609
|
"Its address (a manifest.json): its plugins are listed, each off until you turn it on": "其地址(manifest.json):会列出其中的插件,每个在你开启前保持关闭",
|
|
593
610
|
"Its address and MAC address: its channels added": "其地址和 MAC 地址:将添加其频道",
|
|
594
611
|
"Its address on your network, like http://192.168.0.50:8096. RETURN cancels.": "其在你网络中的地址,例如 http://192.168.0.50:8096。按 RETURN 取消。",
|
|
@@ -602,10 +619,14 @@ I18N.add("zh-CN", {
|
|
|
602
619
|
"Its channels now play as {format} (reading the account again…)": "其频道现在以 {format} 播放(正在重新读取账号…)",
|
|
603
620
|
"Its fingerprint (SHA-256): {fp}. StremioK then accepts this certificate only, for this folder.": "其指纹(SHA-256):{fp}。之后 StremioK 将仅为此文件夹接受此证书。",
|
|
604
621
|
"Its name on Home and in Discover.": "其在首页和发现中显示的名称。",
|
|
622
|
+
"Its name or address on your network, like 192.168.0.50 or nas.local. RETURN cancels.": "其在你网络中的名称或地址,例如 192.168.0.50 或 nas.local。按 RETURN 取消。",
|
|
605
623
|
"Its password (kept on the TV, sent only to that folder). RETURN cancels.": "其密码(保存在电视上,仅发送给该文件夹)。按 RETURN 取消。",
|
|
624
|
+
"Its password (kept on the TV, sent only to that server). RETURN cancels.": "其密码(保存在电视上,仅发送给该服务器)。按 RETURN 取消。",
|
|
606
625
|
"Its password (not kept: only the sign-in the server gives back). RETURN cancels.": "其密码(不保存:只保存服务器返回的登录凭据)。按 RETURN 取消。",
|
|
607
626
|
"Its server, username and password: its channels and TV guide added": "其服务器、用户名和密码:将添加其频道和节目单",
|
|
627
|
+
"Its shares: pick one": "其共享:请选择一个",
|
|
608
628
|
"Its sign-in no longer works — press OK to connect again": "其登录已失效,按 OK 重新连接",
|
|
629
|
+
"Its user name (DOMAIN\\name for a domain); leave it empty to go in as a guest. RETURN cancels.": "其用户名(域账户用 DOMAIN\\name);留空则以访客身份进入。按 RETURN 取消。",
|
|
609
630
|
"Jan": "1月",
|
|
610
631
|
"Japan": "日本",
|
|
611
632
|
"Japanese": "日语",
|
|
@@ -621,6 +642,7 @@ I18N.add("zh-CN", {
|
|
|
621
642
|
"Keep trying": "继续尝试",
|
|
622
643
|
"Kept 10 minutes": "保留 10 分钟",
|
|
623
644
|
"Kept 5 minutes": "保留 5 分钟",
|
|
645
|
+
"Keys and passwords are masked; still, look it over before sharing it publicly.": "密钥和密码已隐藏;不过公开分享前请先检查一下。",
|
|
624
646
|
"Keys are stored on this TV only. OMDb gives real IMDb per-episode ratings (used first when set); TMDB adds episode images & ratings.": "密钥仅保存在此电视上。OMDb 提供真实的 IMDb 单集评分(设置后优先使用);TMDB 提供单集图片和评分。",
|
|
625
647
|
"Khmer": "高棉语",
|
|
626
648
|
"Kids": "儿童",
|
|
@@ -668,6 +690,7 @@ I18N.add("zh-CN", {
|
|
|
668
690
|
"Logs, storage, installed apps; how StremioK was installed": "日志、存储、已安装的应用;StremioK 的安装方式",
|
|
669
691
|
"Look": "风格",
|
|
670
692
|
"Look, background, accent color, zoom, posters, spoilers": "风格、背景、强调色、缩放、海报、剧透",
|
|
693
|
+
"Looking for media servers on your network…": "正在你的网络中查找媒体服务器…",
|
|
671
694
|
"Looking for “{title}”…": "正在查找“{title}”…",
|
|
672
695
|
"Lower": "更低",
|
|
673
696
|
"Luxembourgish": "卢森堡语",
|
|
@@ -714,7 +737,9 @@ I18N.add("zh-CN", {
|
|
|
714
737
|
"Matched: {name} (offered for its sources)": "已匹配:{name}(作为其片源提供)",
|
|
715
738
|
"Matching {done} / {total}": "正在匹配 {done} / {total}",
|
|
716
739
|
"May": "5月",
|
|
740
|
+
"Media server on your network (DLNA)": "你网络中的媒体服务器 (DLNA)",
|
|
717
741
|
"Media servers": "媒体服务器",
|
|
742
|
+
"Media servers: pick one": "媒体服务器:请选择一个",
|
|
718
743
|
"Media servers’ watched marks": "媒体服务器的已看标记",
|
|
719
744
|
"Medium": "中",
|
|
720
745
|
"Meh": "一般",
|
|
@@ -762,6 +787,7 @@ I18N.add("zh-CN", {
|
|
|
762
787
|
"No TV guide yet (Settings › Content › IPTV › Guide link)": "暂无节目单(设置 › 内容 › IPTV › 节目单链接)",
|
|
763
788
|
"No TV guide yet (Settings › Content › IPTV › Guide link).": "暂无节目单(设置 › 内容 › IPTV › 节目单链接)。",
|
|
764
789
|
"No USB drive": "无 USB 驱动器",
|
|
790
|
+
"No USB drive found": "未找到 USB 驱动器",
|
|
765
791
|
"No USB drive plugged in.": "未插入 USB 驱动器。",
|
|
766
792
|
"No USB drive. Plug one into the TV.": "无 USB 驱动器。请将驱动器插入电视。",
|
|
767
793
|
"No address of “{name}” answered ({tried}).": "“{name}”的所有地址均无响应({tried})。",
|
|
@@ -770,6 +796,7 @@ I18N.add("zh-CN", {
|
|
|
770
796
|
"No answer from {link} ({why}).": "{link} 无响应({why})。",
|
|
771
797
|
"No answer from: {who} (try the search again)": "无响应:{who} (请重新搜索)",
|
|
772
798
|
"No answer from: {who} (try again).": "无响应:{who}(请重试)。",
|
|
799
|
+
"No backup on {drive}": "{drive} 上没有备份",
|
|
773
800
|
"No catalogs to browse. Add catalog addons in Settings.": "没有可浏览的目录。请在设置中添加目录插件。",
|
|
774
801
|
"No channel {n} here (1 to {max})": "没有频道 {n}(范围 1 到 {max})",
|
|
775
802
|
"No channels parsed (is the URL returning the .m3u file?)": "未解析到频道(该 URL 是否返回 .m3u 文件?)",
|
|
@@ -780,6 +807,7 @@ I18N.add("zh-CN", {
|
|
|
780
807
|
"No limits": "无限制",
|
|
781
808
|
"No line coming up": "没有即将出现的台词",
|
|
782
809
|
"No lines in this file": "此文件中没有内容",
|
|
810
|
+
"No media server answered (or all are added already)": "没有媒体服务器响应(或都已添加)",
|
|
783
811
|
"No meta addon for {type}": "没有适用于 {type} 的元数据插件",
|
|
784
812
|
"No new-episode alerts for {show}": "关闭 {show} 的新剧集提醒",
|
|
785
813
|
"No next episode": "没有下一集",
|
|
@@ -1038,6 +1066,7 @@ I18N.add("zh-CN", {
|
|
|
1038
1066
|
"Rating removed on Trakt": "已在 Trakt 上移除评分",
|
|
1039
1067
|
"Ratings on posters": "海报上显示评分",
|
|
1040
1068
|
"Read as Stalker channels says": "按 Stalker 频道的说明读取",
|
|
1069
|
+
"Read the file’s details": "读取文件详情",
|
|
1041
1070
|
"Read {n} group": "读取 {n} 个分组",
|
|
1042
1071
|
"Read {n} groups": "读取 {n} 个分组",
|
|
1043
1072
|
"Reading IPTV playlists… {n} channels": "正在读取 IPTV 播放列表… {n} 个频道",
|
|
@@ -1121,6 +1150,8 @@ I18N.add("zh-CN", {
|
|
|
1121
1150
|
"Saved Xtream film and series lists (in StremioK’s folder): {size} in {n} file": "已保存的 Xtream 电影和剧集列表(在 StremioK 文件夹中):{n} 个文件,共 {size}",
|
|
1122
1151
|
"Saved Xtream film and series lists (in StremioK’s folder): {size} in {n} files": "已保存的 Xtream 电影和剧集列表(在 StremioK 文件夹中):{n} 个文件,共 {size}",
|
|
1123
1152
|
"Saved copies cleared": "已清除已保存的副本",
|
|
1153
|
+
"Saved to {drive}: {file}. Wait a few seconds before you take the drive out.": "已保存到 {drive}:{file}。取出驱动器前请等待几秒钟。",
|
|
1154
|
+
"Saving to {drive}…": "正在保存到 {drive}…",
|
|
1124
1155
|
"Scan it to add this addon on another device. It carries the personal parts of its link (your tokens and settings): show it only to your own devices.": "扫码即可在其他设备上添加此插件。其中包含链接的个人信息(你的令牌和设置):只给你自己的设备扫描。",
|
|
1125
1156
|
"Scan it to change this addon’s settings on your phone. Then add the new link it gives you (Settings › Content › Addons): it replaces this one.": "扫码即可在手机上更改此插件的设置。然后添加它提供的新链接(设置 › 内容 › 插件):新链接将替换当前链接。",
|
|
1126
1157
|
"Scan it with your phone (on the same Wi-Fi as the TV), then type or paste it there. Only for the next 5 minutes, and once. It travels unencrypted over your home network: use it only on a network you trust.": "用手机扫码(需与电视连接同一 Wi-Fi),然后在手机上输入或粘贴。仅在接下来 5 分钟内有效,且只能使用一次。内容在你的家庭网络中未加密传输:请仅在你信任的网络中使用。",
|
|
@@ -1160,6 +1191,7 @@ I18N.add("zh-CN", {
|
|
|
1160
1191
|
"Select none": "全不选",
|
|
1161
1192
|
"Select source": "选择片源",
|
|
1162
1193
|
"Self-promotion": "自我推广",
|
|
1194
|
+
"Send the logs to your phone": "将日志发送到你的手机",
|
|
1163
1195
|
"Sep": "9月",
|
|
1164
1196
|
"Serbian": "塞尔维亚语",
|
|
1165
1197
|
"Series": "剧集",
|
|
@@ -1171,6 +1203,9 @@ I18N.add("zh-CN", {
|
|
|
1171
1203
|
"Shaka error {code}": "Shaka 错误 {code}",
|
|
1172
1204
|
"Share": "分享",
|
|
1173
1205
|
"Share “{name}”": "分享“{name}”",
|
|
1206
|
+
"Share: password": "共享:密码",
|
|
1207
|
+
"Share: the server": "共享:服务器",
|
|
1208
|
+
"Share: user name": "共享:用户名",
|
|
1174
1209
|
"Show": "显示",
|
|
1175
1210
|
"Show hidden files:": "显示隐藏文件:",
|
|
1176
1211
|
"Show installed apps": "显示已安装的应用",
|
|
@@ -1307,6 +1342,7 @@ I18N.add("zh-CN", {
|
|
|
1307
1342
|
"Subtitle position": "字幕位置",
|
|
1308
1343
|
"Subtitle size": "字幕大小",
|
|
1309
1344
|
"Subtitle timing: {delay}": "字幕时间:{delay}",
|
|
1345
|
+
"Subtitle tracks": "字幕轨道",
|
|
1310
1346
|
"Subtitles": "字幕",
|
|
1311
1347
|
"Subtitles: {what}": "字幕:{what}",
|
|
1312
1348
|
"Sun": "周日",
|
|
@@ -1386,6 +1422,7 @@ I18N.add("zh-CN", {
|
|
|
1386
1422
|
"The code expired: try again.": "代码已过期:请重试。",
|
|
1387
1423
|
"The code ran out: start again.": "代码已失效:请重新开始。",
|
|
1388
1424
|
"The debrid service": "debrid 服务",
|
|
1425
|
+
"The file's colors": "文件自带颜色",
|
|
1389
1426
|
"The last problem since StremioK started, with keys and passwords masked. After a crash, what came just before is here too. Nothing here leaves the TV.": "StremioK 启动以来的最近问题,已隐藏密钥和密码。如果发生崩溃,崩溃前的记录也在这里。这里的内容不会离开电视。",
|
|
1390
1427
|
"The last {n} problems since StremioK started, newest first, with keys and passwords masked. After a crash, what came just before is here too. Nothing here leaves the TV.": "StremioK 启动以来的最近 {n} 个问题,最新的在前,已隐藏密钥和密码。如果发生崩溃,崩溃前的记录也在这里。这里的内容不会离开电视。",
|
|
1391
1428
|
"The network folder with “{name}” was removed": "存有“{name}”的网络文件夹已被移除",
|
|
@@ -1396,6 +1433,8 @@ I18N.add("zh-CN", {
|
|
|
1396
1433
|
"The portal lists no groups": "门户未列出任何分组",
|
|
1397
1434
|
"The portal refused it: {why}": "门户拒绝了请求:{why}",
|
|
1398
1435
|
"The portal refused that MAC address{why}: nothing was saved": "门户拒绝了该 MAC 地址{why}:未保存任何内容",
|
|
1436
|
+
"The same file, in a StremioK folder on the drive (the last one replaced)": "同一文件,保存在驱动器的 StremioK 文件夹中(替换上一个)",
|
|
1437
|
+
"The same text file, in a StremioK folder on the drive": "同一文本文件,保存在驱动器的 StremioK 文件夹中",
|
|
1399
1438
|
"The server address your provider gave you (http://line.example.com:8080), or a whole Xtream link. RETURN cancels.": "服务商提供给你的服务器地址(http://line.example.com:8080),或完整的 Xtream 链接。按 RETURN 取消。",
|
|
1400
1439
|
"The server didn’t answer: {why}": "服务器无响应:{why}",
|
|
1401
1440
|
"The server refused that username and password{code}: nothing was saved": "服务器拒绝了该用户名和密码{code}:未保存任何内容",
|
|
@@ -1408,9 +1447,11 @@ I18N.add("zh-CN", {
|
|
|
1408
1447
|
"The user name it asks for; leave it empty if it asks for none. RETURN cancels.": "所需的用户名;如果不需要请留空。按 RETURN 取消。",
|
|
1409
1448
|
"Their names and IDs, as the TV reports them": "电视报告的名称和 ID",
|
|
1410
1449
|
"Then, in this order": "然后按以下顺序",
|
|
1450
|
+
"These logs and Startup, with StremioK’s version and the TV’s, as a text file to attach to a report": "这些日志和启动记录,附带 StremioK 和电视的版本,保存为文本文件,可附在问题报告中",
|
|
1411
1451
|
"Third-party service: its operator says it’s only for apps Stremio authorizes in writing, and StremioK isn’t one. Use it at your own discretion.": "第三方服务:其运营方表示仅供 Stremio 书面授权的应用使用,而 StremioK 并非其中之一。请自行斟酌使用。",
|
|
1412
1452
|
"This ClearKey channel didn’t play ({why})": "此 ClearKey 频道无法播放({why})",
|
|
1413
1453
|
"This ClearKey channel’s keys can’t be read (its playlist’s #KODIPROP lines)": "无法读取此 ClearKey 频道的密钥(其播放列表中的 #KODIPROP 行)",
|
|
1454
|
+
"This TV didn’t play this file: {what}": "这台电视未能播放此文件:{what}",
|
|
1414
1455
|
"This channel keeps dropping — try it again later": "此频道频繁中断,请稍后重试",
|
|
1415
1456
|
"This channel’s DRM can’t be played on the TV ({drm})": "此频道的 DRM 无法在电视上播放({drm})",
|
|
1416
1457
|
"This launch: {steps}": "本次启动:{steps}",
|
|
@@ -1486,6 +1527,7 @@ I18N.add("zh-CN", {
|
|
|
1486
1527
|
"USB drive index: {drive}": "USB 驱动器索引:{drive}",
|
|
1487
1528
|
"USB drive removed": "已移除 USB 驱动器",
|
|
1488
1529
|
"USB drives": "USB 驱动器",
|
|
1530
|
+
"USB drives only": "仅 USB 驱动器",
|
|
1489
1531
|
"USB index ({key})": "USB 索引({key})",
|
|
1490
1532
|
"USB index cleared": "已清除 USB 索引",
|
|
1491
1533
|
"Ukraine": "乌克兰",
|
|
@@ -1546,6 +1588,7 @@ I18N.add("zh-CN", {
|
|
|
1546
1588
|
"Watching comes first and Settings last: ⇈ ▲ ▼ ⇊ put the rest in your order · OK on a tab shows/hides it.": "在看排在最前,设置排在最后:用 ⇈ ▲ ▼ ⇊ 按你的顺序排列其他标签页 · 在标签页上按 OK 显示/隐藏。",
|
|
1547
1589
|
"Watchlist": "待看清单",
|
|
1548
1590
|
"Weak Sauce": "烂片",
|
|
1591
|
+
"WebDAV folder (http:// or https://)": "WebDAV 文件夹 (http:// 或 https://)",
|
|
1549
1592
|
"Wed": "周三",
|
|
1550
1593
|
"Welsh": "威尔士语",
|
|
1551
1594
|
"Western": "西部",
|
|
@@ -1561,6 +1604,7 @@ I18N.add("zh-CN", {
|
|
|
1561
1604
|
"Where to watch: country": "观看渠道:国家/地区",
|
|
1562
1605
|
"Where to watch: country:": "观看渠道:国家/地区:",
|
|
1563
1606
|
"Which Plex server?": "哪个 Plex 服务器?",
|
|
1607
|
+
"Which USB drive?": "哪个 USB 驱动器?",
|
|
1564
1608
|
"Which one is “{name}”?": "哪一个是“{name}”?",
|
|
1565
1609
|
"While it’s on, what you play isn’t recorded: no progress, Continue Watching, watched marks, Trakt or remembered choices. What you do by hand still counts. Addons and other services are contacted as usual. UP › ◐ Private switches it while something plays.": "开启期间,不记录你播放的内容:不记录进度、继续观看、已看标记、Trakt 或记住的选择。你手动执行的操作仍然有效。插件和其他服务照常联系。播放时可通过 上 › ◐ 隐私 切换。",
|
|
1566
1610
|
"White": "白色",
|
|
@@ -1568,6 +1612,7 @@ I18N.add("zh-CN", {
|
|
|
1568
1612
|
"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": "整个门户在每次重新加载和自动刷新时都可能需要很多分钟,IPTV 行要等首次读取完成,而且门户可能会对请求过多的 MAC 地址限速、断开或屏蔽",
|
|
1569
1613
|
"Whole series marked unwatched": "整部剧集已标记为未看",
|
|
1570
1614
|
"Whole series marked watched": "整部剧集已标记为已看",
|
|
1615
|
+
"Windows / NAS share (SMB)": "Windows / NAS 共享 (SMB)",
|
|
1571
1616
|
"With the subtitle that’s on ({name}), next to it.": "与当前字幕({name})同目录。",
|
|
1572
1617
|
"With the subtitle that’s on, next to it.": "与当前字幕同目录。",
|
|
1573
1618
|
"Words (or bits of them) separated by commas, capitals or not: lines with one aren’t shown. For example OPENSUBTITLES (ads) and .SRT (file names). Leave it empty for none.": "用逗号分隔的词(或词的一部分),不区分大小写:含有其中任一词的字幕行将不显示。例如 OPENSUBTITLES(广告)和 .SRT(文件名)。留空表示不使用。",
|
|
@@ -1626,6 +1671,8 @@ I18N.add("zh-CN", {
|
|
|
1626
1671
|
"Your addons, IPTV playlists, API keys and settings, as a file to import later": "你的插件、IPTV 播放列表、API 密钥和设置,导出为文件以便日后导入",
|
|
1627
1672
|
"Your addons, playlists, API keys and settings, to your phone": "你的插件、播放列表、API 密钥和设置,发送到你的手机",
|
|
1628
1673
|
"Your apps (Prime Video, Netflix, …) that open a title's \"where to watch\" sources": "用于打开影片“观看渠道”片源的应用(Prime Video、Netflix…)",
|
|
1674
|
+
"Your history and progress": "你的历史记录和进度",
|
|
1675
|
+
"Your history: where you stopped, watched marks, Continue Watching…": "你的历史记录:停止位置、已观看标记、继续观看…",
|
|
1629
1676
|
"Your network folder": "你的网络文件夹",
|
|
1630
1677
|
"Your phone can’t reach the TV just now (no home network, or StremioK’s service isn’t running).": "你的手机暂时无法连接电视(没有家庭网络,或 StremioK 服务未运行)。",
|
|
1631
1678
|
"Your phone can’t reach the TV just now (no home network, or StremioK’s service isn’t running): type it instead.": "你的手机暂时无法连接电视(没有家庭网络,或 StremioK 服务未运行):请直接输入。",
|
|
@@ -1665,6 +1712,7 @@ I18N.add("zh-CN", {
|
|
|
1665
1712
|
"changes waiting": "待同步的更改",
|
|
1666
1713
|
"check what’s using it": "请检查是什么在占用",
|
|
1667
1714
|
"closed captions": "隐藏式字幕",
|
|
1715
|
+
"commentary": "评论",
|
|
1668
1716
|
"connection": "连接",
|
|
1669
1717
|
"couldn’t be reached": "无法连接",
|
|
1670
1718
|
"couldn’t be read": "无法读取",
|
|
@@ -1680,6 +1728,7 @@ I18N.add("zh-CN", {
|
|
|
1680
1728
|
"first screen": "首屏",
|
|
1681
1729
|
"first title": "第一部影片",
|
|
1682
1730
|
"for {name}": "用于 {name}",
|
|
1731
|
+
"forced": "强制",
|
|
1683
1732
|
"from Trakt": "来自 Trakt",
|
|
1684
1733
|
"from earlier: the addon sent nothing just now": "之前的记录:插件刚才没有返回任何内容",
|
|
1685
1734
|
"from the lines around now": "从当前附近的台词中",
|
|
@@ -1705,6 +1754,7 @@ I18N.add("zh-CN", {
|
|
|
1705
1754
|
"new quality": "新画质",
|
|
1706
1755
|
"no StremioK service here": "此处没有 StremioK 服务",
|
|
1707
1756
|
"no TMDB key": "没有 TMDB 密钥",
|
|
1757
|
+
"no TMDB number for this title (a TMDB key is needed: Settings › Content › Integrations)": "此影片没有 TMDB 编号(需要 TMDB 密钥:设置 › 内容 › 集成)",
|
|
1708
1758
|
"no TV guide": "无节目单",
|
|
1709
1759
|
"no answer": "无响应",
|
|
1710
1760
|
"no answer (connection refused, blocked or certificate)": "无响应(连接被拒绝、被阻止或证书问题)",
|
|
@@ -1719,6 +1769,7 @@ I18N.add("zh-CN", {
|
|
|
1719
1769
|
"nothing StremioK uses": "没有 StremioK 使用的内容",
|
|
1720
1770
|
"nothing changed": "没有变化",
|
|
1721
1771
|
"off in AIOManager": "在 AIOManager 中已关闭",
|
|
1772
|
+
"off in its repository (often broken)": "在其仓库中已关闭(常常无法使用)",
|
|
1722
1773
|
"on": "开",
|
|
1723
1774
|
"on Trakt": "在 Trakt 上",
|
|
1724
1775
|
"on your USB drive": "在你的 USB 驱动器上",
|
|
@@ -1773,6 +1824,7 @@ I18N.add("zh-CN", {
|
|
|
1773
1824
|
"too large ({what})": "过大({what})",
|
|
1774
1825
|
"too large an answer": "响应过大",
|
|
1775
1826
|
"too large to save on the TV: downloaded each launch": "过大,无法保存在电视上:每次启动时下载",
|
|
1827
|
+
"too slow: left out after {n} s (Wait for addons)": "太慢:{n} 秒后被排除(等待插件)",
|
|
1776
1828
|
"torrent sources with more people sharing them first, by the count they state (👤 123, or Seeders: 123); the others keep their order": "按标注的人数(👤 123 或 Seeders: 123)将分享人数更多的种子片源排在前面;其他片源保持原顺序",
|
|
1777
1829
|
"track {n}": "音轨 {n}",
|
|
1778
1830
|
"trying the next source ({n} of {of})…": "正在尝试下一个片源(第 {n} 个,共 {of} 个)…",
|
|
@@ -1796,11 +1848,13 @@ I18N.add("zh-CN", {
|
|
|
1796
1848
|
"your USB drives": "你的 USB 驱动器",
|
|
1797
1849
|
"your account has no addons StremioK can use": "你的账号中没有 StremioK 可用的插件",
|
|
1798
1850
|
"your choice": "你的选择",
|
|
1851
|
+
"your history": "你的历史记录",
|
|
1799
1852
|
"your order of the addons (at the bottom of this page)": "你设置的插件顺序(在此页面底部)",
|
|
1800
1853
|
"your settings": "你的设置",
|
|
1801
1854
|
"{addon} didn’t answer this search (its search can be slow or busy). OK on the search field tries again.": "{addon} 未响应此次搜索(其搜索可能较慢或繁忙)。在搜索框上按 OK 可重试。",
|
|
1802
1855
|
"{answered} of {n} source answered": "{n} 个片源中有 {answered} 个已响应",
|
|
1803
1856
|
"{answered} of {n} sources answered": "{n} 个片源中有 {answered} 个已响应",
|
|
1857
|
+
"{codec}: pictures, not shown": "{codec}:图像字幕,不显示",
|
|
1804
1858
|
"{count} so far": "目前 {count}",
|
|
1805
1859
|
"{drive} is FAT32, which can’t hold a file over 4 GB": "{drive} 为 FAT32 格式,无法存放超过 4 GB 的文件",
|
|
1806
1860
|
"{ep} airs {when}": "{ep} 将于{when}播出",
|
|
@@ -1873,6 +1927,7 @@ I18N.add("zh-CN", {
|
|
|
1873
1927
|
"{n} video": "{n} 个视频",
|
|
1874
1928
|
"{n} videos": "{n} 个视频",
|
|
1875
1929
|
"{n} you had already": "{n} 个你已拥有",
|
|
1930
|
+
"{n}-bit": "{n} 位",
|
|
1876
1931
|
"{pct}% of {size}": "{pct}% / {size}",
|
|
1877
1932
|
"{quality} didn't start — retrying…": "{quality} 未能开始,正在重试…",
|
|
1878
1933
|
"{quality} didn't start — trying {lower}…": "{quality} 未能开始,正在尝试 {lower}…",
|
|
@@ -1927,6 +1982,9 @@ I18N.add("zh-CN", {
|
|
|
1927
1982
|
"↻ Refresh the {n} addon you have from AIOManager": "↻ 刷新来自 AIOManager 的 {n} 个插件",
|
|
1928
1983
|
"↻ Refresh the {n} addons you have from AIOManager": "↻ 刷新来自 AIOManager 的 {n} 个插件",
|
|
1929
1984
|
"⇧ Export to your phone": "⇧ 导出到你的手机",
|
|
1985
|
+
"⇧ Restore from a USB drive": "⇧ 从 USB 驱动器恢复",
|
|
1986
|
+
"⇧ Send to your phone": "⇧ 发送到你的手机",
|
|
1987
|
+
"⇩ Save to a USB drive": "⇩ 保存到 USB 驱动器",
|
|
1930
1988
|
"− Remove": "− 移除",
|
|
1931
1989
|
"≡ Chapters": "≡ 章节",
|
|
1932
1990
|
"ⓘ Cast & more": "ⓘ 演职人员及更多",
|
package/js/local.js
CHANGED
|
@@ -16,7 +16,12 @@ var LocalMedia = (function () {
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
18
|
var VIDEO_RE = /\.(mkv|mp4|m4v|avi|ts|m2ts|mts|mov|webm|wmv|mpe?g|flv|3gp|ogv|vob)$/i;
|
|
19
|
-
var SUB_RE = /\.(srt|vtt|ass|ssa)$/i;
|
|
19
|
+
var SUB_RE = /\.(srt|vtt|ass|ssa|smi|sub|txt)$/i;
|
|
20
|
+
// .sub and .txt: subtitles only when named like a video beside them (a readme.txt isn't one; a
|
|
21
|
+
// .sub may be a picture one, VobSub): never matched on their own.
|
|
22
|
+
var WEAK_SUB_RE = /\.(sub|txt)$/i;
|
|
23
|
+
// A folder of a video's subtitles beside it: Subs/, Subtitles/ (Subs/<video's name>/ too).
|
|
24
|
+
var SUBS_DIR_RE = /^(subs|subtitles)$/i;
|
|
20
25
|
// Hidden: names starting with "." (a Mac leaves ._… copies, .DS_Store, .Spotlight-V100,
|
|
21
26
|
// .fseventsd, .Trashes on a drive) and Windows' recycle bin and system folder.
|
|
22
27
|
var HIDDEN_RE = /^(\.|\$RECYCLE\.BIN$|System Volume Information$)/i;
|
|
@@ -46,6 +51,16 @@ var LocalMedia = (function () {
|
|
|
46
51
|
function nameOf(p) { return ('' + p).split('/').pop(); }
|
|
47
52
|
function dirOf(p) { var i = ('' + p).lastIndexOf('/'); return i === -1 ? '' : p.slice(0, i); }
|
|
48
53
|
function stem(n) { return ('' + n).replace(/\.[^.]+$/, ''); }
|
|
54
|
+
// A name's episode, as one key ("s1e2" for S01E02 or 1x02), or '' (none).
|
|
55
|
+
var EPISODE_RE = /s(\d{1,2})\s?e(\d{1,3})|\b(\d{1,2})x(\d{2,3})\b/i;
|
|
56
|
+
function episodeKey(n) { var m = EPISODE_RE.exec(n || ''); return m ? 's' + (+(m[1] || m[3])) + 'e' + (+(m[2] || m[4])) : ''; }
|
|
57
|
+
// A subtitle file's video folder: its own, or the one its Subs folder is in.
|
|
58
|
+
function subOwnerDir(rel) {
|
|
59
|
+
var d = dirOf(rel), up = dirOf(d);
|
|
60
|
+
if (SUBS_DIR_RE.test(nameOf(d))) { return up; }
|
|
61
|
+
if (SUBS_DIR_RE.test(nameOf(up))) { return dirOf(up); }
|
|
62
|
+
return d;
|
|
63
|
+
}
|
|
49
64
|
function humanSize(n) {
|
|
50
65
|
if (!n) { return ''; }
|
|
51
66
|
return n >= 1073741824 ? (n / 1073741824).toFixed(1) + ' GB' : n >= 1048576 ? Math.round(n / 1048576) + ' MB' : Math.max(1, Math.round(n / 1024)) + ' KB';
|
|
@@ -78,6 +93,7 @@ var LocalMedia = (function () {
|
|
|
78
93
|
}, function () { _tokenP = null; return ''; });
|
|
79
94
|
return _tokenP;
|
|
80
95
|
}
|
|
96
|
+
function serviceUrl(path) { return service() + path; } // (a link with its own ticket: no token)
|
|
81
97
|
function svcUrl(path, token) { return service() + path + (path.indexOf('?') === -1 ? '?' : '&') + 'token=' + (token || ''); }
|
|
82
98
|
// Where the token can't be read (Tizen 6: the service keeps it in a folder of its own), the
|
|
83
99
|
// service takes StremioK's X-StremioK header instead (a web page can't send one).
|
|
@@ -544,17 +560,17 @@ var LocalMedia = (function () {
|
|
|
544
560
|
function standaloneSubs(x) {
|
|
545
561
|
var vids = {};
|
|
546
562
|
(x.files || []).forEach(function (f) { var dd = dirOf(f.p); (vids[dd] = vids[dd] || []).push(stem(nameOf(f.p)).toLowerCase()); });
|
|
547
|
-
return (x.subs || []).filter(function (s) { return !isHidden(nameOf(s)) && !s.split('/').some(isHidden) && !isVideosSub(vids[
|
|
563
|
+
return (x.subs || []).filter(function (s) { return !WEAK_SUB_RE.test(s) && !isHidden(nameOf(s)) && !s.split('/').some(isHidden) && !isVideosSub(vids[subOwnerDir(s)], s); });
|
|
548
564
|
}
|
|
549
565
|
function isVideosSub(stems, rel) {
|
|
550
566
|
if (!stems || !stems.length) { return false; }
|
|
551
|
-
if (stems.length === 1) { return true; } // (the folder's only video: its subtitles, whatever their names)
|
|
552
|
-
var st = stem(nameOf(rel)).toLowerCase();
|
|
553
|
-
return stems.some(function (v) { return st.indexOf(v) === 0; });
|
|
567
|
+
if (stems.length === 1 || subOwnerDir(rel) !== dirOf(rel)) { return true; } // (the folder's only video, or in its Subs folder: its subtitles, whatever their names)
|
|
568
|
+
var st = stem(nameOf(rel)).toLowerCase(), ep = episodeKey(st);
|
|
569
|
+
return stems.some(function (v) { return st.indexOf(v) === 0 || (ep && episodeKey(v) === ep); });
|
|
554
570
|
}
|
|
555
571
|
// In a folder's listing (the Local tab): a subtitle file of its own, to match by hand.
|
|
556
572
|
function isStandaloneSub(entries, x) {
|
|
557
|
-
if (!x || x.dir || !isSub(x.name)) { return false; }
|
|
573
|
+
if (!x || x.dir || !isSub(x.name) || WEAK_SUB_RE.test(x.name)) { return false; }
|
|
558
574
|
var stems = (entries || []).filter(function (y) { return !y.dir && isVideo(y.name); }).map(function (y) { return stem(y.name).toLowerCase(); });
|
|
559
575
|
return !isVideosSub(stems, x.rel || x.name);
|
|
560
576
|
}
|
|
@@ -574,10 +590,11 @@ var LocalMedia = (function () {
|
|
|
574
590
|
var d = queue.shift();
|
|
575
591
|
seen++;
|
|
576
592
|
return list(drive, d.rel).then(function (r) {
|
|
593
|
+
var vids = r.entries.filter(function (x) { return !x.dir && isVideo(x.name); }).map(function (x) { return stem(x.name).toLowerCase(); });
|
|
577
594
|
r.entries.forEach(function (x) {
|
|
578
595
|
if (isHidden(x.name)) { return; }
|
|
579
596
|
if (x.dir) { if (d.depth < CLIENT_WALK_DEPTH) { queue.push({ rel: x.rel, depth: d.depth + 1 }); } }
|
|
580
|
-
else if (isVideo(x.name) || isSub(x.name)) { out.push({ p: x.rel, size: x.size }); }
|
|
597
|
+
else if (isVideo(x.name) || (isSub(x.name) && (!WEAK_SUB_RE.test(x.name) || vids.some(function (v) { return x.name.toLowerCase().indexOf(v) === 0; })))) { out.push({ p: x.rel, size: x.size }); } // (a .sub / .txt: named like a video beside it)
|
|
581
598
|
});
|
|
582
599
|
}, function () {}).then(next);
|
|
583
600
|
}
|
|
@@ -739,17 +756,30 @@ var LocalMedia = (function () {
|
|
|
739
756
|
});
|
|
740
757
|
return { lang: lang, forced: forced };
|
|
741
758
|
}
|
|
742
|
-
// A video's subtitle files: in its folder
|
|
743
|
-
// Film.forced.eng.srt),
|
|
759
|
+
// A video's subtitle files: in its folder or a Subs / Subtitles folder beside it (or its
|
|
760
|
+
// Subs/<video's name>/), named like it (Film.srt, Film.en.srt, Film.forced.eng.srt), with its
|
|
761
|
+
// episode number (Show 1x02.srt for Show.S01E02.mkv), or any there when it's the folder's only
|
|
762
|
+
// video (or in its own Subs/<name>/ folder). .sub and .txt only when named like it.
|
|
744
763
|
function sidecars(drive, rel, subRels, alone) {
|
|
745
|
-
var dir = dirOf(rel), base = stem(nameOf(rel)).toLowerCase();
|
|
764
|
+
var dir = dirOf(rel), base = stem(nameOf(rel)).toLowerCase(), ep = episodeKey(base);
|
|
765
|
+
function where(s) {
|
|
766
|
+
var d = dirOf(s);
|
|
767
|
+
if (d === dir) { return 'here'; }
|
|
768
|
+
if (dirOf(d) === dir && SUBS_DIR_RE.test(nameOf(d))) { return 'subs'; }
|
|
769
|
+
if (dirOf(dirOf(d)) === dir && SUBS_DIR_RE.test(nameOf(dirOf(d))) && nameOf(d).toLowerCase() === base) { return 'own'; }
|
|
770
|
+
return '';
|
|
771
|
+
}
|
|
746
772
|
return subRels.filter(function (s) {
|
|
747
|
-
|
|
748
|
-
|
|
773
|
+
var w = where(s), st = stem(nameOf(s)).toLowerCase();
|
|
774
|
+
if (!w || isHidden(nameOf(s))) { return false; }
|
|
775
|
+
if (st.indexOf(base) === 0) { return true; }
|
|
776
|
+
if (WEAK_SUB_RE.test(s)) { return false; }
|
|
777
|
+
return alone || w === 'own' || (!!ep && episodeKey(st) === ep);
|
|
749
778
|
}).map(function (s) {
|
|
750
|
-
var st = stem(nameOf(s)),
|
|
751
|
-
var
|
|
752
|
-
|
|
779
|
+
var st = stem(nameOf(s)), low = st.toLowerCase(), m = EPISODE_RE.exec(st);
|
|
780
|
+
var rest = low.indexOf(base) === 0 ? st.slice(base.length) : (ep && m && episodeKey(st) === ep) ? st.slice(m.index + m[0].length) : st;
|
|
781
|
+
var l = langFrom(rest), inSubs = where(s) !== 'here';
|
|
782
|
+
return subTrack(drive, s, l.lang, inSubs ? U.t('In its Subs folder') : l.forced ? U.t('Next to the file (forced)') : U.t('Next to the file'));
|
|
753
783
|
});
|
|
754
784
|
}
|
|
755
785
|
function subTrack(drive, s, lang, label) {
|
|
@@ -801,13 +831,16 @@ var LocalMedia = (function () {
|
|
|
801
831
|
var BIG = 2147483647;
|
|
802
832
|
// A network folder's file: its link with the folder's sign-in (NetFolders.playUrl).
|
|
803
833
|
function openUrl(url, size) {
|
|
804
|
-
if (typeof NetFolders !== 'undefined' && /^https
|
|
834
|
+
if (typeof NetFolders !== 'undefined' && /^(https?|smb|dlna):/i.test(url || '')) { var nu = NetFolders.playUrl(url); if (nu) { return nu; } }
|
|
805
835
|
if (!/^file:\/\/\/opt\/media\//i.test(url || '')) { return url; }
|
|
806
836
|
var abs = realPath(url);
|
|
807
837
|
if (!size) { var hit = _recent.get(url); size = hit && hit._localFile ? hit._localFile.size : 0; }
|
|
808
838
|
if (!(size > BIG) || !_token || !service()) { return url; }
|
|
809
839
|
return svcUrl('/fsfile?path=' + encodeURIComponent(abs), _token);
|
|
810
840
|
}
|
|
841
|
+
// What must be asked for before a file plays (a network folder's ticket: NetFolders.prepare),
|
|
842
|
+
// or null (nothing: it plays at once).
|
|
843
|
+
function prepare(url) { return typeof NetFolders !== 'undefined' && NetFolders.prepare && /^(https?|smb|dlna):/i.test(url || '') ? NetFolders.prepare(url) : null; }
|
|
811
844
|
function isFolderUrl(url) { return typeof NetFolders !== 'undefined' && !!NetFolders.folderOfUrl(url); }
|
|
812
845
|
function isLocalStream(s) { return !!(s && s._local === MARK && typeof s.url === 'string' && (/^file:\/\/\/opt\/media\//i.test(s.url) || isFolderUrl(s.url))); }
|
|
813
846
|
// The files on your drives for a movie (tt…) or an episode (tt…:1:2), as sources.
|
|
@@ -874,6 +907,17 @@ var LocalMedia = (function () {
|
|
|
874
907
|
});
|
|
875
908
|
}
|
|
876
909
|
|
|
910
|
+
// What's in a file on a drive or in a network folder, from its header (the service's /fsmi,
|
|
911
|
+
// /dav/mi: see its mediaInfo).
|
|
912
|
+
function fileInfo(localFile, cancel) {
|
|
913
|
+
if (!localFile || !localFile.abs) { return Promise.reject(new Error('not a file')); }
|
|
914
|
+
if (localFile.dav) {
|
|
915
|
+
var nf = typeof NetFolders !== 'undefined' ? NetFolders.get(localFile.dav) : null;
|
|
916
|
+
return nf ? NetFolders.mediaInfo(nf, localFile.rel, cancel) : Promise.reject(new Error('no such folder'));
|
|
917
|
+
}
|
|
918
|
+
return askService('/fsmi?path=' + encodeURIComponent(localFile.abs), 25000, 262144, cancel);
|
|
919
|
+
}
|
|
920
|
+
|
|
877
921
|
// ---------- playing ----------
|
|
878
922
|
// From the Local tab: a matched file through its title's page (next episode, sources,
|
|
879
923
|
// addon subtitles…), straight into playback; any other as a plain file.
|
|
@@ -881,7 +925,8 @@ var LocalMedia = (function () {
|
|
|
881
925
|
var file = { p: entry.rel, size: entry.size || 0 };
|
|
882
926
|
var dir = dirOf(entry.rel), subNames = (siblings || []).filter(function (e) { return !e.dir && isSub(e.name); }).map(function (e) { return e.rel; });
|
|
883
927
|
var alone = (siblings || []).filter(function (e) { return !e.dir && isVideo(e.name); }).length <= 1;
|
|
884
|
-
var
|
|
928
|
+
var known = ((_index[drive.root] || {}).subs || []).filter(function (s) { return subOwnerDir(s) === dir && (!subNames.length || dirOf(s) !== dir); }); // (the folder's own from its listing; its Subs folder's from the drive's index)
|
|
929
|
+
var subs = sidecars(drive, entry.rel, subNames.concat(known), alone);
|
|
885
930
|
var st = makeStream(drive, file, subs, entry.uri);
|
|
886
931
|
var m = matchOf(entry.rel, entry.size);
|
|
887
932
|
if (m) {
|
|
@@ -949,7 +994,7 @@ var LocalMedia = (function () {
|
|
|
949
994
|
available: available, ready: ready, watch: watch, present: present, ensure: ensure, forgetDrive: forgetDrive, isNet: isNet, isFolderUrl: isFolderUrl, isRead: isRead, onChange: onChange, drives: drives, knownDrives: knownDrives, hasDrive: hasDrive, refreshDrives: refreshDrives,
|
|
950
995
|
serviceToken: function () { return readToken(); }, askService: askService, addDownloaded: addDownloaded, openUrl: openUrl, list: list, isVideo: isVideo, isSub: isSub, isHidden: isHidden, showHidden: showHidden, setShowHidden: setShowHidden, humanSize: humanSize,
|
|
951
996
|
parseName: parseName, choose: choose, matchOf: matchOf, lookup: lookup, matchFolder: matchFolder, parsedOf: parsedOf, setMatch: setMatch, forgetMatches: forgetMatches, searchTitles: searchTitles,
|
|
952
|
-
scan: scan, stopScan: stopScan, continueMatching: continueMatching, status: status, clearIndex: clearIndex, streamsFor: streamsFor, subsForTitle: subsForTitle, isStandaloneSub: isStandaloneSub, streamForUrl: streamForUrl, isLocalStream: isLocalStream, subtitleExtra: subtitleExtra,
|
|
997
|
+
scan: scan, stopScan: stopScan, continueMatching: continueMatching, status: status, clearIndex: clearIndex, streamsFor: streamsFor, subsForTitle: subsForTitle, isStandaloneSub: isStandaloneSub, __sidecars: sidecars, __standaloneSubs: standaloneSubs, streamForUrl: streamForUrl, isLocalStream: isLocalStream, subtitleExtra: subtitleExtra, fileInfo: fileInfo, prepare: prepare, serviceUrl: serviceUrl,
|
|
953
998
|
play: play, playPlain: playPlain, resumePlain: resumePlain, plainId: plainId, parsePlainId: parsePlainId,
|
|
954
999
|
matchingAllowed: matchingAllowed, matchingAsked: matchingAsked, setMatching: setMatching, wouldMatch: wouldMatch, isPlainId: function (id) { return /^local:/.test('' + id); }
|
|
955
1000
|
};
|