From 106f4f2e12b78c1ff04078a1abf9a5f52f82bdbc Mon Sep 17 00:00:00 2001 From: Fabrice Quenneville Date: Thu, 5 Nov 2020 05:58:47 -0500 Subject: [PATCH] Added more codecs --- README.md | 2 +- curator.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 37be6b6..3538bf0 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ MediaCurator is a Python command line tool to manage a media database. ## Installation -This package will only work on Linux and requires FFMPEG installed. For now it will be distributed on github on [GitHub](https://github.com/fabquenneville/MediaCurator.git) +This package will only work on Linux and requires FFMPEG installed. For now it will be distributed on [GitHub](https://github.com/fabquenneville/MediaCurator.git) Installation: ```bash diff --git a/curator.py b/curator.py index 71a33da..0383465 100755 --- a/curator.py +++ b/curator.py @@ -115,13 +115,17 @@ def get_videolist(parentdir): # Filter the list for specifi codecs videolist_tmp = videolist print(f"Filtering {len(videolist)} videos for the requested parameters") + videolist = [] if "-old" in sys.argv: videolist += [video for video in videolist_tmp if get_codec(video) not in ["hevc", "av1"]] - if "-mpeg4" in sys.argv: + if "-mpeg4" in sys.argv or "-mpeg" in sys.argv: videolist += [video for video in videolist_tmp if get_codec(video) in ["mpeg4", "msmpeg4v3"]] + if "-mpeg" in sys.argv: + videolist += [video for video in videolist_tmp if get_codec(video) in ["mpeg1video"]] + if "-wmv3" in sys.argv: videolist += [video for video in videolist_tmp if get_codec(video) in ["wmv3"]]