mirror of
https://github.com/iv-org/invidious.git
synced 2025-01-24 21:57:00 +00:00
Replace EOF carriage returns
This commit is contained in:
parent
212509ec60
commit
205c5493db
@ -339,14 +339,16 @@ end
|
|||||||
def update_first_video_params(compid : String)
|
def update_first_video_params(compid : String)
|
||||||
if compilation = Invidious::Database::Compilations.select(id: compid)
|
if compilation = Invidious::Database::Compilations.select(id: compid)
|
||||||
compilation_index_array = compilation.index
|
compilation_index_array = compilation.index
|
||||||
first_index = compilation_index_array[0]
|
if (compilation_index_array.size > 0)
|
||||||
first_id = Invidious::Database::CompilationVideos.select_id_from_index(first_index)
|
first_index = compilation_index_array[0]
|
||||||
if !first_id.nil?
|
first_id = Invidious::Database::CompilationVideos.select_id_from_index(first_index)
|
||||||
timestamps = Invidious::Database::CompilationVideos.select_timestamps(compid, first_id)
|
if !first_id.nil?
|
||||||
if (!timestamps.nil?)
|
timestamps = Invidious::Database::CompilationVideos.select_timestamps(compid, first_id)
|
||||||
starting_timestamp_seconds=timestamps[0]
|
if (!timestamps.nil?)
|
||||||
ending_timestamp_seconds=timestamps[1]
|
starting_timestamp_seconds=timestamps[0]
|
||||||
Invidious::Database::Compilations.update_first_video_params(compid, first_id, starting_timestamp_seconds, ending_timestamp_seconds)
|
ending_timestamp_seconds=timestamps[1]
|
||||||
|
Invidious::Database::Compilations.update_first_video_params(compid, first_id, starting_timestamp_seconds, ending_timestamp_seconds)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user