emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (was Re: Adding a description text property for a track) non-free ja


From: Alexandre Garreau
Subject: Re: (was Re: Adding a description text property for a track) non-free javascript and ytdl
Date: Thu, 24 Mar 2022 16:16:05 +0100

Le merkredo, 23-a de marto 2022, 22-a horo kaj 14:01 CET Yuchen Pei a écrit :

> On Wed 2022-03-23 20:32:36 +0100, Alexandre Garreau wrote:

>

> 

>

> > I don’t see how GET/POST is related: you can use POST without any

> > _javascript_ (both POST and PUT existed before _javascript_), while for

> > youtube, even any GET statement provides nothing but a blank page,

> > and you need to execute _javascript_ to get anything.

>

> You can download a yt video by GET only:


my point about POST being unrelated to _javascript_ still holds;


> wget -O- 2>/dev/null https://youtube.com/watch?v=dQw4w9WgXcQ | grep -oP

> 'ytInitialPlayerResponse\s*=\s*(.+)\s*;</script>' | grep -o '\{.*\}' |

> jq .

>

> There you get a json with all the video / audio formats and their links.


actually that’s an interesting exemple because, as I said, this too actually amounts to interpreting a (although smaller) subset of _javascript_…


reply via email to

[Prev in Thread] Current Thread [Next in Thread]