mirror of
https://github.com/iv-org/invidious.git
synced 2025-10-29 11:41:58 +00:00
Query DB for timestamps after current id
This commit is contained in:
@@ -200,19 +200,12 @@ if (!video_data.params.listen && video_data.vr && video_data.params.vr_mode) {
|
||||
// Add markers
|
||||
if (video_data.params.video_start > 0 || video_data.params.video_end > 0) {
|
||||
var markers = [{ time: video_data.params.video_start, text: 'Start' }];
|
||||
if (video_data.starting_timestamp_seconds) {
|
||||
markers = [{ time: video_data.starting_timestamp_seconds, text: 'Start' }];
|
||||
}
|
||||
|
||||
if (!video_data.ending_timestamp_seconds) {
|
||||
if (video_data.params.video_end < 0) {
|
||||
markers.push({ time: video_data.length_seconds - 0.5, text: 'End' });
|
||||
} else {
|
||||
markers.push({ time: video_data.params.video_end, text: 'End' });
|
||||
}
|
||||
if (video_data.params.video_end < 0) {
|
||||
markers.push({ time: video_data.length_seconds - 0.5, text: 'End' });
|
||||
} else {
|
||||
markers.push({ time: video_data.ending_timestamp_seconds, text: 'End' });
|
||||
}
|
||||
markers.push({ time: video_data.params.video_end, text: 'End' });
|
||||
}
|
||||
|
||||
player.markers({
|
||||
onMarkerReached: function (marker) {
|
||||
|
||||
@@ -111,6 +111,7 @@ function get_compilation(compid) {
|
||||
compid_url = '/api/v1/compilations/' + compid +
|
||||
'?index=' + video_data.index +
|
||||
'&continuation=' + video_data.id +
|
||||
//'&t=' + video_data.video_data.starting_timestamp_seconds +
|
||||
'&format=html&hl=' + video_data.preferences.locale;
|
||||
|
||||
console.log("Send "+compid_url);
|
||||
@@ -138,6 +139,7 @@ function get_compilation(compid) {
|
||||
url.searchParams.set('speed', video_data.params.speed);
|
||||
if (video_data.params.local !== video_data.preferences.local)
|
||||
url.searchParams.set('local', video_data.params.local);
|
||||
url.searchParams.set('t',video_data.starting_timestamp_seconds);
|
||||
|
||||
location.assign(url.pathname + url.search);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user