{ "info": { "author": "Sam Simmons", "author_email": "sam@samiconductor.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: Unix", "Programming Language :: Python :: 3 :: Only", "Topic :: System :: Systems Administration", "Topic :: Utilities" ], "description": "Move Media\n==========\n\nSafely move photos and videos from a source directory with arbitrary files to\nphoto and video destination directories. The media type of the file is used to\ndetermine if it's a photo or video. Any other media types are ignored.\n\nThe date and time the photo or video was taken is detected (if possible). If\nit is a photo, the EXIF DateTimeOriginal tag is used if present. Else for\nphotos or videos, the date taken is inferred from the file name since most\nmedia files are named by date taken. Finally, the modify time of the file is\nused as a best guess. The destination files are organized by year and given a\nconsistent file name based on the detected date taken. If a destination file\nwith the same date taken and different checksum exists, an incrementing suffix\nis appended to the file name.\n\nYou can optionally remove photos and videos from the source directory that are\nolder than a provided number of days. Files are only removed if the media file\nis copied and matching checksum is verified or if the media file with matching\nchecksum already exists in the destination.\n\nYou can skip files that were recently modified within a provided number of\nminutes.\n\nMy Use Case\n-----------\n\nI run this on my Dropbox camera uploads every night to:\n a. Free up space on Dropbox\n b. Point Plex at split up photos and videos directories\n c. Backup the organized photos and videos\n\nHere's the crontab::\n\n # move dropbox camera uploads out of dropbox into media folders\n 0 2 * * * mvmedia Dropbox/Camera\\ Uploads --photos=Media/Pictures --videos=Media/Videos --remove=30 --recent=30 --verbose >> /var/log/dropbox/move-media.log\n\nUsage\n-----\n\nHelp::\n\n usage: mvmedia [-h] --photos PHOTOS --videos VIDEOS [--remove REMOVE]\n [--recent RECENT] [--verbose]\n source\n\n Move and rename photos and videos\n\n positional arguments:\n source Source folder to read media from\n\n optional arguments:\n -h, --help show this help message and exit\n --photos PHOTOS Destination folder to move photos to\n --videos VIDEOS Destination folder to move videos to\n --remove REMOVE Remove files older than provided days\n --recent RECENT Skip files recently modified within the provided minutes\n --verbose Print verbose output\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/samiconductor/move-media", "keywords": "cli media", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mvmedia", "package_url": "https://pypi.org/project/mvmedia/", "platform": "", "project_url": "https://pypi.org/project/mvmedia/", "project_urls": { "Homepage": "https://github.com/samiconductor/move-media" }, "release_url": "https://pypi.org/project/mvmedia/1.0.0/", "requires_dist": [ "exifread", "python-magic", "readme-renderer; extra == 'dev'", "wheel; extra == 'dev'", "twine; extra == 'dev'" ], "requires_python": ">=3.4", "summary": "Safely move photos and videos", "version": "1.0.0" }, "last_serial": 3639295, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f2d3af85b6afc6cb74789f86e2dc894b", "sha256": "8ec712bc4395a46486a994e89de2adb83b8512a75c5da8e24771239cee574097" }, "downloads": -1, "filename": "mvmedia-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f2d3af85b6afc6cb74789f86e2dc894b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 7690, "upload_time": "2018-03-05T02:36:11", "url": "https://files.pythonhosted.org/packages/d7/a4/7ef4294227865b263e647334ca73214603476437158edbaf5f2c2f63125f/mvmedia-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7729c89d9756356a53e34f69eeec1281", "sha256": "87a87df557f6bd983b0d6ca218ed793c6dab214e4726a20128f404aacc80ded3" }, "downloads": -1, "filename": "mvmedia-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7729c89d9756356a53e34f69eeec1281", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4825, "upload_time": "2018-03-05T02:36:12", "url": "https://files.pythonhosted.org/packages/82/f8/1da9330d69f67a956713d9dabf4147caada1e33fb7e8d2734f3a3185ee36/mvmedia-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f2d3af85b6afc6cb74789f86e2dc894b", "sha256": "8ec712bc4395a46486a994e89de2adb83b8512a75c5da8e24771239cee574097" }, "downloads": -1, "filename": "mvmedia-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f2d3af85b6afc6cb74789f86e2dc894b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 7690, "upload_time": "2018-03-05T02:36:11", "url": "https://files.pythonhosted.org/packages/d7/a4/7ef4294227865b263e647334ca73214603476437158edbaf5f2c2f63125f/mvmedia-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7729c89d9756356a53e34f69eeec1281", "sha256": "87a87df557f6bd983b0d6ca218ed793c6dab214e4726a20128f404aacc80ded3" }, "downloads": -1, "filename": "mvmedia-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7729c89d9756356a53e34f69eeec1281", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 4825, "upload_time": "2018-03-05T02:36:12", "url": "https://files.pythonhosted.org/packages/82/f8/1da9330d69f67a956713d9dabf4147caada1e33fb7e8d2734f3a3185ee36/mvmedia-1.0.0.tar.gz" } ] }