rg3/youtube-dl — pull request #1762 by dz0ny (2013-11-13 17:34:10+00:00)
Title: Fix filename extension leaking to json filename

Makes writeinfojson behaving exactly as writethumbnail in case where filename contains mediafile extension.

Case:

video.mp4 converted to music.mp3 would yield music.mp4.info.json instead music.mp3.info.json or music.info.json