summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2021-09-28 08:39:00 -0700
committersyeopite <syeopite@syeopite.dev>2021-09-28 08:39:00 -0700
commitaa59925374849a4e2aee09de5e65ba027e16f3be (patch)
tree4269877f1e7d44b09ad54be97db0849d06ef99a4 /src
parent43ea8fa70698ef94701fdf9da419300b9a6a0710 (diff)
downloadinvidious-aa59925374849a4e2aee09de5e65ba027e16f3be.tar.gz
invidious-aa59925374849a4e2aee09de5e65ba027e16f3be.tar.bz2
invidious-aa59925374849a4e2aee09de5e65ba027e16f3be.zip
Rename get_browse_endpoint to get_browse_id
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/extractors.cr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/helpers/extractors.cr b/src/invidious/helpers/extractors.cr
index 88248e8d..13ffe1e4 100644
--- a/src/invidious/helpers/extractors.cr
+++ b/src/invidious/helpers/extractors.cr
@@ -48,7 +48,7 @@ private module Parsers
# Extract author information
if author_info = item_contents.dig?("ownerText", "runs", 0)
author = author_info["text"].as_s
- author_id = HelperExtractors.get_browse_endpoint(author_info)
+ author_id = HelperExtractors.get_browse_id(author_info)
else
author = author_fallback.name
author_id = author_fallback.id
@@ -218,7 +218,7 @@ private module Parsers
author_info = item_contents.dig("shortBylineText", "runs", 0)
author = author_info["text"].as_s
- author_id = HelperExtractors.get_browse_endpoint(author_info)
+ author_id = HelperExtractors.get_browse_id(author_info)
videos = item_contents["videos"]?.try &.as_a.map do |v|
v = v["childVideoRenderer"]
@@ -478,7 +478,7 @@ private module HelperExtractors
# Retrieves the ID required for querying the InnerTube browse endpoint.
# Raises when it's unable to do so
- def self.get_browse_endpoint(container)
+ def self.get_browse_id(container)
return container.dig("navigationEndpoint", "browseEndpoint", "browseId").as_s
end
end