sweez selector fuer tvheadend
Spoiler anzeigen
#!/bin/bash
# maximale aufloesung. 1920 1280 ..
_res_want=1920
# stream sprache in dieser reihenfolge suche
_aud_want="de en fr"
# wo soll die m3u8 gespeichert werden
_m3u8_path=/data/config/sweez.m3u8
# wo findet tv headend denn stream script
_sweez_select=/config/sweez-select.sh
###### hier nicht aendern #######
channels=$(curl -sL 'https://sweez.tv/api/mobile/channels' | jq -r '.[]|select(.channel_encrypted==false and .channel_number<600)|.channel_epg')
echo '#EXTM3U' > "$_m3u8_path"
for c in $channels
do
echo -n "$c: "
_r=$(curl -LIs -w "%{http_code}" -o /dev/null https://viamotionhsi.netplus.ch/live/eds/$c/browser-HLS8/$c.m3u8)
if [ ! "$_r" == "200" ]
then
echo "skipping $c. missing on server"
continue
else
echo ok
fi
echo "#EXTINF:-1,$c" >> "$_m3u8_path"
echo pipe://bash "'$_sweez_select'" "'$_res_want'" "'$_aud_want'" "'https://viamotionhsi.netplus.ch/live/eds/$c/browser-HLS8/$c.m3u8'" "'$c'" >> "$_m3u8_path"
done
Alles anzeigen
Spoiler anzeigen
_res_want=1280
_aud_want="de en fr"
_m3u8_path=/data/config/sweez.m3u8
_sweez_select=/config/sweez-select.sh
channels=$(curl -sL 'https://sweez.tv/api/cache/epglive/'|jq -r 'keys|.[]')
echo '#EXTM3U' > "$_m3u8_path"
for c in $channels
do
echo -n "$c: "
_r=$(curl -LIs -w "%{http_code}" -o /dev/null https://viamotionhsi.netplus.ch/live/eds/$c/browser-HLS8/$c.m3u8)
if [ ! "$_r" == "200" ]
then
# try next
_c_n=${c/fast_/}
_r=$(curl -LIs -w "%{http_code}" -o /dev/null "https://ntg-netplus-content.netgemplatform.net/api/channels?id=$_c_n&contentType=hls")
if [ ! "$_r" == "200" ]
then
echo not found.
continue
else
echo ok second url
echo '#EXTINF:0001 tvg-id="'"$c"'" tvg-logo="https://picserve.netplus.ch/channels/'"$c"'.png", '"$_c_n" >> "$_m3u8_path"
echo pipe://bash "'$_sweez_select'" "'$_res_want'" "'$_aud_want'" "'https://ntg-netplus-content.netgemplatform.net/api/channels?id=$_c_n&contentType=hls'" "'$_c_n'" >> "$_m3u8_path"
continue
fi
else
echo ok
fi
echo '#EXTINF:0001 tvg-id="'"$c"'" tvg-logo="https://picserve.netplus.ch/channels/'"$c"'.png", '"$c" >> "$_m3u8_path"
echo pipe://bash "'$_sweez_select'" "'$_res_want'" "'$_aud_want'" "'https://viamotionhsi.netplus.ch/live/eds/$c/browser-HLS8/$c.m3u8'" "'$_c_n'" >> "$_m3u8_path"
done
Alles anzeigen
Spoiler anzeigen
#!/bin/bash
_res_want=$1
_aud_want=($(echo $2))
_url="$3"
_name="$4"
_res_index=0
_aud_index=0
_json=$(ffprobe -v quiet -print_format json -show_format -show_streams "$_url")
_res_indexs=($(echo "$_json"|jq -r '.streams|.[]|select(.width!=null)|.width'))
_res_sorts=($(echo "$_json"|jq -r '.streams|.[]|select(.width!=null)|.width'|sort -n))
_aud=($(echo "$_json"|jq -r '.streams|.[]|.tags.language//empty'))
for i in ${_res_sorts[@]}
do
if [ $i -le $_res_want ]
then
_count=0
for ii in ${_res_indexs[@]}
do
_res_index=$_count
if [ "$ii" == "$i" ]; then break; fi
_count=$((_count+1))
done
fi
done
for i in ${_aud_want[@]}
do
_count=0
for ii in ${_aud[@]}
do
if [ "$i" == "$ii" ]
then
_aud_index=$_count
break 2
fi
_count=$((_count+1))
done
done
ffmpeg -loglevel fatal -i "$_url" -map 0:v:$_res_index -map 0:a:$_aud_index -ignore_unknown -c:a copy -c:v copy -f mpegts -metadata service_name=$_name -
Alles anzeigen
- sender aufloesungen und audio spuren
Spoiler anzeigen
Spoiler anzeigen
3sathd
6ter
aljazeera
artehd
bbc2
bbc3cbbc
bbc4cbeebies
bbcworld
bfmbusiness
bfmtv
bloomberg
bluezoomde
bluezoomfr
bralpha
brhdsud
bvn
canal9
canalalphaju
canalalphane
canale5
channel4
channel5
cherie25
cnbc
cnn
comedycentralnick
d17
daserstehd
disneychannelde
euronews
eurosportde
fashiontv
film4
france24
france2hd
france3hd
france4hd
france5hd
franceinfo
gulli
hd1
hr
italia1
itele
itv2
itv3
itv4
kanal9
kikahd
kto
la7
la7d
latele
lci
lcp
lemanbleu
lequipe21
lfmtv
m6hd
maxtv
mdr
n24
ndr
nrtv
nt1
ntv
numero23
onetv
orf1
orf2
phoenixhd
rai1
rai2
rai3
raigulp
rederecordinternacional
rete4
rmcdecouverte
rougetv
rsila1hd
rsila2hd
rtl
rtl2
rtlnitro
rtpi
rts1hd
rts2hd
skynews
sport1
srf1hd
srf2hd
srfinfo
superrtl
swrbw
tele5
telebaern
telebielingue
teleswizz
tf1hd
tmc
tv24
tv5mondefbs
tv8montblanc
tveinternacional
tvm3
tvsuisseplus
valtv
vox
w9
wdrhd
zdfhd
zdfinfohd
zdfneohd
Alles anzeigen
Spoiler anzeigen
2mmaroc
3sathd
6ter
ab1
ab3
alarabiya
aljazeera
almaghribia
almasriyah
andaluciatelevision
animaux
anixe
aragontv
artehd
atv
bbc2
bbc3cbbc
bbc4cbeebies
bbcworld
bfmbusiness
bfmtv
bloomberg
bluezoomde
bluezoomfr
bntworld
bralpha
brhdsud
bvn
canal24horas
canal9
canalalgerie
canalalphaju
canalalphane
canale5
canaleit
canalj
canalplusclair
cartoonnetwork
cctv4
cctvnews
channel4
channel5
cherie25
cnbc
cnn
comedycentral
comedycentralnick
d17
daserstehd
deluxemusic
disneychannelde
dmax
dmaxitalia
dmsat
duna
ert3
escales
eurod
euronews
eurosportde
fashiontv
fast_adn
fast_automotions
fast_billiardtv
fast_boxingtv
fast_cinenanar
fast_coeurocean
fast_ducktvfr
fast_emotionl
fast_fightnetwork
fast_fighttv
fast_fite
fast_foosballtv
fast_frequencenovelas
fast_fueltv
fast_horseandcountry
fast_horsetv
fast_impactwrestling
fast_justforlaughs
fast_lemeilleurdarthur
fast_lemeilleurdelatvrealite
fast_lesanges
fast_lessecretsdenosregions
fast_leszamours
fast_motoamericatv
fast_museumtv
fast_myzentv
fast_nauticalchannel
fast_quiveutgagnerdesmillions
fast_rugbyzone
fast_screamin
fast_thedriveinchannel
fast_theexplorers
fast_tv5mondeinfofr
fast_tv5mondeplusvoyagefr
fast_voyagesplus
fast_worldpokertour
film4
foodnetwork
france24
france2hd
france3hd
france4hd
france5hd
franceinfo
gameone
gulli
hd1
hr
hrt4
italia1
itele
itv2
itv3
itv4
kanal9
kikahd
kto
la7
la7d
latele
lci
lcp
lemanbleu
lequipe21
lfmtv
m6hd
maxtv
mdr
mezzo
monacotv
more4
mtvfrance
n24
ndr
nhk
nove
nrtv
nt1
ntv
numero23
onehd
onetv
orf1
orf2
paramount
phoenixhd
planeteplus
rai1
rai2
rai3
raigulp
rainews
raiscuola
raisport1
raistoria
rbb
recordnews
rederecordinternacional
rete4
ric
rmcdecouverte
rougetv
rsila1hd
rsila2hd
rtcg
rtk1
rtl
rtl2
rtl9
rtlnitro
rtpi
rts1hd
rts2hd
rtssat
servustvhd
showturk
skynews
sport1
srf1hd
srf2hd
srfinfo
startv
superrtl
swrbw
t18
tcm
tele5
telebaern
telebielingue
teleswizz
tf1hd
tmc
tracelatina
traceurban
trtturk
tunisienationale
tv24
tv5mondefbs
tv8montblanc
tvcnews
tveinternacional
tvgalicia
tvm3
tvpolonia
tvrinternational
tvsuisseplus
valtv
videoitalia
vox
w9
wdrhd
zdfhd
zdfinfohd
zdfneohd
Alles anzeigen
http://216.225.197.57:63142/sweez/
n8 
edit: verschluesselte sender entfernt. pro7sat1
edit: fast kanaele entfernt
117 uebrig.
edit: jeden sender testen ob streambar
113 uebrig.
edit: alle kanaele, aufloesungen und audiospuren, uebersicht hinzugefuegt
damit ist die sache sweez fuer mich erledigt.
wer noch eine normale playlist btaucht fuer simple iptv etc dann nutzt bitte den tvheadend playlist entpoint. es gibt kein anderen weg.
edit der wirklich letzte: