diff --git a/docsource/source/releasenotes/0.0.6-changelog.rst b/docsource/source/releasenotes/0.0.6-changelog.rst new file mode 100644 index 0000000..49f02b3 --- /dev/null +++ b/docsource/source/releasenotes/0.0.6-changelog.rst @@ -0,0 +1,61 @@ +================================ +MediaCurator 0.0.6 Release Notes +================================ + + + +Highlights +========== + +Bugs fixes: +* Fixed bug with file list +* Fixed bug with class values +* Minor bug fixes +* Improved commenting +* Tested with ffmpeg 4.3.2 + +Dropped Support +=============== + + +Future Changes +============== + +* More filters +* Test AV1 Support +* Prepare API for GUI + +Compatibility notes +=================== + +Python Support +-------------- + +Mediacurator has been tested on Python 3.7 - 3.9 + +FFMPEG Support +-------------- + +Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to 4.3.2 + +OS Support +---------- + +Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows + +New Features +============ + + + +Improvements +============ + + +Changes +======= + + + +Deprecations +============ diff --git a/mediacurator/library/medialibrary.py b/mediacurator/library/medialibrary.py index d0d8f24..1e3cc32 100644 --- a/mediacurator/library/medialibrary.py +++ b/mediacurator/library/medialibrary.py @@ -19,31 +19,28 @@ class MediaLibrary(): Args: files = False : A list of video files directories = False : A list of directories containing videos directly or in the subdirectories - inputs = ["any"] : A list of filters on input FILES, defaults to keep any files - filters = [] : A list of filters to apply to the VIDEO + inputs = ["any"] : A list of filters to keep when browsing the directories + filters = [] : A list of filters to apply to the videos verbose = False : A list of print options Returns: ''' - self.directories = None - self.inputs = None - self.filters = None - self.videos = None + + if not files or directories: + return - if not hasattr(self, "videos"): - self.videos = dict() + self.directories = None + self.inputs = inputs + self.filters = filters + self.videos = dict() if files: for filepath in files: self.videos[filepath] = Video(filepath, verbose = verbose) - elif directories: + if directories: self.directories = directories - else: - return + self.load_directories(verbose = verbose) - self.inputs = inputs - self.filters = filters - self.load_videos(verbose = verbose) self.filter_videos(verbose = verbose) def __str__(self): @@ -61,7 +58,7 @@ class MediaLibrary(): text += f"MediaCurator is tracking {len(self.videos)} video files" return text - def load_videos(self, verbose = False): + def load_directories(self, verbose = False): ''' Scan folders for video files respecting the inputs requested by the user Save them to the videos dictionary diff --git a/mediacurator/library/video.py b/mediacurator/library/video.py index b85bcef..af27f53 100644 --- a/mediacurator/library/video.py +++ b/mediacurator/library/video.py @@ -4,9 +4,6 @@ from .tools import deletefile, findfreename import subprocess import os -import sys -import re - import colorama colorama.init()