フォーク元 suwako/invidious-mod
Fix importing FreeTube subscriptions with multiple profiles
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
このコミットが含まれているのは:
コミット
0bd415158f
|
@ -228,8 +228,12 @@ struct Invidious::User
|
|||
subs = matches.map(&.["channel_id"])
|
||||
|
||||
if subs.empty?
|
||||
data = JSON.parse(body)["subscriptions"]
|
||||
subs = data.as_a.map(&.["id"].as_s)
|
||||
profiles = body.split('\n', remove_empty: true)
|
||||
profiles.each do |profile|
|
||||
if data = JSON.parse(profile)["subscriptions"]?
|
||||
subs += data.as_a.map(&.["id"].as_s)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
user.subscriptions += subs
|
||||
|
|
読み込み中…
新しいイシューから参照