diff --git a/docsource/build/doctrees/environment.pickle b/docsource/build/doctrees/environment.pickle index b710ef3..7785364 100644 Binary files a/docsource/build/doctrees/environment.pickle and b/docsource/build/doctrees/environment.pickle differ diff --git a/docsource/source/conf.py b/docsource/source/conf.py index 2f72bee..c94dfa0 100644 --- a/docsource/source/conf.py +++ b/docsource/source/conf.py @@ -20,7 +20,7 @@ project = 'MediaCurator' copyright = '2020, Fabrice Quenneville' author = 'Fabrice Quenneville' - +version = '0.0.1' # -- General configuration --------------------------------------------------- @@ -51,4 +51,4 @@ html_theme = 'alabaster' # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] html_logo = '_static/mclogo4x.png' -html_favicon = '_static/favicon.ico' \ No newline at end of file +html_favicon = '_static/favicon.ico' diff --git a/mediacurator/library/bcolors.py b/mediacurator/library/bcolors.py index 328687a..126346d 100644 --- a/mediacurator/library/bcolors.py +++ b/mediacurator/library/bcolors.py @@ -1,7 +1,9 @@ #!/usr/bin/env python3 -'''Its a video!''' +'''Fancy colors!''' class BColors: + ''' from https://stackoverflow.com/questions/287871/how-to-print-colored-text-in-python ''' + HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' diff --git a/mediacurator/library/medialibrary.py b/mediacurator/library/medialibrary.py index 030552b..d871927 100644 --- a/mediacurator/library/medialibrary.py +++ b/mediacurator/library/medialibrary.py @@ -42,6 +42,7 @@ class MediaLibrary(): def __str__(self): ''' print ''' + if self.directories: text = f"MediaCurator is watching the following directories: " text += '\n '.join(map(str, self.directories)) + '\n' @@ -93,6 +94,7 @@ class MediaLibrary(): def filter_videos(self, verbose = False): ''' Mark useless videos in the videos dictionary (default is useful) ''' + print(f"{BColors.OKGREEN}Filtering {len(self.videos)} videos for the requested parameters{BColors.ENDC}") for filepath in self.videos: @@ -148,7 +150,7 @@ class MediaLibrary(): def unwatch(self, filepath, delete = False): ''' remove a video from the index and delete it if requested''' - # If the user wanted to delete the film and + if delete: deletefile(filepath) try: diff --git a/mediacurator/library/video.py b/mediacurator/library/video.py index c45d850..de3a306 100644 --- a/mediacurator/library/video.py +++ b/mediacurator/library/video.py @@ -12,7 +12,7 @@ class Video(): path = str() filename_origin = str() - filesize = int(0) + filesize = int() filename_new = str() filename_tmp = str() useful = bool()