Skip to content

Invidious is an alternative front-end to YouTube

Remove migration points

Omar Roth93082c0a455f
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 228aafbd..e4ccd3d8 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -491,9 +491,6 @@ def get_video(id, db, proxies = {} of String => Array({ip: String, port: Int32})
video = fetch_video(id, proxies)
video_array = video.to_a
- # Migration point
- video_array = video_array[0..-2]
-
args = arg_array(video_array[1..-1], 2)
db.exec("UPDATE videos SET (info,updated,title,views,likes,dislikes,wilson_score,\
@@ -509,9 +506,6 @@ def get_video(id, db, proxies = {} of String => Array({ip: String, port: Int32})
video = fetch_video(id, proxies)
video_array = video.to_a
- # Migration point
- video_array = video_array[0..-2]
-
args = arg_array(video_array)
db.exec("INSERT INTO videos VALUES (#{args}) ON CONFLICT (id) DO NOTHING", video_array)