[FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

Reino Wijnsma rwijnsma at xs4all.nl
Thu Apr 14 01:15:16 EEST 2022


On 2022-04-13T23:49:26+0200, Reino Wijnsma <rwijnsma at xs4all.nl> wrote:
> Or minified:
>
> $ xidel -s "http://www.freeintertv.com/view/id-2565" -e 'x:request({"post":request-combine((),{"chname":string-to-base64Binary(extract(//meta[@property="og:image"]/@content,"([a-z_]+)\.jpg",1)),"ch":"http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online","html5":"11"})/substring(url,2),"url":"http://www.freeintertv.com/myAjax/get_item_m3u8/"})/extract(raw,"http.+m3u8")'
Alternatively, instead of using x:request() in-query, you could use the command-line option --post / -d, which I guess more resembles curl:

$ xidel -s -d '{request-combine((),{"chname":string-to-base64Binary(doc("http://www.freeintertv.com/view/id-2565")//meta[@property="og:image"]/extract(@content,"([a-z_]+)\.jpg",1)),"ch":"http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online","html5":"11"})/substring(url,2)}' "http://www.freeintertv.com/myAjax/get_item_m3u8/" -e 'extract($raw,"http.+m3u8")'

$ xidel -s \
  -d '{
    request-combine(
      (),
      {
        "chname":string-to-base64Binary(
          doc("http://www.freeintertv.com/view/id-2565")//meta[@property="og:image"]/
          extract(@content,"([a-z_]+)\.jpg",1)
        ),
        "ch":"http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online",
        "html5":"11"
      }
    )/substring(url,2)
  }' \
  "http://www.freeintertv.com/myAjax/get_item_m3u8/" \
  -e 'extract($raw,"http.+m3u8")'

-- 
Reino



More information about the ffmpeg-user mailing list