Skip to content

Instantly share code, notes, and snippets.

Avatar

Jay Linski jaylinski

View GitHub Profile
@jaylinski
jaylinski / kodi.strm
Last active December 10, 2022 13:27
Kodi playlist containing free and public TV streams from DE/AT/CH with DRM support.
View kodi.strm
#KODIPROP:inputstream=inputstream.adaptive
#KODIPROP:inputstream.adaptive.manifest_type=mpd
#KODIPROP:inputstream.adaptive.license_type=com.widevine.alpha
#KODIPROP:inputstream.adaptive.license_key=https://drm.ors.at/acquire-license/widevine?BrandGuid=13f2e056-53fe-4469-ba6d-999970dbe549&userToken=<token>||R{SSM}|
https://orf1.mdn.ors.at/out/u/orf1/drmqxa/manifest.mpd
@jaylinski
jaylinski / webvtt_to_srt.py
Last active February 25, 2022 20:16
Convert WebVTT (*.vtt) to SubRip (*.srt) with Python 2/3
View webvtt_to_srt.py
import re
import os
def webvtt_to_srt(webvtt):
srt = ""
counter = 1
for line in webvtt.splitlines():
if line.startswith("WEBVTT"):
continue
@jaylinski
jaylinski / kodi_playlist
Last active June 4, 2023 10:57
Kodi playlist containing free and public TV streams from DE/AT/CH.
View kodi_playlist
#EXTM3U
# Use https://epggw.a1.net/img/station/darkbg/200x200/ as logo URL.
# Use https://tvthek.orf.at/livestream/_token for new DRM tokens.
# TV
#EXTINF:-1 tvg-id="908" tvg-logo="1098.png",ORF 1
#KODIPROP:inputstream=inputstream.adaptive
#KODIPROP:inputstream.adaptive.manifest_type=mpd
#KODIPROP:inputstream.adaptive.license_type=com.widevine.alpha
#KODIPROP:inputstream.adaptive.license_key=https://drm.ors.at/acquire-license/widevine?BrandGuid=13f2e056-53fe-4469-ba6d-999970dbe549&userToken=KsZZCNkEXxflye3%2FLdXbTk9KaH0HLk9ocZddZbM4XRLFSL9E8rNX6XgCh0rhUHS1ObdrV2d6pyjE9lbKKfrSo%2FWB7OL7e7gXrcP%2FRS4e0P7yRXTX5xpdMLmDMFDZgyh6GMPFzewsUiKU1%2B2%2Bc0PTXcKaUmb68TP%2Fcvg5UtEwJFG1DPrU68ijX0HvLou%2FOkOQH%2BxHC2n0ZUAEeYzPLoNXcEepiYWNBX7VKRpIs7mQWb0wwY2L9mgl67MLA1obKBwr|Content-Type=application/octet-stream|R{SSM}|