Skip to content

Instantly share code, notes, and snippets.

@dardo82
Last active Mar 8, 2021
Embed
What would you like to do?
Save $1 secs of RTV38 stream
#! /bin/sh
# Saves a given number of seconds of the RTV38 live stream.
PLURL="http://streamcdng18-845d8509d2cb4f249dd0b2ae5755b6c2.msvdn.net/live/S12268608/CXHH7K39hg9K/playlist.m3u8"
DATE="$(date +%F)"; timeout -15 $1 youtube-dl -o $DATE $PLURL; mv -v $DATE.{part,mp4}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment