Skip to content

Instantly share code, notes, and snippets.

@blueman007
blueman007 / set_video_metadata_date_created.sh
Last active January 24, 2020 15:37 — forked from zarino/set_video_metadata_date_created.sh
Automatically alter the “date added” for a video file in the Synology Video Station database, to match the last modification date of the file on disk. Modded to work on DSM 6.2.2 (2019-08) and report errors if found. You have to stop Video Station service from the package center, then restart it after the script has ran.
#!/bin/sh
set -e
if [ -z "$1" ]; then
cat <<'EOF'
Usage:
./set_video_metadata_date_created.sh '/absolute/path/to/video/file.mp4'