View Single Post
Old 12-19-2012, 11:14 PM   PM User | #577
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
To those of you that may have "customized" the code in the PHP converter class (regardless of which version of my code you're using):

The point of putting all of the functionality related to video conversion into a PHP class is to take advantage of one of the fundamental advantages of an object-oriented programming (OOP) design: code abstraction. So you put all of your fundamental logic in a "base" PHP class, and then any customization of those classes can be achieved in inherited classes (via overriding class members). Subsequently, the base class doesn't need to be edited.

In the context of my code, the base PHP class is YouTubeToMp3Converter.class.php or VideoConverter.class.php (depending on what version you have). In relation to the recent fix, if you need to customize this class, you can extend it with your own class that overrides the SetFlvUrls() or SetVidSourceUrls() methods (again, depending on what version you have). And you don't have to edit the base class.

The moral of the story here is that you can customize my code without editing the core class code. And if you edit the core class code, then you make it harder for yourself to embrace newer versions of the software.

Regarding the recent fix, the only code that changes is in the SetFlvUrls() or SetVidSourceUrls() methods. The sole purpose of these methods is to retrieve an array of video URLs that can be used for conversion. So forgive me if I am having a hard time understanding why you would want to "customize" that functionality? And if you did need to customize something there, please don't change the code directly in the conversion class. Extend the class with your own class and make your changes in your custom class.

All of this taken into consideration, if you need any further help (from me) applying the fix to your custom/modified code, then I will have to charge you for the work and time spent.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote