tim-smart/userscripts — pull request #2 by kriminkillr21 (2012-06-11 19:03:17+00:00)
Title: Fixed bug in YouTube caption downloader

I noticed there was a piece of the code built to tell the user that there were no captions however it wasn't operational. I then noticed that there was a system built to detect how many language options there were. I moved the piece of code that was built to inform the user of the lack of captions to below the part built to detect the number of languages. I then built the if statement to detect when there were 0 languages and Voila, bug fixed.