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
small readme update #863
small readme update #863
Conversation
🤔 |
doesn't work on mac + not shell + ratio |
#!/bin/sh
base="https://ustvgo.tv/"
selection=$(curl -s "$base"|sed 's_<li>_\n_g'|sed -nE 's_.*a href="([^"]*)">([^<]*) <.*_\1\t\2_p'|
fzf --with-nth 2.. --reverse --header "Select a channel to watch" --height=40% --border)
title=$(printf "%s" "$selection"|cut -f2)
url=$(printf "%s" "$selection"|cut -f1)
iframe=$(curl -s "$url"|sed -nE "s_.*iframe src='([^']*)'.*_\1_p")
hls_link=$(curl -s -e "$url" "$base$iframe"|sed -nE "s@.*hls_src='([^']*)'.*@\1@p")
[ -z "$hls_link" ] && echo "No HLS link found" && exit 1
mpv --force-media-title="$title" "$hls_link" you can even write an alias for this, it's not hard to make it even shorter, i only made it more verbose so it's more understandable and readable |
Yeah, it's an inferior lobster. |
tv-cli is for live tv channels, not movies & tv shows. i just don't see why python would be necessary, it's very basic |
added to my todo list |
will rewrite ig |
https://github.com/Spaxly/tv-cli now in shell script. |
Oh, if it's for live tv channels sure |
title