Ready to work on convert
This commit is contained in:
parent
108a8a083f
commit
39b7c137a0
@ -68,36 +68,13 @@ def main():
|
|||||||
|
|
||||||
# Actions
|
# Actions
|
||||||
if sys.argv[1] == "list":
|
if sys.argv[1] == "list":
|
||||||
|
|
||||||
for filepath in medialibrary.videos:
|
for filepath in medialibrary.videos:
|
||||||
if medialibrary.videos[filepath].useful:
|
if medialibrary.videos[filepath].useful:
|
||||||
print(medialibrary.videos[filepath])
|
print(medialibrary.videos[filepath])
|
||||||
#print(self.videos[filepath])
|
# TODO delete file when -del
|
||||||
# if any("-files" in argv for argv in sys.argv):
|
|
||||||
# pass
|
|
||||||
# elif any("-dir" in argv for argv in sys.argv):
|
|
||||||
# videolist = []
|
|
||||||
# for directory in directories:
|
|
||||||
# videolist += get_videolist(directory, inputs, filters)
|
|
||||||
# videolist.sort()
|
|
||||||
# for video in videolist:
|
|
||||||
# print(f"{get_codec(video)} - {get_print_resolution(video)} - {get_size(video)}mb - {video}")
|
|
||||||
# if len(filters) > 0 and "fferror" in filters:
|
|
||||||
# print(f"{BColors.WARNING}WARNING: {get_fferror(video)}{BColors.ENDC}")
|
|
||||||
|
|
||||||
# else:
|
|
||||||
# print(f"{BColors.FAIL}Missing directory: {BColors.ENDC}")
|
|
||||||
elif sys.argv[1] == "test":
|
elif sys.argv[1] == "test":
|
||||||
pass
|
print(medialibrary)
|
||||||
# if any("-files" in argv for argv in sys.argv):
|
exit()
|
||||||
# pass
|
|
||||||
# elif any("-dir" in argv for argv in sys.argv):
|
|
||||||
# print(medialibrary)
|
|
||||||
# #print(f"directories = {directories}, inputs = {inputs}, filters = {filters}, outputs = {outputs}")
|
|
||||||
# exit()
|
|
||||||
# else:
|
|
||||||
# print("{BColors.FAIL}Missing directory: {BColors.ENDC}")
|
|
||||||
|
|
||||||
|
|
||||||
elif sys.argv[1] == "convert":
|
elif sys.argv[1] == "convert":
|
||||||
pass
|
pass
|
||||||
|
|||||||
@ -46,9 +46,11 @@ class MediaLibrary():
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
''' print '''
|
''' print '''
|
||||||
text = f"MediaCurator watching: "
|
|
||||||
if self.directories:
|
if self.directories:
|
||||||
text += f"{', '.join(map(str, self.directories))}"
|
text = f"MediaCurator is watching the following directories: "
|
||||||
|
text += '\n '.join(map(str, self.directories)) + '\n'
|
||||||
|
text += f"MediaCurator is tracking {len(self.videos)} video files"
|
||||||
|
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def load_videos(self):
|
def load_videos(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user