Commit Graph

74 Commits (bd4c9977800833da6c1921fbb3bd6085b03fec4b)

Author SHA1 Message Date
voussoir 3767558c66
Add search filter has_albums.
Sometimes it's nice to search just for the free spirits.
2022-09-28 19:49:01 -07:00
voussoir 97e14b9917
Add cli command new_photo. 2022-08-31 20:21:07 -07:00
voussoir b52e79f99c
Update argument to yield_new_photos, yield_old_photos. 2022-08-21 14:02:39 -07:00
voussoir 7ec1f7e4c8
Fix use of dotdot notation in cli help. 2022-08-14 13:20:05 -07:00
voussoir 57f1b80442
Use SQL generated columns for area, aspectratio, basename, bitrate. 2022-08-13 18:08:45 -07:00
voussoir 0e00a1e981
Use new worms version. 2022-07-20 19:03:25 -07:00
voussoir 1bc59311c9
Let init print message if database already exists. 2022-03-26 13:21:59 -07:00
voussoir 85055cdea2
Use new betterhelp. 2022-02-12 19:56:00 -08:00
voussoir 67cda79b58
Rearrange the help text into categories. 2022-01-10 17:54:08 -08:00
voussoir 24f9dc7d03
Separate delete_albums from delete_photos. 2022-01-10 17:53:29 -08:00
voussoir fcc6073d52
Improve the args.any postprocessor results and the way we glob. 2022-01-10 17:53:00 -08:00
voussoir a0ed8fcaa0
Use a global photodb so we can call two functions more safely.
Opening two separate connections by accident is no good.
2022-01-10 17:51:53 -08:00
voussoir d8cc841f5c
Remove unnecessary .absolute_path thanks to fspath. 2021-12-07 12:45:08 -08:00
voussoir 3eb83a6289
Remove '''.strip, now unnecessary thanks to betterhelp updates.
betterhelp.print_helptext normalizes the whitespace before printing.
2021-11-10 23:45:23 -08:00
voussoir 837820125b
Update ecli helptext. 2021-11-07 19:35:08 -08:00
voussoir a686cade94
Correct helptexts to say "--search searchargs". 2021-11-01 23:31:50 -07:00
voussoir d5e51aa2ea
Return 0 from ecli functions. 2021-10-15 20:58:10 -07:00
voussoir 49fa9263b6
Add commit prompt for tag_breplace_argparse. 2021-10-02 23:39:43 -07:00
voussoir 72be07bdb7
Small aesthetic tweaks. 2021-09-30 22:03:15 -07:00
voussoir 2c321e8faa
Remove function find_photodb. This small caching is not important. 2021-09-30 22:03:15 -07:00
voussoir 93da1f32c7
Improve some helptext examples. 2021-09-12 21:20:18 -07:00
voussoir 068775cedd
Switch to vlogging.main_decorator. 2021-09-12 21:19:53 -07:00
voussoir e9d5711f29
Some linting. 2021-08-20 22:54:12 -07:00
voussoir a823036f9d
Add command generate_thumbnail. 2021-06-03 19:18:13 -07:00
voussoir ed8241f2ef
Don't commit for every file. 2021-06-03 19:12:15 -07:00
voussoir 801226522b
Fix docstring referring to ids without --photos, --albums. 2021-06-03 19:08:55 -07:00
voussoir f6cb496db4
Check need_commit on purge_deleted_files. 2021-06-03 19:08:31 -07:00
voussoir 9f84435ad9
Add flag --delete-file. 2021-05-30 19:15:03 -07:00
voussoir b6e21e2e65
Add missing strip() on tag_list docstring. 2021-05-18 23:44:18 -07:00
voussoir 635db7e04f
Ensure that each searchargs-capable command mentions search --help. 2021-05-18 23:43:18 -07:00
voussoir 5d736f49ce
Clarify that these flags require a following argument. 2021-05-18 23:38:04 -07:00
voussoir 2d2e80824f
Migrate scripts from spinal.walk_generator to spinal.walk. 2021-05-17 17:01:11 -07:00
voussoir 26d5ff5730
Update closest_photodb to take starting path argument. 2021-05-16 21:08:51 -07:00
voussoir 1a944f574e
Add command tag-list. 2021-05-15 18:20:59 -07:00
voussoir 4bf5b6d824
Replace dev_ino with mtime, sha256.
This change was prompted by my discovery that under DrivePool, two
files can have the same dev, ino pair. It's understandable but the fact
of the matter is I don't want to rely on inodes any more.
Hashing has the downside of speed, but considering the time investment
of tagging files in the first place I think it should be worthwhile.
2021-02-03 12:12:47 -08:00
voussoir 6048f0915d
Add relocate's summary to the main help text. 2021-01-28 17:06:14 -08:00
voussoir 0d918efe4c
Fix symlink pruning not checking for directory links. 2021-01-28 17:05:20 -08:00
voussoir 1511852e94
Use get_photos_from_args in export to reduce dupe code. 2021-01-28 17:04:38 -08:00
voussoir 60ac8116aa
Add delete command. 2021-01-28 17:03:19 -08:00
voussoir c4ea7c31ac
Add my usual format handler to logger under etq_cli. 2021-01-28 16:54:35 -08:00
voussoir bf601d7ab1
Pass LOG_LEVEL to closest_photodb. 2021-01-24 21:38:59 -08:00
voussoir 16f2517ca9 Add some example invocations to the helptext. 2021-01-15 00:34:15 -08:00
voussoir c3ec4f06a3 Improve "Try etiquette_cli init" message. 2021-01-15 00:02:24 -08:00
voussoir e5be26f8b0 Add PhotoDB.closest_photodb for frontend instantiation. 2021-01-09 15:42:16 -08:00
voussoir d1148d85db A few linting fixes. 2021-01-05 17:35:10 -08:00
voussoir 79c6af5d9b Add relocate command. 2021-01-03 02:58:18 -08:00
voussoir 9d048a5d88 Improve export_symlinks. 2021-01-01 17:02:03 -08:00
voussoir 94130e4803 Add betterhelp docstring. 2021-01-01 17:02:00 -08:00
voussoir 84b35c3eaa Only purge deleted files, empty albums within the cwd. 2021-01-01 17:02:00 -08:00
voussoir 968d84b3cb Add export_symlinks command. 2021-01-01 17:02:00 -08:00