Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
split youtube-dl on several modules #29
Comments
|
Sorry, but that won't happen. I want users to be able to simply download a single file to deploy the program on any platform. Your approach defeats the purpose, and the codebase is small. |
|
Sure, user will be able to download single youtube-dl. Thats why setup.py is needed. Upon every release you can update youtube-dl by calling 'python setup.py' which will combine all *.py to youtube-dl. Then you can put youtube-dl to website repository. Final desicion is of course after you. Please treat this issues just as a suggestion. |
It is worth to split youtube-dl on several modules, e.g. youtube.py, metacafe.py, dailymotion.py and so on. Then it is possible to add "makefile" which will combine those files into youtube-dl file.
This approach is applied in https://github.com/sstephenson/prototype library for example.
As a rakefile analogue can be used distutils, scons.
By splitting youtube-dl it will be more easy to read, more easy to merge and source will not blow up in the case of adding support of lots new sites.
What do you think?