Skip to content

Commit

Permalink
Fixed user season archive
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ committed Dec 22, 2024
1 parent 617f263 commit 65b626f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MeowBili/PersonalCenter/UserDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ struct UserDetailView: View {
let vlist = respJson["data"]["list"]["vlist"]
for video in vlist {
var data = ["Title": video.1["title"].string ?? "[加载失败]", "Length": video.1["length"].string ?? "E", "PlayCount": String(video.1["play"].int ?? -1), "PicUrl": video.1["pic"].string ?? "E", "BV": video.1["bvid"].string ?? "E", "Timestamp": String(video.1["created"].int ?? 0), "DanmakuCount": String(video.1["video_review"].int ?? -1)]
if video.1["meta"].dictionary != nil {
if video.1["meta"].dictionary != nil && video.1["meta"]["sign_state"].int != 0 {
let season = video.1["meta"]
data.updateValue(season["title"].string ?? "[加载失败]", forKey: "Title")
data.updateValue(season["cover"].string ?? "E", forKey: "PicUrl")
Expand Down
1 change: 1 addition & 0 deletions MeowBili/Video/SeasonArchiveListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ struct SeasonArchiveListView: View {
for video in respJson["data"]["archives"] {
videos.append(["Title": video.1["title"].string ?? "[加载失败]", "PlayCount": String(video.1["stat"]["view"].int ?? -1), "PicUrl": video.1["pic"].string ?? "E", "BV": video.1["bvid"].string ?? "E"])
}
totalPage = Int((respJson["data"]["page"]["total"].int ?? 0) / 20) + 1
}
}
}
Expand Down

0 comments on commit 65b626f

Please sign in to comment.