split youtube-dl on several modules #22

Closed
opened 2026-02-20 20:59:54 -05:00 by deekerman · 2 comments
Owner

Originally created by @vvavrychuk on GitHub (Dec 5, 2010).

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?

Originally created by @vvavrychuk on GitHub (Dec 5, 2010). 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?
Author
Owner

@rg3 commented on GitHub (Dec 5, 2010):

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.

@rg3 commented on GitHub (Dec 5, 2010): 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.
Author
Owner

@vvavrychuk commented on GitHub (Dec 5, 2010):

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.

@vvavrychuk commented on GitHub (Dec 5, 2010): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#22
No description provided.