mod: 隐藏番剧、直播搜索
This commit is contained in:
@ -3,13 +3,13 @@ enum SearchType {
|
||||
// 视频:video
|
||||
video,
|
||||
// 番剧:media_bangumi,
|
||||
media_bangumi,
|
||||
// media_bangumi,
|
||||
// 影视:media_ft
|
||||
// media_ft,
|
||||
// 直播间及主播:live
|
||||
// live,
|
||||
// 直播间:live_room
|
||||
live_room,
|
||||
// live_room,
|
||||
// 主播:live_user
|
||||
// live_user,
|
||||
// 专栏:article
|
||||
@ -23,9 +23,16 @@ enum SearchType {
|
||||
}
|
||||
|
||||
extension SearchTypeExtension on SearchType {
|
||||
String get type =>
|
||||
['video', 'media_bangumi', 'live_room', 'bili_user'][index];
|
||||
String get label => ['视频', '番剧', '直播间', '用户'][index];
|
||||
String get type => [
|
||||
'video',
|
||||
// 'media_bangumi', 'live_room',
|
||||
'bili_user'
|
||||
][index];
|
||||
String get label => [
|
||||
'视频',
|
||||
// '番剧', '直播间',
|
||||
'用户'
|
||||
][index];
|
||||
}
|
||||
|
||||
// 搜索类型为视频、专栏及相簿时
|
||||
@ -33,14 +40,17 @@ enum ArchiveFilterType {
|
||||
totalrank,
|
||||
click,
|
||||
pubdate,
|
||||
dm,
|
||||
stow,
|
||||
scores,
|
||||
// dm,
|
||||
// stow,
|
||||
// scores,
|
||||
// 专栏
|
||||
// attention,
|
||||
}
|
||||
|
||||
extension ArchiveFilterTypeExtension on ArchiveFilterType {
|
||||
String get description =>
|
||||
['默认排序', '播放多', '新发布', '弹幕多', '收藏多', '评论多', '最多喜欢'][index];
|
||||
String get description => [
|
||||
'默认排序', '播放多', '新发布',
|
||||
// '弹幕多', '收藏多', '评论多',
|
||||
'最多喜欢'
|
||||
][index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user