mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix unknown type attachment
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
f298e225a1
commit
2d5145614b
1 changed files with 4 additions and 2 deletions
|
@ -217,11 +217,13 @@ def fetch_channel_community(ucid, continuation, locale, format, thin_mode)
|
||||||
.as(SearchPlaylist)
|
.as(SearchPlaylist)
|
||||||
.to_json(locale, json)
|
.to_json(locale, json)
|
||||||
else
|
else
|
||||||
|
json.object do
|
||||||
json.field "type", "unknown"
|
json.field "type", "unknown"
|
||||||
json.field "error", "Unrecognized attachment type."
|
json.field "error", "Unrecognized attachment type."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if comments && (reply_count = (comments["backstageCommentsRenderer"]["moreText"]["simpleText"]? ||
|
if comments && (reply_count = (comments["backstageCommentsRenderer"]["moreText"]["simpleText"]? ||
|
||||||
comments["backstageCommentsRenderer"]["moreText"]["runs"]?.try &.[0]?.try &.["text"]?)
|
comments["backstageCommentsRenderer"]["moreText"]["runs"]?.try &.[0]?.try &.["text"]?)
|
||||||
|
|
Loading…
Reference in a new issue