Skip to content

Commit 16e6ef5

Browse files
committed
取消字幕文件下载到临时目录供播放器读取
1 parent 6790ffd commit 16e6ef5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGELOG.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。
44

5+
# 1.4.6
6+
7+
- 取消字幕文件下载到临时目录供播放器读取
8+
59
# 1.4.5
610

711
- 字幕文件下载到临时目录供播放器读取

lib/subject/episode.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,7 @@ class _SubjectEpisodesState extends State<SubjectEpisodesPage> {
191191
subUrl = _apiBaseUrl + element.url;
192192
} else {
193193
// 诸如网盘文件提取码这种情况
194-
var downloadUrl = await AttachmentApi().findDownUrlByAttachmentId(element.attachmentId);
195-
final localAssPath = await SubtitleDownloader.downloadAssToTempDirectory(downloadUrl);
196-
197-
// 2. 生成可读取的file:// URL
198-
subUrl = SubtitleDownloader.generateFileUrl(localAssPath);
194+
subUrl = _apiBaseUrl + element.url;
199195
}
200196
subtitleUrls.add(subUrl);
201197
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: ikaros
22
description: ikaros app by flutter
3-
version: 1.4.5
3+
version: 1.4.6
44

55
environment:
66
sdk: '>=2.18.4 <=3.10.5'

0 commit comments

Comments
 (0)