Skip to content

Instantly share code, notes, and snippets.

@cleanhands
Last active February 20, 2025 05:59
Show Gist options
  • Select an option

  • Save cleanhands/fa513185a419074d83c5b8eccbc333cd to your computer and use it in GitHub Desktop.

Select an option

Save cleanhands/fa513185a419074d83c5b8eccbc333cd to your computer and use it in GitHub Desktop.
PlutoTV on NextPVR in docker using maddox/pluto-for-channels with streamlink
<extras>
<channel name="{channel-name}">
<command>/config/nextpvr-extras-pluto.sh</command>
<args>{channel}</args>
</channel>
</extras>
#!/usr/bin/env bash
channel="${1}"
playlist="$(curl -sf "http://pluto.lan/playlist.m3u")"
stream="$(sed -n '/channel-number="'"${channel}"'"/{n;p;q;}' <<< $playlist)"
streamlink --stream-segment-threads 4 --ringbuffer-size 128M --stream-segment-timeout 1 --stream-segment-attempts 20 -O "${stream}" "best"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment