You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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+
The text was updated successfully, but these errors were encountered:
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+
The text was updated successfully, but these errors were encountered: