mirror of
https://github.com/iv-org/invidious.git
synced 2026-07-08 06:36:46 -05:00
apply ameba suggestion
This commit is contained in:
parent
8e0cdbf0ae
commit
83afd79670
@ -795,7 +795,7 @@ private module Parsers
|
|||||||
parts && !parts.any? { |item| item.dig?("text", "content").try &.as_s == "View full playlist" }
|
parts && !parts.any? { |item| item.dig?("text", "content").try &.as_s == "View full playlist" }
|
||||||
}.try &.["metadataParts"].as_a
|
}.try &.["metadataParts"].as_a
|
||||||
|
|
||||||
if author_info = metadata_parts.try &.find { |item| item.dig?("text", "commandRuns") }
|
if author_info = metadata_parts.try &.find(&.dig?("text", "commandRuns"))
|
||||||
.try &.["text"]
|
.try &.["text"]
|
||||||
author = author_info["content"].as_s
|
author = author_info["content"].as_s
|
||||||
author_id = author_info.dig?("commandRuns", 0, "onTap", "innertubeCommand", "browseEndpoint", "browseId")
|
author_id = author_info.dig?("commandRuns", 0, "onTap", "innertubeCommand", "browseEndpoint", "browseId")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user