Comments: Move 'fetch_youtube' function to own file + module

This commit is contained in:
Samantaz Fox
2023-05-06 19:56:30 +02:00
parent 8dd1824869
commit 1b25737b01
4 changed files with 210 additions and 207 deletions

View File

@@ -333,7 +333,7 @@ module Invidious::Routes::API::V1::Videos
sort_by ||= "top"
begin
comments = fetch_youtube_comments(id, continuation, format, locale, thin_mode, region, sort_by: sort_by)
comments = Comments.fetch_youtube(id, continuation, format, locale, thin_mode, region, sort_by: sort_by)
rescue ex : NotFoundException
return error_json(404, ex)
rescue ex