mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-17 07:36:14 +08:00
fix: resolve bvid
**fix can not view charged video from rcmd
This commit is contained in:
@@ -56,9 +56,10 @@ class RecVideoItemAppModel {
|
|||||||
? json['player_args']['aid']
|
? json['player_args']['aid']
|
||||||
: int.parse(json['param'] ?? '-1');
|
: int.parse(json['param'] ?? '-1');
|
||||||
aid = json['player_args'] != null ? json['player_args']['aid'] : -1;
|
aid = json['player_args'] != null ? json['player_args']['aid'] : -1;
|
||||||
bvid = json['player_args'] != null
|
bvid = json['bvid'] ??
|
||||||
|
(json['player_args'] != null
|
||||||
? IdUtils.av2bv(json['player_args']['aid'])
|
? IdUtils.av2bv(json['player_args']['aid'])
|
||||||
: '';
|
: '');
|
||||||
cid = json['player_args'] != null ? json['player_args']['cid'] : -1;
|
cid = json['player_args'] != null ? json['player_args']['cid'] : -1;
|
||||||
pic = json['cover'];
|
pic = json['cover'];
|
||||||
stat = RcmdStat.fromJson(json);
|
stat = RcmdStat.fromJson(json);
|
||||||
|
|||||||
Reference in New Issue
Block a user