feat: Implement video version management API, enable comment tag editing, and enhance video duration display to include hours.

This commit is contained in:
Yusuf İpek
2026-02-10 14:48:15 +03:00
parent d42db4484b
commit ca65cf8f58
7 changed files with 522 additions and 175 deletions
@@ -33,8 +33,13 @@ function VisibilityIcon({ visibility }: { visibility: string }) {
function formatDuration(seconds: number | null): string {
if (!seconds) return '0:00';
const mins = Math.floor(seconds / 60);
const secs = Math.floor(seconds % 60);
const totalSeconds = Math.floor(seconds);
const hrs = Math.floor(totalSeconds / 3600);
const mins = Math.floor((totalSeconds % 3600) / 60);
const secs = totalSeconds % 60;
if (hrs > 0) {
return `${hrs}:${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
}
return `${mins}:${secs.toString().padStart(2, '0')}`;
}