Fixed but when operating on a file list
This commit is contained in:
parent
66ce75cd9f
commit
2b4109de85
61
docsource/source/releasenotes/0.0.6-changelog.rst
Normal file
61
docsource/source/releasenotes/0.0.6-changelog.rst
Normal file
@ -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
|
||||
============
|
||||
@ -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 hasattr(self, "videos"):
|
||||
self.videos = dict()
|
||||
if not files or directories:
|
||||
return
|
||||
|
||||
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
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
from .tools import deletefile, findfreename
|
||||
import subprocess
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
|
||||
|
||||
import colorama
|
||||
colorama.init()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user