|
|
@ -762,7 +762,7 @@ module HelperExtractors
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# Retrieves the ID required for querying the InnerTube browse endpoint.
|
|
|
|
# Retrieves the ID required for querying the InnerTube browse endpoint.
|
|
|
|
# Raises when it's unable to do so
|
|
|
|
# Returns an empty string when it's unable to do so
|
|
|
|
def self.get_browse_id(container)
|
|
|
|
def self.get_browse_id(container)
|
|
|
|
return container.dig?("navigationEndpoint", "browseEndpoint", "browseId").try &.as_s || ""
|
|
|
|
return container.dig?("navigationEndpoint", "browseEndpoint", "browseId").try &.as_s || ""
|
|
|
|
end
|
|
|
|
end
|
|
|
|