summaryrefslogtreecommitdiffstats
path: root/spec/parsers_helper.cr
blob: 6589acad8372fc232ebafe556a2675d9349603e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require "db"
require "json"
require "kemal"

require "protodec/utils"

require "spectator"

require "../src/invidious/exceptions"
require "../src/invidious/helpers/macros"
require "../src/invidious/helpers/logger"
require "../src/invidious/helpers/utils"

require "../src/invidious/videos"
require "../src/invidious/videos/*"
require "../src/invidious/comments/content"

require "../src/invidious/helpers/serialized_yt_data"
require "../src/invidious/yt_backend/extractors"
require "../src/invidious/yt_backend/extractors_utils"

OUTPUT = File.open(File::NULL, "w")
LOGGER = Invidious::LogHandler.new(OUTPUT, LogLevel::Off)

def load_mock(file) : Hash(String, JSON::Any)
  file = File.join(__DIR__, "..", "mocks", file + ".json")
  content = File.read(file)

  return JSON.parse(content).as_h
end

Spectator.configure do |config|
  config.fail_blank
  config.randomize
end
.0&id=99b0b4f5b8d912afe62e88301628ffc7540c5f83&follow=1'>Fix escaping for materialized view SQLOmar Roth 2019-07-09Add community pageOmar Roth 2019-07-08Add administrator option to disable proxyingOmar Roth 2019-07-08Add fix for #600Omar Roth 2019-07-07Attempt to optimize query for subscription feedOmar Roth 2019-07-05Prevent embeds from appearing in watch historyOmar Roth 2019-07-05Add av01 formats to itag listOmar Roth 2019-07-05Fix redirect for livestream segmentsOmar Roth 2019-07-05Fix chunk size for livestreamsOmar Roth 2019-07-05Fix chunking for livestream segmentsOmar Roth 2019-07-04Try to prevent redirect for DASH streamsOmar Roth 2019-07-04Chunk video files to bypass throttlingOmar Roth 2019-07-04Add 'pipe' for proxying assetsOmar Roth 2019-07-04Add support for Chinese translationOmar Roth fattalion 2021-02-25Add SimplyTranslate supportfattalion 2021-02-24add invidious instanceAndrew Zhao