Merge pull request #2497 from Yetangitu/videorendererparser_parse_missing_title

Handle missing title fields in VideoRendererParser.parse (fixes #2495)
pull/2508/head
syeopite 2021-10-12 19:04:51 +00:00 zatwierdzone przez GitHub
commit 17e6093abb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -43,7 +43,7 @@ private module Parsers
private def self.parse(item_contents, author_fallback)
video_id = item_contents["videoId"].as_s
title = extract_text(item_contents["title"]) || ""
title = extract_text(item_contents["title"]?) || ""
# Extract author information
if author_info = item_contents.dig?("ownerText", "runs", 0)