Commit Graph

394 Commits

Author SHA1 Message Date
b54c00eafe updated comment 2021-05-27 18:24:45 +10:00
9b926938e4 added viewing recycle bin via folders, added comments, cleaned up TODO to note this is done 2021-05-26 18:32:52 +10:00
8dc98dd368 first-pass of deleting a file moving to the bin instead, not in right spot on FS/ path&rel_path, and no visualisation yet 2021-05-24 07:42:08 +10:00
74943f6112 Merge branch 'master' of 192.168.0.2:photoassistant 2021-05-22 17:48:39 +10:00
3898d1a943 remove unused path_prefix from DIR, its not in PATH 2021-05-22 17:48:34 +10:00
Damien De Paoli
e04fc4c068 mostly a TODO update, but start of recycle bin in DB work (PATH, etc.) is now created when we do a force rebuild from the GUI 2021-05-22 17:24:48 +10:00
5e03650ed5 first cut of paths actually working with folder viewing - for now defaulting on for both Storage only 2021-05-01 18:16:45 +10:00
b6b98ae5ca added path type via new path.py to avoid more circular imports 2021-04-17 17:48:24 +10:00
4b0c64e9d8 updated TODO based on last file.py change for static/Storage usage 2021-04-17 17:47:47 +10:00
724d9b9a2e debugs / comments 2021-04-17 17:46:37 +10:00
3237e3bf8f fixed up dup code to work with paths, added path_types throughout and updated TODO to be clear on what next 2021-04-17 17:43:42 +10:00
477aa4e5b8 removed debug, fixed search to always be flat view and search paths with new rel_path field 2021-04-13 15:45:59 +10:00
35d1b32bba remove debugs 2021-04-12 00:16:06 +10:00
70458228b3 just remembered the bug with group by and folders mode 2021-04-12 00:15:21 +10:00
56bb054384 lots more thoughts on recycle bin needs 2021-04-12 00:13:15 +10:00
ca7391e21b fixed hard-coded static/storage, now use in_path.path_prefix 2021-04-12 00:06:26 +10:00
095b7c8333 Path in the DB is complete, still have hacks around displaying folders (hardcoded path name) 2021-04-11 15:35:01 +10:00
4a55e98f5b first pass at removing explicit use of path_prefix, the remaining code either uses it to search so needs new path_dir_link table, or is AddDir which I need to think about 2021-04-10 11:48:56 +10:00
fddd47a1ab now using uselist=False to ensure file_details, dir_details, in_dir are one-to-one, and dont have useless list of 1 element. updated TODO to reflect order of how to tackle change over to paths and dirs 2021-04-10 11:28:17 +10:00
232c98b484 fixed this bug ages ago 2021-04-10 11:06:24 +10:00
1ece519a2a added first pass of viewing by folders, see TODO for next steps 2021-04-06 17:05:24 +10:00
0ad62f5c07 made just one checkdups/rmdups front end message once we dups 2021-04-02 16:19:54 +11:00
e6fd9a9b13 made just one checkdups/rmdups front end message once we dups 2021-04-02 16:19:40 +11:00
e3f2870197 added support for recycle bin 2021-04-02 15:11:47 +11:00
ab0513215f added DB support for recycle bin 2021-04-02 15:10:27 +11:00
2c7d5d91d4 added TODOs around recycle bin status 2021-04-02 15:10:16 +11:00
2e6b59a0ec added DB support for recycle bin 2021-04-02 15:09:49 +11:00
5e6d63d668 cleaned up some logs / debugs, fixed bug where we stripped comma of list of hashes, but there was none, so failed to find that hash, also created convenience functions to remove a file / dir from DB for exists_of_fs code, but also re-used so deleting duplicates also removes files 2021-03-28 16:30:46 +11:00
5f42e19bcd use kfid instead of kfname for consistency, and now we have 2 loops of kfids, then keep the count explicit (kfid.count) rather than implicity loop.index 2021-03-28 16:17:01 +11:00
7e7d757afb use kfid instead of fkname for consistency 2021-03-28 16:16:12 +11:00
a7d605d760 not much point in -9 on gzip, so ditch it 2021-03-27 15:12:43 +11:00
151775fa26 clean up / add to TODOs 2021-03-27 15:12:23 +11:00
a1c2b3f72b fixed way we account for remaining deletes, this should genuinely fix the dup counting stuff now 2021-03-27 15:12:03 +11:00
fa6be43c3a back to DEV for real deleting testing 2021-03-27 15:11:37 +11:00
62cbfcebdf one further nuance with counts after testing, fixed 2021-03-27 15:11:19 +11:00
932d05b8e3 improved duplicate counting, removed concept of sets, and validated counts work via DB selects, and they do 2021-03-27 14:24:27 +11:00
c4f36713bf improved duplicate counting, removed concept of sets, and validated counts work via DB selects, and they do 2021-03-27 14:24:16 +11:00
7304fc0916 removed some actions done, added new 2021-03-26 17:10:01 +11:00
5ee718b1d4 added search comparison with dir name 2021-03-26 17:09:42 +11:00
b1771baa2d providing some totals via the code, and fudging numbers to show how many keep/del due to auto rules, and how many manual choices left 2021-03-25 19:53:26 +11:00
b216d138b9 renamed self.KeepInSameDups to self.KeepInIPSPDups as it is not same dir, but ip to sp 2021-03-25 19:52:48 +11:00
a6161d1fa2 add in file cnt inside dup paths 2021-03-24 19:35:49 +11:00
6e50390886 use su mythtv, not su - mythtv... myth has no home dir 2021-03-24 19:35:19 +11:00
f6ce155217 allow dev or prod defaults for settings table 2021-03-24 19:34:56 +11:00
1ab339ffea had to revert the import line - pylint didnt originally like it this way, cant see issue now - go figure, but it definitely caused the video thumbs to fail. turned off debug again, fixed up how we account for current_file_num increases via explicit use of ProcessFileForJob() to increment where required, or just inc. properly. Finally, check if image has transparency, if so convert it to rgb as we cant save it as jpeg otherwise (in thumbnail creation) 2021-03-23 18:39:58 +11:00
a2ef27e6a1 had to revert the import line - pylint didnt originally like it this way, cant see issue now - go figure, but it definitely caused the video thumbs to fail 2021-03-23 18:38:10 +11:00
92c5ee3e9d keep processing all dups, even when > pagesize, so that alert at end is definitive about automatic matches that will be deleted. Also, fixed issue where a duplicate in the root dir of an import / storage path, was showing as blank after TrimmedPath() 2021-03-23 18:37:32 +11:00
072705005d removed all references to /static except in SymlinkName() 2021-03-23 18:36:07 +11:00
ebd5a8f3ba make ./static be owned by mythtv (passed in 500/500 for uid/gid) so that it can manipulate files in storage area on mara - still need to work out build args, not just hack it in Dockerfile ENV vars 2021-03-23 18:35:43 +11:00
055dd58d34 better formatting for all automatic matches, deal with automatic matching of preferred_paths, put <input type=hidden> fields in for files in storage and import paths, only display headings/content if it actually exists 2021-03-21 17:00:36 +11:00