A new (updated and hopefully stable) distribution of files is located at the bottom of this post.
New in this release:
1) I have introduced an auto-updating feature that automatically updates YouTube video signature decryption code as needed. This feature will work as follows:
- When your site users try to convert an encrypted video, and the decryption code in my software fails (and the conversion subsequently fails), then the software will poll my remote server and check for a new decryption code update.
- If the software on your server has the most recent update, then I will immediately be notified that the current decryption code is malfunctioning, and I will start working on a fix. (In other words, we have a detection mechanism here that facilitates faster response times from me with respect to fixing decryption code problems.)
- For the length of time that the software decryption code is failing, and no updated version is available, the code will continue to check for new updates every hour until it finds one. (During this time, you will not be able to convert encrypted videos. But some amount of downtime is unavoidable here between updates. The goal is to minimize the downtime.)
- When the software detects that an update is available, it will download the relevant code from my server and automatically update the new UtilityFunctions.class.php file (which is where the decryption code is now located).
The existing YouTubeToMp3Converter.class.php file was modified, and UtilityFunctions.class.php and software.xml were added. There should be no need to edit either UtilityFunctions.class.php or software.xml, and thus modifying those files is strongly discouraged.
Both UtilityFunctions.class.php and software.xml should be set to chmod 0777, or the lowest permissions possible that still enable programmatic modification of those files.
As always, please let me know if you have any questions/concerns regarding the above and/or the code.