Fixed issue with multiple files / folders
This commit is contained in:
parent
fc896ec34b
commit
35e6435f0c
@ -17,7 +17,9 @@ pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Usage
|
||||
./curator.py [list,convert] [-del] [-verbose] [-in:any,avi,mkv,wmv,mpg,mp4,m4v,flv,vid] [-filters:old,mpeg,mpeg4,x264,wmv3,wmv] [-out:mkv/mp4,x265/av1] [-dir/-file:/mnt/media/]
|
||||
./curator.py [list,convert] [-del] [-verbose] [-in:any,avi,mkv,wmv,mpg,mp4,m4v,flv,vid] [-filters:old,mpeg,mpeg4,x264,wmv3,wmv] [-out:mkv/mp4,x265/av1] [-dir/-file:"/mnt/media/",,"/mnt/media2/"]
|
||||
|
||||
> for multiple files or filenames use double comma separated values ",,"
|
||||
|
||||
default options are:
|
||||
-in:any
|
||||
|
||||
@ -39,7 +39,7 @@ def main():
|
||||
elif "-out:" in arg:
|
||||
outputs += arg[5:].split(",")
|
||||
elif "-dir:" in arg:
|
||||
directories += arg[5:].split(",")
|
||||
directories += arg[5:].split(",,")
|
||||
|
||||
|
||||
if sys.argv[1] == "list":
|
||||
@ -150,7 +150,7 @@ def get_videolist(parentdir, inputs = ["any"], filters = []):
|
||||
# Remove folders
|
||||
videolist_tmp = videolist
|
||||
videolist = [video for video in videolist_tmp if video.is_file()]
|
||||
|
||||
|
||||
# Filter the list for specifi codecs
|
||||
videolist_tmp = videolist
|
||||
print(f"{bcolors.OKGREEN}Filtering {len(videolist)} videos for the requested parameters{bcolors.ENDC}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user