Skip to content

Commit

Permalink
Änderungen / Korrekturen siehe changelog.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rols1 committed Jun 4, 2022
1 parent 0e53826 commit fb44e49
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 11 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.ardundzdf" name="ARDundZDF" version="4.3.8+matrix" provider-name="rols1 (rols1@gmx.de)">
<addon id="plugin.video.ardundzdf" name="ARDundZDF" version="4.3.9+matrix" provider-name="rols1 (rols1@gmx.de)">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.kodi-six" />
Expand Down
8 changes: 5 additions & 3 deletions ardundzdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@

# VERSION -> addon.xml aktualisieren
# <nr>49</nr> # Numerierung für Einzelupdate
VERSION = '4.3.8'
VDATE = '01.06.2022'
VERSION = '4.3.9'
VDATE = '04.06.2022'


# (c) 2019 by Roland Scholz, rols1@gmx.de
Expand Down Expand Up @@ -6986,7 +6986,8 @@ def show_single_bandwith(url_m3u8, thumb, title, descr, ID):
def PlayButtonM3u8(li, url_m3u8, thumb, title, descr, tagline='', sub_path='', stitle=''):
PLog('PlayButtonM3u8:');
PLog(title); PLog(url_m3u8); PLog(thumb); PLog(tagline);


li = xbmcgui.ListItem() # li kommt hier als String an
title=unescape(title); title=repl_json_chars(title)

tagline = tagline.replace('||','\n') # s. tagline in ZDF_get_content
Expand Down Expand Up @@ -11006,6 +11007,7 @@ def Parseplaylist(li, url_m3u8, thumb, geoblock, descr, sub_path='', stitle='',
break
if skip == False:
stitle = "HLS-Stream"
PLog("jump_PlayButtonM3u8")
li = PlayButtonM3u8(li, url_m3u8, thumb, stitle, tagline=track_add, descr=descr)
return li

Expand Down
22 changes: 22 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,28 @@ CHANGE HISTORY
max_col 97
--------------

04.06.2022 4.3.9
get_live_data (Modul phoenix): Fix 'phoenix ' (Blank entfernt) für Abgleich
mit Sendername.
SenderLiveResolution: Kennung "https://kika" für Hauptmenü 'Kinderprogramme'
hinzugefügt, Code für Lastserver N24 entfernt (obsolet durch IPTV-Links), Code
für rtmp-Links entfernt (problemlos für Kodi), index.m3u8 (ARD) zu master.m3u8
hinzugefügt.
ParseMasterM3u: umbenannt -> PlayButtonM3u8. Behandl. master.m3u8 ausschl. in
Parseplaylist, Code für relative Pfade entf. (obsolet bei m3u8-Links), Abgleich
'#EXT-X-STREAM-INF' in Zeile statttin ganzer Playlist(relev. für hr-Livestream).
livesenderTV.xml: Aktualisierung IPTVStreamlinks NDR Schleswig-Holstein, NDR
Mecklenburg-Vorpommern, NDR Hamburg.
Live (Modul my3sat): Auswertung Einzelauflösungen (Parseplaylist) entfernt -
entf. wg. Mehrkanalstream).
SenderLiveListe: alle Streamlinks aus Caches laden - unabhängig vom Namen der
Liste (Überregional, Regional, Privat).
Main_KIKA: Links für Videos mit Gebärdensprache und Videos als Hörfilme
aktualisiert.
Modul funk: Anpassungen nach api-Änderungen in Search (+ Behandlung für
Fehlschlag), extract_videos (json-key-Änderungen), extract_channels (json
-key-Änderungen), ChannelSingle.

28.05.2022 4.3.8
PlayVideo (Modul util): Fix inputstream-Problem bei UT-Livestream ARD - seek
zum Ende des 2-Std-Puffers erzwungen.
Expand Down
Empty file added resources/__init__.py
Empty file.
Empty file added resources/lib/__init__.py
Empty file.
4 changes: 1 addition & 3 deletions resources/lib/my3Sat.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

# Addonmodule + Funktionsziele (util_imports.py)
# import ardundzdf reicht nicht für thread_getpic
from ardundzdf import * # -> get_query, ParseMasterM3u, test_downloads, Parseplaylist,
from ardundzdf import * # -> get_query, test_downloads, Parseplaylist,
# thread_getpic, ZDF_SlideShow, get_ZDFstreamlinks
from resources.lib.util import *

Expand Down Expand Up @@ -1676,8 +1676,6 @@ def Live(name, epg=''):
addDir(li=li, label=title, action="dirList", dirID="PlayVideo", fanart=img, thumb=img, fparams=fparams,
mediatype='video', tagline=Plot)

li = Parseplaylist(li, m3u8link, img, geoblock='', descr=Plot)

xbmcplugin.endOfDirectory(HANDLE, cacheToDisc=True)

#-----------------------------
Expand Down
10 changes: 6 additions & 4 deletions resources/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,8 @@ def get_ZDFstreamlinks(skip_log=False):
days = int(SETTINGS.getSetting('pref_tv_store_days'))
PLog("days: %d" % days)
CacheTime = days*86400 # Default 1 Tag

#days=0 # Debug

if days: # skip CacheTime=0
page = Dict("load", 'zdf_streamlinks', CacheTime=CacheTime)
if len(str(page)) > 100: # bei Error nicht leer od. False von Dict
Expand Down Expand Up @@ -2465,7 +2466,7 @@ def get_ZDFstreamlinks(skip_log=False):
videodat_url = "https://api.zdf.de/tmd/2/ngplayer_2_3/live/ptmd/%s" % assetid
page, msg = get_page(path=videodat_url, header=header, JsonPage=True)
PLog("videodat: " + page[:40])
PLog(page)
#PLog(page) # Debug

href = stringextract('"https://', 'master.m3u8', page) # 1.: auto
if href:
Expand Down Expand Up @@ -2494,6 +2495,7 @@ def get_ARDstreamlinks(skip_log=False):
days = int(SETTINGS.getSetting('pref_tv_store_days'))
PLog("days: %d" % days)
CacheTime = days*86400 # Default 1 Tag
#days=0 # Debug

ID = "ard_streamlinks"
if days: # skip CacheTime=0
Expand Down Expand Up @@ -3321,7 +3323,7 @@ def PlayVideo(url, title, thumb, Plot, sub_path=None, Merk='false', playlist='',
PLog("pref_nohome=true")
if "-tegra-" in OS_RELEASE == False: # ev. prüfen: "-tegra-" in OS_RELEASE +
exit(0) # nicht bei Shield + FT1-Stick.

while 1: # seekTime setzen
if player.isPlaying():
xbmc.sleep(500) # für Raspi erforderl.
Expand All @@ -3338,7 +3340,7 @@ def PlayVideo(url, title, thumb, Plot, sub_path=None, Merk='false', playlist='',
PLog("play_time %d, video_dur %d" % (play_time, video_dur))
break
xbmc.sleep(200)

return play_time, video_dur # -> PlayMonitor
# exit(0)

Expand Down

0 comments on commit fb44e49

Please sign in to comment.