mod: 弹幕过滤规则与黑名单从Setting移至LocalCache

This commit is contained in:
orz12
2024-07-07 15:01:08 +08:00
parent e021e2bfef
commit 76cd85b9eb
7 changed files with 25 additions and 59 deletions

View File

@@ -46,8 +46,8 @@ class VideoHttp {
);
if (res.data['code'] == 0) {
List<RecVideoItemModel> list = [];
List<int> blackMidsList = setting
.get(SettingBoxKey.blackMidsList, defaultValue: [-1])
List<int> blackMidsList = localCache
.get(LocalCacheKey.blackMidsList, defaultValue: [-1])
.map<int>((e) => e as int)
.toList();
for (var i in res.data['data']['item']) {
@@ -94,8 +94,8 @@ class VideoHttp {
);
if (res.data['code'] == 0) {
List<RecVideoItemAppModel> list = [];
List<int> blackMidsList = setting
.get(SettingBoxKey.blackMidsList, defaultValue: [-1])
List<int> blackMidsList = localCache
.get(LocalCacheKey.blackMidsList, defaultValue: [-1])
.map<int>((e) => e as int)
.toList();
for (var i in res.data['data']['items']) {
@@ -128,8 +128,8 @@ class VideoHttp {
);
if (res.data['code'] == 0) {
List<HotVideoItemModel> list = [];
List<int> blackMidsList = setting
.get(SettingBoxKey.blackMidsList, defaultValue: [-1])
List<int> blackMidsList = localCache
.get(LocalCacheKey.blackMidsList, defaultValue: [-1])
.map<int>((e) => e as int)
.toList();
for (var i in res.data['data']['list']) {
@@ -711,8 +711,8 @@ class VideoHttp {
var res = await Request().get(rankApi);
if (res.data['code'] == 0) {
List<HotVideoItemModel> list = [];
List<int> blackMidsList = setting
.get(SettingBoxKey.blackMidsList, defaultValue: [-1])
List<int> blackMidsList = localCache
.get(LocalCacheKey.blackMidsList, defaultValue: [-1])
.map<int>((e) => e as int)
.toList();
for (var i in res.data['data']['list']) {