Bug fix due to major bug in 0.0.11 where files where not properly marked for operation.
This commit is contained in:
parent
c56fc194af
commit
c0029cfe69
@ -20,7 +20,7 @@
|
||||
project = 'MediaCurator'
|
||||
copyright = '2020, Fabrice Quenneville'
|
||||
author = 'Fabrice Quenneville'
|
||||
version = '0.0.11'
|
||||
version = '0.0.12'
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
|
||||
@ -30,6 +30,7 @@ The source code can be found on `GitHub <https://github.com/fabquenneville/Media
|
||||
:maxdepth: 1
|
||||
:caption: Release Notes:
|
||||
|
||||
releasenotes/0.0.12-changelog
|
||||
releasenotes/0.0.11-changelog
|
||||
releasenotes/0.0.10-changelog
|
||||
releasenotes/0.0.9-changelog
|
||||
|
||||
@ -37,7 +37,7 @@ Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to
|
||||
OS Support
|
||||
----------
|
||||
|
||||
Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows
|
||||
Mediacurator has been tested to work on various GNU/Linux distributions as well as Windows
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
@ -10,14 +10,7 @@ Added support to mpeg filetype.
|
||||
Dropped Support
|
||||
===============
|
||||
|
||||
Future Changes
|
||||
==============
|
||||
|
||||
* More filters
|
||||
* Test AV1 Support
|
||||
* Prepare API for GUI
|
||||
|
||||
Compatibility notes
|
||||
Compatibility Notes
|
||||
===================
|
||||
|
||||
Python Support
|
||||
@ -33,13 +26,11 @@ Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to
|
||||
OS Support
|
||||
----------
|
||||
|
||||
Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows
|
||||
Mediacurator has been tested to work on various GNU/Linux distributions as well as Windows
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
|
||||
|
||||
Improvements
|
||||
============
|
||||
|
||||
@ -47,7 +38,12 @@ Improvements
|
||||
Changes
|
||||
=======
|
||||
|
||||
Future Changes
|
||||
==============
|
||||
|
||||
* More filters
|
||||
* Test AV1 Support
|
||||
* Prepare API for GUI
|
||||
|
||||
Deprecations
|
||||
============
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
========================================
|
||||
MediaCurator 0.0.1 Release Notes
|
||||
MediaCurator 0.0.11 Release Notes
|
||||
========================================
|
||||
|
||||
Improvements
|
||||
============
|
||||
Highlights
|
||||
==========
|
||||
|
||||
* Rectified a bug where MediaLibrary would encounter an error due to a missing directory.
|
||||
* Enhanced clarity by refining comments.
|
||||
* Improved code readability through cleanup and organization.
|
||||
* Ensured consistency and enhanced readability by adjusting variable names.
|
||||
Code improvements.
|
||||
|
||||
Dropped Support
|
||||
===============
|
||||
|
||||
Compatibility Notes
|
||||
====================
|
||||
@ -34,8 +34,10 @@ New Features
|
||||
Improvements
|
||||
============
|
||||
|
||||
* Added a changelog in .rst format.
|
||||
* Added verbose output to the convert method in the Video class for better visibility during the conversion process.
|
||||
* Rectified a bug where MediaLibrary would encounter an error due to a missing directory.
|
||||
* Enhanced clarity by refining comments.
|
||||
* Improved code readability through cleanup and organization.
|
||||
* Ensured consistency and enhanced readability by adjusting variable names.
|
||||
|
||||
Changes
|
||||
=======
|
||||
|
||||
50
docsource/source/releasenotes/0.0.12-changelog.rst
Normal file
50
docsource/source/releasenotes/0.0.12-changelog.rst
Normal file
@ -0,0 +1,50 @@
|
||||
========================================
|
||||
MediaCurator 0.0.11 Release Notes
|
||||
========================================
|
||||
|
||||
Highlights
|
||||
==========
|
||||
|
||||
Code improvements.
|
||||
|
||||
Dropped Support
|
||||
===============
|
||||
|
||||
Compatibility Notes
|
||||
====================
|
||||
|
||||
Python Support
|
||||
--------------
|
||||
|
||||
MediaCurator has been tested on Python 3.7 - 3.9.7.
|
||||
|
||||
FFMPEG Support
|
||||
--------------
|
||||
|
||||
MediaCurator has been tested to work with FFMPEG versions ranging from 4.1.6 to 4.4.1.
|
||||
|
||||
OS Support
|
||||
----------
|
||||
|
||||
MediaCurator has been tested to work on various GNU/Linux distributions as well as Windows.
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
Improvements
|
||||
============
|
||||
|
||||
* Rectified a bug where MediaLibrary would be unable to gather the videos to operate.
|
||||
|
||||
Changes
|
||||
=======
|
||||
|
||||
Deprecations
|
||||
============
|
||||
|
||||
Future Changes
|
||||
==============
|
||||
|
||||
* More filters
|
||||
* Test AV1 Support
|
||||
* Prepare API for GUI
|
||||
@ -37,7 +37,7 @@ Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to
|
||||
OS Support
|
||||
----------
|
||||
|
||||
Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows
|
||||
Mediacurator has been tested to work on various GNU/Linux distributions as well as Windows
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
@ -38,7 +38,7 @@ Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to
|
||||
OS Support
|
||||
----------
|
||||
|
||||
Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows
|
||||
Mediacurator has been tested to work on various GNU/Linux distributions as well as Windows
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
@ -41,7 +41,7 @@ Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to
|
||||
OS Support
|
||||
----------
|
||||
|
||||
Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows
|
||||
Mediacurator has been tested to work on various GNU/Linux distributions as well as Windows
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
@ -37,7 +37,7 @@ Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to
|
||||
OS Support
|
||||
----------
|
||||
|
||||
Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows
|
||||
Mediacurator has been tested to work on various GNU/Linux distributions as well as Windows
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
@ -33,7 +33,7 @@ Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to
|
||||
OS Support
|
||||
----------
|
||||
|
||||
Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows
|
||||
Mediacurator has been tested to work on various GNU/Linux distributions as well as Windows
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
@ -33,7 +33,7 @@ Mediacurator has been tested to work with FFMPEG versions ranging from 4.1.6 to
|
||||
OS Support
|
||||
----------
|
||||
|
||||
Mediacurator has been tested to work on various GNU/Linux distribution as well as Windows
|
||||
Mediacurator has been tested to work on various GNU/Linux distributions as well as Windows
|
||||
|
||||
New Features
|
||||
============
|
||||
|
||||
@ -6,9 +6,11 @@ from pathlib import Path
|
||||
from .video import Video
|
||||
from .tools import deletefile
|
||||
|
||||
# Import colorama for colored output
|
||||
import colorama
|
||||
colorama.init()
|
||||
|
||||
# Define color codes for colored output
|
||||
cgreen = colorama.Fore.GREEN
|
||||
creset = colorama.Fore.RESET
|
||||
|
||||
@ -73,10 +75,33 @@ class MediaLibrary():
|
||||
|
||||
for directory in self.directories:
|
||||
path = Path(directory)
|
||||
# Get all video filetypes
|
||||
for ext in ["wmv", "avi", "mkv", "mp4", "m4v", "flv", "mpg", "mpeg", "vid", "vob", "divx", "ogm", "webm"]:
|
||||
if ext in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob(f"*.[{ext.upper()}{ext.lower()}]"))
|
||||
# get all video filetypes
|
||||
if "wmv" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[wW][mM][vV]"))
|
||||
if "avi" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[aA][vV][iI]"))
|
||||
if "mkv" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[mM][kK][vV]"))
|
||||
if "mp4" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[mM][pP]4"))
|
||||
if "m4v" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[mM]4[vV]"))
|
||||
if "flv" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[fF][lL][vV]"))
|
||||
if "mpg" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[mM][pP][gG]"))
|
||||
if "mpeg" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[mM][pP][eE][gG]"))
|
||||
if "vid" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[vV][iI][dD]"))
|
||||
if "vob" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[vV][oO][bB]"))
|
||||
if "divx" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[dD][iI][vV][xX]"))
|
||||
if "ogm" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[oO][gG][mM]"))
|
||||
if "webm" in self.inputs or "any" in self.inputs or len(self.inputs) < 1:
|
||||
videolist += list(path.rglob("*.[wW][eE][bB][mM]"))
|
||||
|
||||
# Remove folders
|
||||
videolist_tmp = videolist
|
||||
|
||||
@ -7,16 +7,18 @@ import subprocess
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Import colorama for colored output
|
||||
import colorama
|
||||
colorama.init()
|
||||
|
||||
# Define color codes for colored output
|
||||
cgreen = colorama.Fore.GREEN
|
||||
cyellow = colorama.Fore.YELLOW
|
||||
cred = colorama.Fore.RED
|
||||
creset = colorama.Fore.RESET
|
||||
|
||||
def load_arguments():
|
||||
'''Get/load command parameters
|
||||
'''Get/load command parameters
|
||||
|
||||
Returns:
|
||||
dict: A dictionary containing lists of options passed by the user
|
||||
|
||||
@ -5,9 +5,11 @@ from .tools import deletefile, findfreename
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
# Import colorama for colored output
|
||||
import colorama
|
||||
colorama.init()
|
||||
|
||||
# Define color codes for colored output
|
||||
cyellow = colorama.Fore.YELLOW
|
||||
cred = colorama.Fore.RED
|
||||
creset = colorama.Fore.RESET
|
||||
|
||||
@ -37,8 +37,6 @@ def main():
|
||||
'''
|
||||
MediaCurator's main function
|
||||
|
||||
Args:
|
||||
|
||||
Returns:
|
||||
'''
|
||||
|
||||
@ -66,7 +64,6 @@ def main():
|
||||
else:
|
||||
print(f"{cred}ERROR: No files or directories selected.{creset}")
|
||||
return
|
||||
|
||||
|
||||
# Actions
|
||||
if sys.argv[1] == "list":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user