mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Handle missing title fields in VideoRendererParser.parse
This commit is contained in:
parent
39c27f0c66
commit
c44c1003af
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ private module Parsers
|
||||||
|
|
||||||
private def self.parse(item_contents, author_fallback)
|
private def self.parse(item_contents, author_fallback)
|
||||||
video_id = item_contents["videoId"].as_s
|
video_id = item_contents["videoId"].as_s
|
||||||
title = extract_text(item_contents["title"]) || ""
|
title = extract_text(item_contents["title"]?) || ""
|
||||||
|
|
||||||
# Extract author information
|
# Extract author information
|
||||||
if author_info = item_contents.dig?("ownerText", "runs", 0)
|
if author_info = item_contents.dig?("ownerText", "runs", 0)
|
||||||
|
|
Loading…
Reference in a new issue