Invidious is an alternative front-end to YouTube
Remove leftover functions/specs used by the anti-captcha job
Samantaz Fox3a5d40860239
diff --git a/spec/invidious/helpers_spec.cr b/spec/invidious/helpers_spec.crindex 142e1653..9fbb6d6f 100644--- a/spec/invidious/helpers_spec.cr+++ b/spec/invidious/helpers_spec.cr@@ -3,18 +3,6 @@ require "../spec_helper"CONFIG = Config.from_yaml(File.open("config/config.example.yml"))Spectator.describe "Helper" do- describe "#produce_channel_videos_url" do- it "correctly produces url for requesting page `x` of a channel's videos" do- # expect(produce_channel_videos_url(ucid: "UCXuqSBlHAE6Xw-yeJA0Tunw")).to eq("/browse_ajax?continuation=4qmFsgI8EhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaIEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0V4&gl=US&hl=en")- #- # expect(produce_channel_videos_url(ucid: "UCXuqSBlHAE6Xw-yeJA0Tunw", sort_by: "popular")).to eq("/browse_ajax?continuation=4qmFsgJAEhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaJEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0V4R0FFPQ%3D%3D&gl=US&hl=en")-- # expect(produce_channel_videos_url(ucid: "UCXuqSBlHAE6Xw-yeJA0Tunw", page: 20)).to eq("/browse_ajax?continuation=4qmFsgJAEhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaJEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0l5TUE9PQ%3D%3D&gl=US&hl=en")-- # expect(produce_channel_videos_url(ucid: "UC-9-kyTW8ZkZNDHQJ6FgpwQ", page: 20, sort_by: "popular")).to eq("/browse_ajax?continuation=4qmFsgJAEhhVQy05LWt5VFc4WmtaTkRIUUo2Rmdwd1EaJEVnWjJhV1JsYjNNd0FqZ0JZQUZxQUxnQkFDQUFlZ0l5TUJnQg%3D%3D&gl=US&hl=en")- end- end-describe "#produce_channel_search_continuation" doit "correctly produces token for searching a specific channel" doexpect(produce_channel_search_continuation("UCXuqSBlHAE6Xw-yeJA0Tunw", "", 100)).to eq("4qmFsgJqEhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaIEVnWnpaV0Z5WTJnd0FUZ0JZQUY2QkVkS2IxaTRBUUE9WgCaAilicm93c2UtZmVlZFVDWHVxU0JsSEFFNlh3LXllSkEwVHVud3NlYXJjaA%3D%3D")diff --git a/src/invidious/channels/videos.cr b/src/invidious/channels/videos.crindex beb86e08..351790d7 100644--- a/src/invidious/channels/videos.cr+++ b/src/invidious/channels/videos.cr@@ -62,12 +62,6 @@ def produce_channel_videos_continuation(ucid, page = 1, auto_generated = nil, soreturn continuationend-# Used in bypass_captcha_job.cr-def produce_channel_videos_url(ucid, page = 1, auto_generated = nil, sort_by = "newest", v2 = false)- continuation = produce_channel_videos_continuation(ucid, page, auto_generated, sort_by, v2)- return "/browse_ajax?continuation=#{continuation}&gl=US&hl=en"-end-module Invidious::Channel::Tabsextend self