47 Commits

Author SHA1 Message Date
4b1cf6c491 Fix movie size comparison.
Use largest movie pixel size (some movies have low res video streams
    embedded).
2021-12-25 09:30:55 -08:00
70174e9e49 Remove dashes and repeated spaces when comparing names for dupes. 2021-11-21 16:50:18 -08:00
b2ef1d3d3d Prefer higher resolution files. 2021-11-12 19:20:42 -08:00
708e44053e Ignore dashes and apostrophes when finding dupes. 2021-11-12 19:06:07 -08:00
37b4e1b4b2 Use parent envrc / default.nix. 2021-11-12 18:05:56 -08:00
4ba8e3e3ee Better error reporting when ffprobe fails. 2021-02-24 15:26:21 -08:00
872c1096a6 Better error log messaging. 2021-02-24 07:12:14 -08:00
7da8639881 Use TO_BE_REMOVED_DIR inplace of static string. 2021-02-21 09:42:21 -08:00
d4c94a5a3a Add default.nix & direnv. 2021-02-21 08:30:03 -08:00
db29d662c6 Use to-be-deleted path that works on sagan and nixos-05 2021-02-21 08:29:38 -08:00
d00d49135a Print suggested empty directory cleanup and clean lint. 2020-06-07 16:38:38 -07:00
18108b5d44 Print full path when suggesting moves. 2020-06-07 16:30:47 -07:00
8af62e313b Suggest rerunning empty-dirs if dupes found. 2020-05-10 07:52:54 -07:00
334d2a5e53 Add empty-dirs verb to find movie directories with no movies. 2020-03-29 15:46:33 -07:00
6a52f3c5b1 Remove dead code. 2019-12-14 16:08:38 -08:00
0714ae6f2f Remove eprintln. 2019-12-14 16:07:35 -08:00
96819d2437 Handle dateless movies when dated movie present. 2019-12-14 10:26:54 -08:00
b3ca6e1cb3 More logging when test fails. 2019-12-09 19:36:41 -08:00
da717aeae1 Handle missing display_aspect_ratio and movies differing only in case. 2019-12-04 21:31:23 -08:00
4d0ce2cd13 Fix parsing when no channel_layout present in audio config. 2019-12-04 20:47:24 -08:00
ab716f0398 Quote mv command so paths with ' work. 2019-11-25 09:34:48 -08:00
7f00c90003 Filter out stale metadata entries. 2019-11-25 09:26:04 -08:00
a2f17ed511 Print suggested 'delete' command for removing dupes. 2019-11-25 08:53:58 -08:00
150bdfddef Use bit rate instead of resolution in making dedup decision.
Keep lower resolution movie if it is higher bit rate.
2019-11-25 08:47:04 -08:00
974d9386fb Fix bug computing highest resolution video.
Update Command::PrintDupes.
2019-11-25 08:19:21 -08:00
8eafec7fd2 Collapse multipart movies into single Movie entity. 2019-11-24 11:01:46 -08:00
04585e8d24 Add is_multidisc, move big tests to separate module.
Started work on a method movie() that groups multipart movies together.
2019-11-23 08:30:07 -08:00
d2866bace7 Add a couple verbs and use tabwriter output. 2019-11-18 21:25:23 -08:00
13cc1b6d0d Lint and spelling cleanup. 2019-11-17 19:09:28 -08:00
ae369c0cd8 Move to new metadata model. 2019-11-08 19:40:21 -08:00
55e6d65b1c Handle case of missing metadata.json. 2019-11-04 20:31:20 -08:00
75956dd1ff Remove stale TODOs. 2019-11-04 20:24:52 -08:00
b77d61bbe6 Print movie length in human friendly time. 2019-11-04 20:23:45 -08:00
297124eedb Use relative path when running ffprobe.
Avoids problems where directory name starts with something that looks
like and unknown protocol, i.e. 'AVP: Alien vs. Predator (2004)'
2019-11-03 21:21:15 -08:00
6f579326b5 Cleanup lint. 2019-11-03 21:05:06 -08:00
8b809060ec Fix sample command.
Add largest_dimension and unitest.
Use const for metadata filenames.
2019-11-03 20:59:31 -08:00
185c3cde2d Add update-compact-metadata verb. 2019-11-03 20:10:17 -08:00
8b6223627e Skip encoding for subtitles when empty. 2019-11-03 19:59:28 -08:00
1c7ee3cfcc Restructed compact format. Properly include video, audio and subtitles. 2019-11-03 19:39:26 -08:00
9cc6a46cf5 Initial compact implementation. 2019-11-03 07:34:36 -08:00
bf9d5b7c11 Use ffprobe to load per-file metadata.
Build single metadata.json for whole library.
Have basic load into struct, a subset of useful fields fromt metadata.json.
2019-11-02 22:09:50 -07:00
86fbf78a73 Move code to lib.rs, update testdata. 2019-10-28 18:03:14 -07:00
30b91e0323 Move testdata. 2019-10-28 17:52:36 -07:00
188ed88582 Use relative paths. 2019-10-27 21:13:57 -07:00
4430d88398 Initial testdata commit. 2019-10-27 21:11:16 -07:00
956808d14a Turn into a structopt driven CLI. Functioning samples command. 2019-10-27 18:03:37 -07:00
7285436f7e Initial commit.
Walks over all movie directories, pulls some metadata into a hashmap and
then pretty prints it.
2019-10-27 16:51:09 -07:00