基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix(video): rename source playlist labels to playback lines
Predidit3afbd1ba66c8
diff --git a/lib/pages/plugin_editor/plugin_test_page.dart b/lib/pages/plugin_editor/plugin_test_page.dartindex 6ca227f1..831a2c61 100644--- a/lib/pages/plugin_editor/plugin_test_page.dart+++ b/lib/pages/plugin_editor/plugin_test_page.dart@@ -451,7 +451,7 @@ class _PluginTestPageState extends State<PluginTestPage> {if (!_hasSearchData) return '无有效搜索结果';if (!_needChapterParse) return '无需解析章节';if (chapters == null) return '未获取章节数据';- return '获取到 ${chapters?.length ?? 0} 个播放列表';+ return '获取到 ${chapters?.length ?? 0} 个播放线路';}Widget _buildChapterContent(ThemeData theme) {@@ -482,7 +482,7 @@ class _PluginTestPageState extends State<PluginTestPage> {mainAxisSize: MainAxisSize.min,children: [Text(- '播放列表 ${i + 1}:${road.name}',+ '播放线路 ${i + 1}:${road.name}',style: theme.textTheme.titleMedium?.copyWith(fontWeight: FontWeight.w500),),diff --git a/lib/pages/video/video_controller.dart b/lib/pages/video/video_controller.dartindex d653979f..ffe54f33 100644--- a/lib/pages/video/video_controller.dart+++ b/lib/pages/video/video_controller.dart@@ -210,7 +210,7 @@ abstract class _VideoPageController with Store {roadList.clear();episodes.sort((a, b) => a.episodeNumber.compareTo(b.episodeNumber));roadList.add(Road(- name: '播放列表1',+ name: '播放线路1',data: episodes.map((e) => e.episodeNumber.toString()).toList(),identifier: episodes.map((e) =>diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dartindex b67a0266..da6d1a11 100644--- a/lib/pages/video/video_page.dart+++ b/lib/pages/video/video_page.dart@@ -930,7 +930,7 @@ class _VideoPageState extends State<VideoPage>}},child: Text(- '播放列表${visibleRoad + 1} ',+ '播放线路${visibleRoad + 1} ',style: const TextStyle(fontSize: 13),),),@@ -950,7 +950,7 @@ class _VideoPageState extends State<VideoPage>child: Align(alignment: Alignment.centerLeft,child: Text(- '播放列表${i + 1}',+ '播放线路${i + 1}',style: TextStyle(color: i == visibleRoad? Theme.of(context).colorScheme.primary@@ -1027,82 +1027,81 @@ class _VideoPageState extends State<VideoPage>return Observer(builder: (context) {var cardList = <Widget>[];- for (var road in videoPageController.roadList) {- if (road.name == '播放列表${visibleRoad + 1}') {- int count = 1;- for (var urlItem in road.data) {- int count0 = count;- cardList.add(Container(- margin: const EdgeInsets.only(bottom: 4),- child: Material(- color: Theme.of(context).colorScheme.onInverseSurface,- borderRadius: BorderRadius.circular(6),- clipBehavior: Clip.hardEdge,- child: InkWell(- onTap: () async {- if (count0 ==- videoPageController.selectedEpisode.episode &&- videoPageController.selectedEpisode.road ==- visibleRoad) {- return;- }- KazumiLogger()- .i('VideoPageController: video URL is $urlItem');- _closeTabBodyAnimated();- changeEpisode(count0, currentRoad: visibleRoad);- },- child: Padding(- padding: const EdgeInsets.symmetric(- vertical: 8, horizontal: 10),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: <Widget>[- Row(- children: [- if (count0 ==- (videoPageController- .selectedEpisode.episode) &&- visibleRoad ==- videoPageController- .selectedEpisode.road) ...<Widget>[- Image.asset(- 'assets/images/playing.gif',- color: Theme.of(context).colorScheme.primary,- height: 12,- ),- const SizedBox(width: 6)- ],- Expanded(- child: Text(- road.identifier[count0 - 1],- maxLines: 2,- overflow: TextOverflow.ellipsis,- style: TextStyle(- fontSize: 13,- color: (count0 ==- videoPageController- .selectedEpisode.episode &&- visibleRoad ==- videoPageController- .selectedEpisode.road)- ? Theme.of(context).colorScheme.primary- : Theme.of(context)- .colorScheme- .onSurface),- )),- _buildDownloadStatusIcon(count0, urlItem),- const SizedBox(width: 2),+ if (visibleRoad >= 0 &&+ visibleRoad < videoPageController.roadList.length) {+ final road = videoPageController.roadList[visibleRoad];+ int count = 1;+ for (var urlItem in road.data) {+ int count0 = count;+ cardList.add(Container(+ margin: const EdgeInsets.only(bottom: 4),+ child: Material(+ color: Theme.of(context).colorScheme.onInverseSurface,+ borderRadius: BorderRadius.circular(6),+ clipBehavior: Clip.hardEdge,+ child: InkWell(+ onTap: () async {+ if (count0 == videoPageController.selectedEpisode.episode &&+ videoPageController.selectedEpisode.road ==+ visibleRoad) {+ return;+ }+ KazumiLogger()+ .i('VideoPageController: video URL is $urlItem');+ _closeTabBodyAnimated();+ changeEpisode(count0, currentRoad: visibleRoad);+ },+ child: Padding(+ padding:+ const EdgeInsets.symmetric(vertical: 8, horizontal: 10),+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: <Widget>[+ Row(+ children: [+ if (count0 ==+ (videoPageController+ .selectedEpisode.episode) &&+ visibleRoad ==+ videoPageController+ .selectedEpisode.road) ...<Widget>[+ Image.asset(+ 'assets/images/playing.gif',+ color: Theme.of(context).colorScheme.primary,+ height: 12,+ ),+ const SizedBox(width: 6)],- ),- const SizedBox(height: 3),- ],- ),+ Expanded(+ child: Text(+ road.identifier[count0 - 1],+ maxLines: 2,+ overflow: TextOverflow.ellipsis,+ style: TextStyle(+ fontSize: 13,+ color: (count0 ==+ videoPageController+ .selectedEpisode.episode &&+ visibleRoad ==+ videoPageController+ .selectedEpisode.road)+ ? Theme.of(context).colorScheme.primary+ : Theme.of(context)+ .colorScheme+ .onSurface),+ )),+ _buildDownloadStatusIcon(count0, urlItem),+ const SizedBox(width: 2),+ ],+ ),+ const SizedBox(height: 3),+ ],),),),- ));- count++;- }+ ),+ ));+ count++;}}return Expanded(diff --git a/lib/plugins/plugins.dart b/lib/plugins/plugins.dartindex 72734e64..deefee27 100644--- a/lib/plugins/plugins.dart+++ b/lib/plugins/plugins.dart@@ -279,7 +279,7 @@ class Plugin {});if (chapterUrlList.isNotEmpty && chapterNameList.isNotEmpty) {Road road = Road(- name: '播放列表$count',+ name: '播放线路$count',data: chapterUrlList,identifier: chapterNameList);roadList.add(road);