From 83578f95ef480e070d46493e8a06e8ddd273743d Mon Sep 17 00:00:00 2001 From: Niklas Date: Sun, 15 Nov 2020 18:14:35 +0100 Subject: [PATCH] added tv streams --- .local/share/applications/tv.desktop | 10 +++++++++ .local/share/tv/tv-broken.csv | 2 ++ .local/share/tv/tv.csv | 31 ++++++++++++++++++++++++++++ .local/share/tv/tv.sh | 19 +++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 .local/share/applications/tv.desktop create mode 100644 .local/share/tv/tv-broken.csv create mode 100644 .local/share/tv/tv.csv create mode 100755 .local/share/tv/tv.sh diff --git a/.local/share/applications/tv.desktop b/.local/share/applications/tv.desktop new file mode 100644 index 0000000..c07100a --- /dev/null +++ b/.local/share/applications/tv.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] + +Type=Application +Version=1.0 +Name=TV streams +Comment=Watch free tv streams +Exec=/bin/sh -c "$HOME/.local/share/tv/tv.sh" +Icon=/usr/share/icons/Adwaita/512x512/mimetypes/video-x-generic.png +Terminal=false +Categories=AudioVideo diff --git a/.local/share/tv/tv-broken.csv b/.local/share/tv/tv-broken.csv new file mode 100644 index 0000000..2eebece --- /dev/null +++ b/.local/share/tv/tv-broken.csv @@ -0,0 +1,2 @@ +Sky Sport News,https://eventhlshttps-i.akamaihd.net/hls/live/263645/ssn-hd-https/index.m3u8 +ZDF Heute,https://zdfhls01-i.akamaihd.net/hls/live/743881/none/high/master.m3u8 diff --git a/.local/share/tv/tv.csv b/.local/share/tv/tv.csv new file mode 100644 index 0000000..1f9e663 --- /dev/null +++ b/.local/share/tv/tv.csv @@ -0,0 +1,31 @@ +ARD,https://mcdn.daserste.de/daserste/de/master.m3u8 +ZDF,http://zdf-hls-15.akamaized.net/hls/live/2016498/de/veryhigh/master.m3u8 +MTV,https://unilivemtveu-lh.akamaihd.net/i/mtvde_1@134922/master.m3u8 +Nick,https://unilivemtveu-lh.akamaihd.net/i/nickde_1@448749/master.m3u8 +Welt,https://live2weltcms-lh.akamaihd.net/i/Live2WeltCMS_1@444563/index_1_av-b.m3u8 +3sat,https://zdf-hls-18.akamaized.net/hls/live/2016501/dach/high/master.m3u8 +ARD Alpha,https://brlive-lh.akamaihd.net/i/bralpha_germany@119899/master.m3u8 +ARD One,https://onelivestream-lh.akamaihd.net/i/one_livestream@568814/master.m3u8 +Tageschau24,https://tagesschau-lh.akamaihd.net/i/tagesschau_3@66339/master.m3u8 +ARD Sportshow,https://ardevent2.akamaized.net/hls/live/681512/ardevent2_geo/master.m3u8 +ARTE,https://artelive-lh.akamaihd.net/i/artelive_de@393591/master.m3u8 +KiKa,https://kikageohls-i.akamaihd.net/hls/live/1006268/livetvkika_de/master.m3u8 +Phoenix,https://zdf-hls-19.akamaized.net/hls/live/2016502/de/high/master.m3u8 +ZDF info,https://zdf-hls-17.akamaized.net/hls/live/2016500/de/high/master.m3u8 +ZDF Neo,https://zdf-hls-16.akamaized.net/hls/live/2016499/de/high/master.m3u8 +BR,https://brlive-lh.akamaihd.net/i/bfsnord_germany@119898/master.m3u8 +HR,https://hrlive1-lh.akamaihd.net/i/hr_fernsehen@75910/master.m3u8 +MDR Sachsen-Anhalt,https://mdrsahls-lh.akamaihd.net/i/livetvmdrsachsenanhalt_de@513999/master.m3u8 +MDR Sachsen,https://mdrsnhls-lh.akamaihd.net/i/livetvmdrsachsen_de@513998/master.m3u8 +MDR Thüringen,https://mdrthuhls-lh.akamaihd.net/i/livetvmdrthueringen_de@514027/master.m3u8 +NDR Hamburg,https://ndrfs-lh.akamaihd.net/i/ndrfs_hh@430231/master.m3u8 +NDR Meck-Pom,https://ndrfs-lh.akamaihd.net/i/ndrfs_mv@430232/master.m3u8 +NDR Niedersachsen,https://ndrfs-lh.akamaihd.net/i/ndrfs_nds@430233/master.m3u8 +NDR Schleswig Holstein,https://ndrfs-lh.akamaihd.net/i/ndrfs_sh@430234/master.m3u8 +RBB Berlin,http://rbblive-lh.akamaihd.net/i/rbb_berlin@144674/master.m3u8 +RBB Brandenburg,http://rbblive-lh.akamaihd.net/i/rbb_brandenburg@349369/master.m3u8 +SR,http://srlive24-lh.akamaihd.net/i/sr_universal02@107595/master.m3u8 +SWR BW,https://swrbwhls-i.akamaihd.net/hls/live/667638/swrbwd/master.m3u8 +SWR RP,https://swrrphls-i.akamaihd.net/hls/live/667639/swrrpd/master.m3u8 +WDR,https://wdrfsgeo-lh.akamaihd.net/i/wdrfs_geogeblockt@530016/master.m3u8 +Bundestag,https://c13014-l-hls.u.core.cdn.streamfarm.net/1000153copo/live/app144277506/BTTV_1/QdoHEQIoadKSHi6oKEp5ziZ2q/J7ekv9+hgpBxTSy2G2KefdbYTKWe5R2gMXKyP0.m3u8 diff --git a/.local/share/tv/tv.sh b/.local/share/tv/tv.sh new file mode 100755 index 0000000..7400232 --- /dev/null +++ b/.local/share/tv/tv.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env sh +# https://wiki.ubuntuusers.de/Internet-TV/Stationen/ +set -eu -o pipefail + +SCRIPT=$(readlink -f "$0") +SCRIPTPATH=$(dirname "$SCRIPT") + +MAP="$SCRIPTPATH/tv.csv" + +cat "$MAP" \ + | cut -d ',' -f 1 \ + | rofi -dmenu -i -p "TV" \ + | head -n 1 \ + | xargs -i --no-run-if-empty grep "{}" "$MAP" \ + | cut -d ',' -f 2 \ + | head -n 1 \ + | xargs -i --no-run-if-empty /bin/mpv "{}" + +exit 0