Sometimes when I download podcasts with newsbeuter+podbeuter I get files of the form:
Code:
filename.mp3?NonsenseString
Not sure why this occurs but I would like correct this for all files in my podcast directory. I.e for all files in ~/podcasts with filenames not ending in mp3 or ogg do the truncation:
Code:
mv filename.mp3?NonsenseString filename.mp3
And similarly for ogg files. For simplicity I think it's OK to completely disregard weird upper-lower-case permutations of '.mp3' and '.ogg'.
What is the most straightforward way of doing this?
EDIT: Just wanted to add an example:
2017-07-12-symhc-bill-berry.mp3?awCollectionId=1002&awEpisodeId=927933