Comments (5)
same issue here, I can't use youtubedl-android because of this. but I didn't understand @CookieJarApps 's fix, where can I find the
lazy_extractors
file and how can I use this in my android app? I'm kind of a beginner at android stuff :|
or shall I just wait for a fix?
Basically, the version of youtube-dl bundled into youtubedl-android no longer works with YouTube, and if you update the youtube-dl version in the library, it updates to the broken version in this repo, which is missing a function and import in the lazy_extractors.py file.
The lazy_extractors.py file is generated by this project and added to a zip with the rest of the youtube-dl files as releases ('youtube_dl.zip' in releases) in this repo every time there's an update in the youtube-dl repo. When the youtubedl-android library updates, this zip file is what it downloads.
I took the latest version of the file from this repo, and added the missing code to the lazy_extractors.py. The zip file is here: https://github.com/CookieJarApps/VideoDL/blob/master/app/src/main/res/raw/youtube_dl.zip
Putting it into the /res/raw/ folder of your youtubedl-android project will override the built-in version in the library and (as long as you don't let the user update youtube-dl within the app) will act as a temporary fix until either youtube-dl or the author of this repo fixes the issue.
from youtubedl-lazy.
Importing compat_parse_qs
from compat.py and replacing parse_qs
with compat_parse_qs
in the lazy_extractors
file fixes the issue and downloads videos correctly. It seems to have been caused by this commit at youtube_dl. The suitable
function has been changed to require parse_qs
, which is defined elsewhere in the file. The suitable
function is added to the lazy_extractors file by the script in release.sh, but not the parse_qs
function.
from youtubedl-lazy.
same issue here, I can't use youtubedl-android because of this. but I didn't understand @CookieJarApps 's fix, where can I find the lazy_extractors
file and how can I use this in my android app? I'm kind of a beginner at android stuff :|
or shall I just wait for a fix?
from youtubedl-lazy.
defined elsewhere in the file. The
suitable
function is added to the lazy_extractors file by the script in release.sh, but not theparse_qs
function.
Yes that's right.
same issue here, I can't use youtubedl-android because of this. but I didn't understand @CookieJarApps 's fix, where can I find the
lazy_extractors
file and how can I use this in my android app? I'm kind of a beginner at android stuff :|
or shall I just wait for a fix?
Like @CookieJarApps he said in the comment above.
For me I've built youtube-dl manually and it works for me without any problem, also check my fork https://github.com/xibr/youtubedl-lazy/releases/tag/2021.04.17 is built without lazy_extractors.py file and it works.
from youtubedl-lazy.
Anyone can make a fork and modify some lines in youtubedl-lazy and youtubedl-android
from youtubedl-lazy.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtubedl-lazy.