mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-03 20:38:29 -06:00
Fix community posts when there is a unavailable video in a post
Posts with a video that has been removed returned `ProblematicTimelineItem` type which was not taken in account for community posts. Now community posts with a broken video will not display an embedded video.
This commit is contained in:
parent
c250b9c0b1
commit
703b68c0a1
@ -143,7 +143,7 @@ def extract_channel_community(items, *, ucid, locale, format, thin_mode, is_sing
|
|||||||
case attachment.as_h
|
case attachment.as_h
|
||||||
when .has_key?("videoRenderer")
|
when .has_key?("videoRenderer")
|
||||||
parse_item(attachment)
|
parse_item(attachment)
|
||||||
.as(SearchVideo)
|
.as(SearchVideo | ProblematicTimelineItem)
|
||||||
.to_json(locale, json)
|
.to_json(locale, json)
|
||||||
when .has_key?("backstageImageRenderer")
|
when .has_key?("backstageImageRenderer")
|
||||||
json.object do
|
json.object do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user