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.
json powered youtube-dl #70
Comments
|
Not interested for now. While the code can be a bit simpler, most time is spent downloading the videos themselves. JSON may be used in the future, but we won't maintain two versions of the same code, which is the only sane way to provide backwards compatibility. |
Advantages:
Faster, less code, more options and data via the API.
One way of implementing this would be to have youtube-dl preform a try/except statement and attempt to import json when it is updating. If it does not throw an exception, then it will update to the json version. Otherwise it will update to the json-less version.
Another way would be to include the json code into youtube-dl, but this will increase the size, and probably include more if/else statements. Although once it detects json, it will be able to use it as normal.
This could be the way to provide compatibility with Python 2.5 while enhancing/optimizing
2.6+