Fix optional value in data extractor

このコミットが含まれているのは:
Omar Roth 2020-07-21 20:11:13 -04:00
コミット b5f79444f9
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B8254FB7EC3D37F2
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -326,7 +326,7 @@ def extract_items(initial_data : Hash(String, JSON::Any), author_fallback : Stri
t["continuationContents"]? }
.try { |t| t["sectionListRenderer"]? || t["sectionListContinuation"]? }
.try &.["contents"].as_a
.each { |c| c.try &.["itemSectionRenderer"]["contents"].as_a
.each { |c| c.try &.["itemSectionRenderer"]?.try &.["contents"].as_a
.try { |t| t[0]?.try &.["shelfRenderer"]?.try &.["content"]["expandedShelfContentsRenderer"]?.try &.["items"].as_a ||
t[0]?.try &.["gridRenderer"]?.try &.["items"].as_a || t }
.each { |item|