mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
chore: clean up
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -62,7 +62,4 @@ class FavDetailItemData extends BaseVideoItemModel with MultiSelectData {
|
||||
|
||||
static final _digitRegExp = RegExp(r'\d+');
|
||||
String resolveEpId(String url) => _digitRegExp.firstMatch(url)!.group(0)!;
|
||||
|
||||
// @override
|
||||
// bool isFollowed;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,6 @@ extension VideoQualityDesc on VideoQuality {
|
||||
String get description => _descList[index];
|
||||
}
|
||||
|
||||
///
|
||||
enum AudioQuality { k64, k132, k192, dolby, hiRes }
|
||||
|
||||
extension AudioQualityCode on AudioQuality {
|
||||
|
||||
@@ -16,7 +16,6 @@ class PlayUrlModel {
|
||||
this.seekType,
|
||||
this.dash,
|
||||
this.supportFormats,
|
||||
// this.highFormat,
|
||||
this.lastPlayTime,
|
||||
this.lastPlayCid,
|
||||
});
|
||||
@@ -36,7 +35,6 @@ class PlayUrlModel {
|
||||
Dash? dash;
|
||||
List<Durl>? durl;
|
||||
List<FormatItem>? supportFormats;
|
||||
// String? highFormat;
|
||||
int? lastPlayTime;
|
||||
int? lastPlayCid;
|
||||
|
||||
@@ -175,8 +173,9 @@ class VideoItem {
|
||||
baseUrl = json['baseUrl'];
|
||||
var backupUrls = json['backupUrl']?.toList() ?? [];
|
||||
backupUrl = backupUrls.isNotEmpty
|
||||
? backupUrls.firstWhere((i) => !_isMCDNorPCDN(i), orElse: () => backupUrls.first)
|
||||
: '';
|
||||
? backupUrls.firstWhere((i) => !_isMCDNorPCDN(i),
|
||||
orElse: () => backupUrls.first)
|
||||
: '';
|
||||
bandWidth = json['bandWidth'];
|
||||
mimeType = json['mime_type'];
|
||||
codecs = json['codecs'];
|
||||
@@ -248,8 +247,9 @@ class AudioItem {
|
||||
baseUrl = json['baseUrl'];
|
||||
var backupUrls = json['backupUrl']?.toList() ?? [];
|
||||
backupUrl = backupUrls.isNotEmpty
|
||||
? backupUrls.firstWhere((i) => !_isMCDNorPCDN(i), orElse: () => backupUrls.first)
|
||||
: '';
|
||||
? backupUrls.firstWhere((i) => !_isMCDNorPCDN(i),
|
||||
orElse: () => backupUrls.first)
|
||||
: '';
|
||||
bandWidth = json['bandWidth'];
|
||||
mimeType = json['mime_type'];
|
||||
codecs = json['codecs'];
|
||||
|
||||
Reference in New Issue
Block a user