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

Option to get non https urls only please? #2562

Closed
kokoko3k opened this issue Mar 14, 2014 · 3 comments
Closed

Option to get non https urls only please? #2562

kokoko3k opened this issue Mar 14, 2014 · 3 comments

Comments

@kokoko3k
Copy link

Hi, i develop a gui that plays youtube videos via mplayer and to do that, i rely on youtube-dl to get urls that i feed directly to mplayer.
Lately, more and more urls returned by youtube-dl are https ones.
That urls cannot be played by mplayer, since it lacks https support.

As a totally noob about python, i just tried that:
cp /path/to/youtube.py /path/to/youtube.py.bak
cat /path/to/youtube.py.bak | sed 's/https/http/' > /path/to/youtube.py

After that, every url returned by youtube-dl was "https free" and playable streams.

That makes me think that it would be possible for youtube-dl to return http urls; that's why i'm asking you to provide a way to do it without ugly sed hacks to the code :)

What do you think? Thanks for reading.

@phihag
Copy link
Contributor

phihag commented Mar 14, 2014

May I ask what's wrong with youtube-dl -o - | mplayer - ? I'd rather solve the problem of supporting a player generically than add a workaround would leak to the preference of unencrypted content.

@kokoko3k
Copy link
Author

Piping to mplayer makes seeking impossible; named pipes would be
better, but still the user would be unable to seek (too) forward.

Unfortunately i don't think mplayer would ever support https, there's
an open bug report from years ago...
I'm certainly not asking for youtube-dl to defaulting to non encrypted
connections; still a switch like -no-ssl would be very useful in this
particular case.

Please, consider it again...

2014-03-14 23:12 GMT+01:00, Philipp Hagemeister notifications@github.com:

May I ask what's wrong with youtube-dl -o - | mplayer - ? I'd rather solve
the problem of supporting a player generically than add a workaround would
leak to the preference of unencrypted content.


Reply to this email directly or view it on GitHub:
#2562 (comment)

@jaimeMF
Copy link
Collaborator

jaimeMF commented Mar 15, 2014

Closing as a duplicate of #2364.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants