-Implemented YouTube timestamp correction and added the admin Upkeeping section.

What changed:
Added shared YouTube publish-date scraping helpers in 
[includes/db.php](/Users/tyemeclifford/Documents/GH/mediaplayer/includes/db.php).
New YouTube imports now set videos.created_at to the original YouTube 
publish date when available.
Manual Add/Edit saves now also try to correct timestamps for 
YouTube-backed videos.
Added Admin Dashboard → Upkeeping → Correct YouTube timestamps in 
[admin/index.php](/Users/tyemeclifford/Documents/GH/mediaplayer/admin/index.php), 
with batch size control for backfilling existing records.
Renamed the admin table column from Added to Date, since it may now 
reflect original publish date.
Documented the behavior in 
[README.md](/Users/tyemeclifford/Documents/GH/mediaplayer/README.md).
This commit is contained in:
Ty Clifford
2026-06-24 13:40:03 -04:00
parent 99492287e7
commit dc71d26c2a
6 changed files with 205 additions and 8 deletions
+2
View File
@@ -190,6 +190,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
}
media_apply_youtube_timestamp($id);
header('Location: edit.php?id=' . $id . '&saved=1');
exit;
}