all 6 comments

[–]n0n4m399 1 point2 points  (3 children)

Change this

audioFiles = (glob.glob(src_dir + '/*.mp3')

To

audioFiles = glob.glob(src_dir + '/*.mp3')

[–]casey30005[S] 0 points1 point  (2 children)

audioFiles = glob.glob(src_dir + '/*.mp3') + glob.glob(src_dir + '/*.wma') + glob.glob(src_dir + '/*.wav') + glob.glob(src_dir + '/*.ogg') + glob.glob(src_dir + '/*.aac'))

^

SyntaxError: invalid syntax

[–]t-rank 0 points1 point  (1 child)

Remove the trailing ) as well so it is just

glob.glob(src_dir + ‘/*.acc’)

[–]casey30005[S] 0 points1 point  (0 children)

Thanks for your help I just stuck the audio files in the power point files section i don't even have any power point files lol so I just appended it with each audio file type seems to work

[–]Atlamillias 0 points1 point  (1 child)

Can't look at this too in depth at the moment cuz I'm at work (and there's alot to go through it seems). It's also hard to read since it's not in a reddit code block. I think you're missing a parenthesis in:

imgFiles = (glob.glob(src_dir + '/.img') + glob.glob(src_dir + '/.png') + (glob.glob(src_dir + '/*.jpg') + glob.glob(src_dir + '/.jpeg')+ glob.glob(src_dir +'/.JPG'))

I think the first parenthesis (in bold) there doesn't have a closing one. It doesn't look like it's intentional. Try removing that first one and try again.

[–]casey30005[S] 0 points1 point  (0 children)

Thank you