Skip to content

Instantly share code, notes, and snippets.

@chiefy
Last active October 22, 2024 21:08
Show Gist options
  • Save chiefy/608bfd8a82d2875d7d4c1b862b184b81 to your computer and use it in GitHub Desktop.
Save chiefy/608bfd8a82d2875d7d4c1b862b184b81 to your computer and use it in GitHub Desktop.
#!/bin/bash
channel=${1}
use_chromecast=${2:-"false"}
player="mpv"
#https://www.eplayer.to/daddylive.php?live=44&vw=100vw&vh=100vh
res=$(curl -kSs \
-H 'referer: https://daddylive.me/' \
"https://www.eplayer.to/daddylive.php?live=${channel}&vw=100vw&vh=100vh" | grep source | grep -Eo 'https://[^\"]+')
echo "Playing ${res}"
if [ "${use_chromecast}" == "true" ]; then
player="vlc --sout \"#chromecast\" --sout-chromecast-ip=192.168.1.194 --demux-filter=demux_chromecast"
fi
streamlink \
--http-no-ssl-verify \
--default-stream best \
--player ${player} \
--http-header "Referer=https://www.wmsxx.com/daddylive.php?live=${channel}&vw=100vw&vh=100vh" \
--http-header 'User-Agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36' \
--url ${res}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment