Closed brianmangan closed 6 years ago
Sure thing, man. Adding this to my to-do list!
see pull request with feature added. sorry about the reformat.. stupid pycharm thinks it knows better.
I will take a look at this very soon. Just uploaded my refactored code at the exact same time you sent the pull-request - crazy timing :)!
I see... well that blows everything out of the water I was doing..
here is what I added, but since you refactor.. you can copy paste...
New Global Variables
output_to_subfolder = True
output_subfolder = 'output'
New Function:
def generateOuput_filename(fileName, extension, numFiles):
if output_to_subfolder:
if not os.path.isdir(output_subfolder):
os.makedirs(output_subfolder)
return os.path.join(output_subfolder, os.path.splitext(fileName)[0] + '_' + str(numFiles) + '.' + extension)
Changing the output file name value to use new fuction
fileName_webm = generateOuput_filename(fileName=fileName, extension='webm', numFiles=numFiles)
See #4 for feature being added.
needs UI changes to make it official, but this works for now.. lemme know what you think.
resolved by #4
Closing
like the topic says,
Add checkbox option to put output files in sub folder.
/WEBMARIZER/ would be appropriate.