mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-06 17:19:21 +08:00
* opt: danmaku weight
* opt: cache clean
* opt: level img
* opt: play icon
* opt: svg big-vip
* opt: webview ua
* opt: simple dialog
* feat: export vtt
* tweak
* opt: mapIndexed
* feat: more subtitle
* refa: settings page
* feat: codec list options
* drawPath
Signed-off-by: dom <githubaccount56556@proton.me>
* custom dialog option
Signed-off-by: dom <githubaccount56556@proton.me>
* update
Signed-off-by: dom <githubaccount56556@proton.me>
* Revert "drawPath"
This reverts commit e8a4b19f0f.
* opt: _initStreamIndex
* fix: avoid gap
* fix: scale [skip ci]
* fix: hide repost menu not login
* tweaks
Signed-off-by: dom <githubaccount56556@proton.me>
---------
Co-authored-by: dom <githubaccount56556@proton.me>
20 lines
548 B
Dart
20 lines
548 B
Dart
import 'package:PiliPlus/models_new/video/video_play_info/subtitle.dart';
|
|
|
|
class SubtitleInfo {
|
|
String? lan;
|
|
String? lanDoc;
|
|
List<Subtitle>? subtitles;
|
|
|
|
SubtitleInfo({this.lan, this.lanDoc, this.subtitles});
|
|
|
|
factory SubtitleInfo.fromJson(Map<String, dynamic> json) => SubtitleInfo(
|
|
lan: json['lan'] as String?,
|
|
lanDoc: json['lan_doc'] as String?,
|
|
subtitles:
|
|
(json['subtitles'] as List<dynamic>?)
|
|
?.map((e) => Subtitle.fromJson(e as Map<String, dynamic>))
|
|
.toList()
|
|
?..sort(),
|
|
);
|
|
}
|