Comments (3)
I resolved the issue while trying to make a reproducible test!
I was making two different requests to youtube-dl, and the first one wasnt passing in cookies, only the second.
from youtube-dl-exec.
Hello,
Thanks for reporting. The command looks legit.
Unfortunately, I need a reproducible test for helping you, since that is a feature I'm not using.
What if you try to provide cookies as a header? from CLI docs, using --add-header FIELD:VALUE
from youtube-dl-exec.
I am having the same problem.
Nor cookies.txt, nor passing the header works.
Here is a relevant part of my code:
const process = ytdl.raw(
string,
{
o: '-',
// q: '',
v: '',
f: 'bestaudio[ext=webm+acodec=opus+asr=48000]/bestaudio',
r: '100K',
addHeader: 'LOGIN_INFO:AFmmF2swRAIgIbuQIwapdUbTUZ3MUJlM05aV0QzRDdxS3QxM2NZ',
},
{ stdio: ['ignore', 'pipe', 'pipe'] },
);
process.stderr.pipe(fs.createWriteStream('stderr.txt'));
const stream = process.stdout;
and here is an error from youtube-dl:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=7Do70nztRNE', '-o', '-', '-v', '-f', 'bestaudio[ext=webm+acodec=opus+asr=48000]/bestaudio', '-r', '100K', '--add-header', 'LOGIN_INFO:AFmmF2swRAIgIbuQIwapdUbTUZ3MUJlM05aV0QzRDdxS3QxM2NZ']
[debug] Adding header from command line option LOGIN_INFO:AFmmF2swRAIgIbuQIwapdUbTUZ3MUJlM05aV0QzRDdxS3QxM2NZ
[debug] Encodings: locale cp1251, fs mbcs, out cp1251, pref cp1251
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] 7Do70nztRNE: Downloading webpage
[youtube] 7Do70nztRNE: Refetching age-gated info webpage
WARNING: unable to download video info webpage: HTTP Error 410: Gone
ERROR: Sign in to confirm your age
This video may be inappropriate for some users.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 534, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\youtube.py", line 1713, in _real_extract
youtube_dl.utils.ExtractorError: Sign in to confirm your age
This video may be inappropriate for some users.
Header value is shortened here.
from youtube-dl-exec.
Related Issues (20)
- Webm to MP3 or other format HOT 1
- Selected folder paths for downloads not implemented HOT 1
- Missing python? or ?
- Can I get the channel profile picture? HOT 2
- using best option , it not always give that url which contains both video and audio of youtube link HOT 1
- "Error: /usr/bin/env: python3: No such file or directory" in Next.js Backend HOT 3
- Update / Install of 2.4.3+ fails with Node v16 due to preinstall script HOT 5
- YtResponse type is incomplete missing: automatic_captions and others HOT 3
- HLS link extraction using youtube-dl-exec instead of youtube-dl HOT 2
- Getting 404 Errors HOT 1
- Error running on electron on mac HOT 1
- Not working after hosting on server HOT 2
- Unable to extract after uploading the code to a server HOT 1
- Not working when a binary is on a path with space HOT 1
- youtubedl.exec is missing cancel() function HOT 10
- tinyspawn version conflict HOT 2
- This expression is not callable. HOT 1
- Does not work if there is a space anywhere in the path HOT 5
- Issue with Python Check HOT 2
- All downloads return 'undefined' HOT 3
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 youtube-dl-exec.