We're a place where coders share, stay up-to-date and grow their careers.
I would suggest adding two lines to save the MP3 file to the same location and name as the PDF file.
from os.path import splitext
outname = splitext(filelocation)[0] + '.mp3'
then use:
final_file.save(outname)
That would be a nice add!
Oh, fantastic! I was looking to add this by myself but I don't know python coding. Thanks for bringing it up!
I would suggest adding two lines to save the MP3 file to the same location and name as the PDF file.
from os.path import splitext
outname = splitext(filelocation)[0] + '.mp3'
then use:
final_file.save(outname)
That would be a nice add!
Oh, fantastic! I was looking to add this by myself but I don't know python coding. Thanks for bringing it up!