mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add handling for empty continuation
This commit is contained in:
parent
daa2329f8b
commit
95bde7bb8a
1 changed files with 2 additions and 1 deletions
|
@ -227,7 +227,8 @@ def fetch_youtube_comments(id, continuation, proxies, format, locale)
|
|||
reply_count ||= 1
|
||||
end
|
||||
|
||||
continuation = node_replies["continuations"].as_a[0]["nextContinuationData"]["continuation"].as_s
|
||||
continuation = node_replies["continuations"]?.try &.as_a[0]["nextContinuationData"]["continuation"].as_s
|
||||
continuation ||= ""
|
||||
|
||||
json.field "replies" do
|
||||
json.object do
|
||||
|
|
Loading…
Reference in a new issue