prior way of getting filename and extension was unreliable and would often cause weird naming issues for the output folder.
Fixed now.
>>> filename = '\\server\share\movies\my_super_duper_movie.mp4'
>>> filename.split('/')[-1] #this is the old way
'\\server\\share\\movies\\my_super_duper_movie.mp4'
>>> from pathlib import Path
>>> Path(filename).name
'my_super_duper_movie.mp4'
>>> Path(filename).suffix
'.mp4'
eg
\\server\share\file.mp4
prior way of getting filename and extension was unreliable and would often cause weird naming issues for the output folder. Fixed now.
also unified the way we get the file extension