{"id":29195435,"url":"https://github.com/debjit018/media-organizer-md5","last_synced_at":"2026-05-12T12:43:42.670Z","repository":{"id":302035422,"uuid":"1011014350","full_name":"debjit018/media-organizer-md5","owner":"debjit018","description":"Organize images, videos, and audio files into year-based folders using EXIF metadata and MD5 checksums to prevent duplicates. Includes dry-run, logging, and automatic cleanup.","archived":false,"fork":false,"pushed_at":"2025-06-30T07:39:48.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T08:35:28.501Z","etag":null,"topics":["audio-organizer","bash","duplicate-file-removal","exiftool","file-management","image-organizer","md5","media-organizer","shell-script","video-organizer"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debjit018.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-30T07:13:11.000Z","updated_at":"2025-06-30T07:47:19.000Z","dependencies_parsed_at":"2025-06-30T08:36:49.233Z","dependency_job_id":null,"html_url":"https://github.com/debjit018/media-organizer-md5","commit_stats":null,"previous_names":["debjit018/media-organizer-md5"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/debjit018/media-organizer-md5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debjit018%2Fmedia-organizer-md5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debjit018%2Fmedia-organizer-md5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debjit018%2Fmedia-organizer-md5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debjit018%2Fmedia-organizer-md5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debjit018","download_url":"https://codeload.github.com/debjit018/media-organizer-md5/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debjit018%2Fmedia-organizer-md5/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263077630,"owners_count":23410167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-organizer","bash","duplicate-file-removal","exiftool","file-management","image-organizer","md5","media-organizer","shell-script","video-organizer"],"created_at":"2025-07-02T05:04:24.993Z","updated_at":"2026-05-12T12:43:42.664Z","avatar_url":"https://github.com/debjit018.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📁 Organize Media with MD5 Duplicate Detection\n\nA powerful Bash script to organize your **images**, **videos**, or **audio files** into year-based folders using metadata — while detecting duplicates using **MD5 checksums**.\n\n✅ Supports EXIF-aware sorting  \n✅ Prevents duplicate files by content (MD5)  \n✅ Works recursively across folders  \n✅ Deletes empty directories automatically  \n✅ Dry-run mode for safe testing\n\n---\n\n## 🚀 Features\n\n- 📷 Organize **Images**, 🎞️ **Videos**, 🎵 **Audio**, or **All**\n- 🕒 Uses `DateTimeOriginal`, `CreateDate`, or `FileModifyDate`\n- 🧠 Automatically avoids duplicate content using **MD5 hashing**\n- 🧹 Removes empty folders after sorting\n- 🧪 `--dry-run` option available\n- 🔏 Logs everything in `organize_\u003ctype\u003e.log`\n\n---\n\n## 📦 Requirements\n\nEnsure these are installed:\n\n- `bash`\n- `exiftool` (for extracting timestamps)\n- `md5sum`\n- `find`\n\nOn Ubuntu/Debian:\n\n```bash\nsudo apt update\nsudo apt install libimage-exiftool-perl\n````\n\n---\n\n## 🔧 Usage\n\n```bash\nchmod +x media_organizer_md5.sh\n./media_organizer_md5.sh /path/to/parent/folder [--dry-run]\n./media_organizer_md5.sh /path/to/parent/folder\n```\n\nYou’ll be prompted to choose:\n\n```\n1. Images\n2. Videos\n3. Audio\n4. All (Images + Videos + Audio)\n```\n\n---\n\n## 🧪 Example\n\n```bash\n./media_organizer_md5.sh /media/zz/CC70-D0--/Media_Backups/ --dry-run\n```\n\n→ Simulates moving your media into `/media/zz/CC70-D0--/Media_Backups/Images/YYYY`, etc., without changing anything.\n\n---\n\n## 📂 Folder Structure\n\n```\nParentDirectory/\n├── Images/\n│   └── 2024/\n│       └── 2024-05-20_14-22-31.jpg\n├── Videos/\n│   └── 2023/\n│       └── 2023-11-02_18-07-00.mp4\n├── Audio/\n│   └── 2021/\n│       └── 2021-08-19_10-05-12.mp3\n```\n\n---\n\n## 🛡️ Duplicate Handling\n\nBefore moving a file, the script:\n\n* Computes its **MD5 hash**\n* Compares against existing files in the target folder\n* Skips if identical content is already present\n\nNo clutter. No overwrite. Just smart moves.\n\n---\n\n## 📝 License\n\nMIT License\n\n---\n\n## ✨ Author\n\nDeveloped by \\[debjit018].\nFeel free to fork, suggest improvements, or contribute!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebjit018%2Fmedia-organizer-md5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebjit018%2Fmedia-organizer-md5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebjit018%2Fmedia-organizer-md5/lists"}