a627388a4a
Same video gets uploaded to turbo.cr under different IDs and resolves to different filenames, so the existsSync(filename) check can't catch content-duplicates. Switched to the same signature the gallery scanner uses — md5 of the first 64KB plus exact byte-size match — and apply it during the download stream so we abort once a same-content existing file is detected. Avoids re-downloading content the user already has (or has deliberately deleted via the duplicate scanner). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>