This is for downloading video files (and associated sound files) from cards to the PC.
It renames files to yyyy_mm_dd
format and stores details of which file have previously been downloaded, to avoid repeats if you don't clear the card.
Files are stored at the chosen root under yyyy \ yyyy_mm_dd \ yyyy_mm_dd_HHMMss
naming with original filetype as extension. The original files are not touched, just copied.
To install on a windows PC unzip the zipped folder folder https://github.com/ioeffgwin/FileDownload/FileDownloadInterface.zip to somewhere like C:\Program Files
.
Make a shortcut to FileDownloadInterface.exe. (Yes, I should have made the exe name more catchy!). Run that and it should all work.
If you don't like the default locations for source and destinations - or there is a file type you want to include - these can be changed by going to text files at C:\Users\<username>\AppData\Local\FileDownloads
and adding or altering the contents of the relevant files.
Don't mess with the content of the files at C:\Users\<username>\AppData\Local\FileDownloads
unless you are sure you know what you are doing.
.FileDownloads.d is a SQLite database recording the files that have already been downloaded. If you delete it files may get downloaded twice if you haven't deleted them from the card. Their unique test is by file date, time and size. If you really want to, you can read this file by downloading SQLiteStudio.
Details of default values for folder locations and allowed file types are listed below: These are created at first start (or again on next start if deleted) with default values set by the developer in them. One item to each line. If you delete all the contents, the file will recreate with the default values.
AllowedFiles.txt is the file extension for files types to be included. This includes regular video and sound formats. Code is case sensitive hence the upper and lower case. Any other files in the source folder will not appear in the Treeview or Download all option. Make sure to add '.' before extension
LocationDestination.txt - the default path root to send your files to. On windows the would be C:\users<username>\Videos, but change or add if another path is the usual choice
LocationSource.txt - defaults as either F:\DCIM or G:\DCIM but add another if there is another regularly used path
main class to launch app: FileDownloadInterface.pyw
calls following classes: FileDownloadFileMeta.py, FileDownloadDBConn.py, FileDownloadConstants.py
also need hhnet.com-image.ico for app icon
Run these two commands at cmd prompt to create exe file (add relevant <username>
)
CD C:\Users\<username>\OneDrive\Documents\py_VidDownload
pyinstaller --noconsole --windowed --add-data "C:\Python310\Lib\site-packages\customtkinter;customtkinter" --icon hnet.com-image.ico --add-binary logo_1a.png;. FileDownloadInterface.pyw
You might need to change the path for your customtkinter installation to suit your local python installation
although I might not action them!