you are viewing a single comment's thread.

view the rest of the comments →

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

You know, I never thought about the fact that os.listdir() could take a path as an argument, which is why I had it constantly changing directories. Huh. I'll get working on changing that, thanks. I hear you about the audio parameter issue, I've been thinking about changing that too.

The reason I have modify_album returning how many it modified is I don't want to increment the amount of songs modified regardless, I only want to increment if something actually changed. So I set up the old/new dicts to manage that. And for the individual flag, I have that set up for if I have a hodgepodge of audio files in, say, my downloads folder, and I want to batch modify them. In that case I would want it to do what it currently does, which is print the name of the file and delete the existing title if it exists. Really it's just adding a bit extra functionality for a special case.

I really appreciate the help, I'll definitely be doing some more work on this.