mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 04:58:41 +00:00
@@ -4,6 +4,7 @@ import 'package:PiliPlus/models/common/video/audio_quality.dart';
|
||||
import 'package:PiliPlus/models/common/video/video_quality.dart';
|
||||
import 'package:PiliPlus/models_new/sponsor_block/segment_item.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
|
||||
class PlayUrlModel {
|
||||
PlayUrlModel({
|
||||
@@ -87,11 +88,15 @@ class PlayUrlModel {
|
||||
// "clipType": "CLIP_TYPE_ED",
|
||||
// },
|
||||
// ];
|
||||
final List? clipInfoList = json['clip_info_list'];
|
||||
if (clipInfoList != null && clipInfoList.isNotEmpty) {
|
||||
this.clipInfoList = clipInfoList
|
||||
.map((e) => SegmentItemModel.fromPgcJson(e, timeLength))
|
||||
.toList();
|
||||
try {
|
||||
final List? clipInfoList = json['clip_info_list'];
|
||||
if (clipInfoList != null && clipInfoList.isNotEmpty) {
|
||||
this.clipInfoList = clipInfoList
|
||||
.map((e) => SegmentItemModel.fromPgcJson(e, timeLength))
|
||||
.toList();
|
||||
}
|
||||
} catch (_) {
|
||||
if (kDebugMode) rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user