Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube video starting with "-" doesn't work #77

Closed
maximushugus opened this issue Sep 6, 2024 · 2 comments
Closed

YouTube video starting with "-" doesn't work #77

maximushugus opened this issue Sep 6, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@maximushugus
Copy link

If you try to play a YouTube video through ytdlp2STRM with the starting with "-", it doesn't work.
For example this video : https://www.youtube.com/watch?v=-hEGNJ_Kiuc or https://www.youtube.com/watch?v=-d00jQcffHE

The logs say :

[2024-09-06 11:16:35.419953] youtube : [192.168.3.112] Playing -hEGNJ_Kiuc
[2024-09-06 11:16:35.804101] youtube : No manifest detected. Check your cookies config. 
* This video is age-restricted; some formats may be missing without authentication. Use --cookies-from-browser or --cookies for the authentication 
* Serving SD format. Please configure your cookies appropriately to access the manifest that serves the highest quality for this video

So as you can see it says it's age restricted (even if I don't think so). I have cookie setup correctly, no problem with other video.

I this this is a problem escaping the "-" at the start.
I tried encoding this caracter with "%2D" but it results in the same problem.

@fe80Grau fe80Grau added the bug Something isn't working label Sep 6, 2024
@fe80Grau fe80Grau self-assigned this Sep 6, 2024
@fe80Grau
Copy link
Owner

fe80Grau commented Sep 6, 2024

I've already seen the bug, it seems that yt-dlp is not able to process only the id when it starts with a hyphen. I've simply added the prefix with the full yt url and it works now. Check the latest commit 42556de, for the docker image it will take a while because I'm moving the docker environment to free up space and for now I can't generate the image and push it. As soon as it's ready I'll post it here.

@fe80Grau
Copy link
Owner

fe80Grau commented Sep 6, 2024

Pushed to Docker Hub

@fe80Grau fe80Grau closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants