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 Mar 17, 2024
1 parent a9ec564 commit 4a396e9
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 10 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.9.8+nexus" provider-name="rols1 (rols1@gmx.de)">
<addon id="plugin.video.ardundzdf" name="ARDundZDF" version="4.9.9+nexus" provider-name="rols1 (rols1@gmx.de)">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.kodi-six" />
Expand Down
15 changes: 11 additions & 4 deletions ardundzdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@

# VERSION -> addon.xml aktualisieren
# <nr>185</nr> # Numerierung für Einzelupdate
VERSION = '4.9.8'
VDATE = '10.03.2024'
VERSION = '4.9.9'
VDATE = '17.03.2024'


# (c) 2019 by Roland Scholz, rols1@gmx.de
Expand Down Expand Up @@ -1204,8 +1204,14 @@ def ZDF_Teletext(path=""):
prevpg = "100"
nextpg = re.search(u'nextpg="(.*?)"', body).group(1)
aktpg = re.search(u'page="(.*?)"', body).group(1)
PLog("prevpg: %s, nextpg: %s, aktpg: %s" % (prevpg, nextpg, aktpg))
PLog("prevpg: %s, nextpg: %s, aktpg: %s, lines: %d" % (prevpg, nextpg, aktpg, len(body.splitlines())))

if len(body.splitlines()) <= 6: # body-, footer-, copy- plus 3 Leerzeilen,
msg1 = "Seite [B]%s[/B]: leider keine" % aktpg # Bsp. 777 (Untertitel)
msg2 = "Inhalte gefunden."
MyDialog(msg1, msg2, '')
return

#------------------------------------------------ # Body
PLog("get_tables:")
hrefs = ZDF_Teletext_Table(li, body, aktpg) # <a href= .. </a>##<a href= .. </a>
Expand Down Expand Up @@ -8102,6 +8108,7 @@ def ZDF_Rubriken(path, title, DictID, homeID=""):
PLog("externalUrl_not_used")

else:
tag = "Folgeseiten"
fparams="&fparams={'url': '%s', 'title': '%s'}" % (url, title)
PLog("fparams: " + fparams)
addDir(li=li, label=title, action="dirList", dirID="ZDF_RubrikSingle", fanart=img,
Expand Down Expand Up @@ -10541,7 +10548,7 @@ def Parseplaylist(li, url_m3u8, thumb, geoblock, descr, sub_path='', stitle='',
return li
else:
return [] # leere Liste für build_Streamlists
else: # lokale Datei
else: # lokale Datei
fname = os.path.join(M3U8STORE, url_m3u8)
playlist = RLoad(fname, abs_path=True)

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

17.03.2024 4.9.9
Modul childs: neue Funktion tivi_Verpasst - Anpassung Main_TIVI, Nutzung
ZDF_VerpasstWoche, ZDF_get_content, neues Icon zdftivi-cal.png, Menü
tivi_ZDFchen verlinkt mit ZDF_RubrikSingle (analog Direkt-Calls ZDF).
ZDF_Start: Direkt-Calls gefixed/geordnet: Startseite, ZDFtivi, ZDFchen, funk,
gelöscht: Rubriken, Sportstudio, Barrierearm, ZDFinternational.
Main_ZDF: gelöschte Calls aus ZDF_Start verlinkt mit ZDF_RubrikSingle.
Audio_get_items_single, AudioSearch_cluster: Absicherung gegen leere web_url.
Audio_get_nexturl: Fix invalid-literal-error bis limit-Wert in nexturl via
re.search (betroffen: Modul childs, Menü Hörspaß für Kinder), new_offset
begrenzt auf elements.
ZDF_Rubriken: tag="Folgeseiten" für Ziel ZDF_RubrikSingle (vorher"Video").
ZDF_Teletext: Dialog bei leerer Seite, Bsp. 777 (Untertitel).
Audio_get_homescreen (Audio_step1): Auswertung umgestellt auf json (Webjson),
Stage-Button integriert, Bilder ergänzt (wo verfügbar).
Audio_get_homescreen (Audio_step2): fehlenden ersten Beitrag ergänzt, graphql-
Auswertung umgestellt auf json, alte Zielfunktion Audio_get_sendung_api für
Rubriken geändert auf Audio_get_cluster_rubrik (Auswertung Web-json).
Audio_get_sendung: python2-encoding-Fix py2_encode(summ_par).
Zuletzt-gesehen-Liste: Fehlermeldung für nicht vorhandene Liste startlist in
AddonStartlist ergänzt, in PlayVideo Abgleich max. Länge auf Basis 0 korrigiert,
zusätzl. Debugstatements ab prepare_resume, Absicherung gegen Live-Streams vor
monitor_resume geändert (if not live).
get_json_content (Modul ARDnew): leere Serienliste abgefangen (try/except).
XL_BilderClusterSingle (TagesschauXL): Begrenzung auf 1 Bilderblock bei quoted-
json-Inhalten, Begrenzung Infotext auf 1 Zeile (Wiederholungsvermeidung).
Bilder3satSingle (my3Sat): Ersetzung "amp;" -> "" in Bildquelle.

03.03.2024 4.9.8
livesenderTV.xml: SWR Rheinland-Pfalz aus IPTV-Quelle jnk22 ergänzt.
get_foruminfo (Modul tools): Anpassung an Forum-Update
Expand All @@ -21,8 +49,8 @@ CHANGE HISTORY
für das inputstreamaddon.
MVWSearch (Modul yt): Merkliste-Button für Suchergebnisse hinzugefügt
(Startindex 1).
Watch_items (Modul merkliste): Fett-/Farbe aus gespeichertem Titel entfernt
mittels cleanmark entfernt in actions rename und folder.
Watch_items (Modul merkliste): Fett-/Farbe aus gespeichertem Titel mittels
cleanmark entfernt in actions rename und folder.
get_summary_pre (Modul util): Sonderfälle für ARDnew behandelt ('\\n\\n' ->
" | ", '\\n' -> ". ", '\\r\\n\\r\\n' -> " | ").
Main: Hinweis Einzelupdate in Button Addon-Update.
Expand Down Expand Up @@ -89,7 +117,7 @@ CHANGE HISTORY
einschl. tagesthemen und Bericht aus Berlin, Param live=true für Webplayer-
Streams bei eingeschalteter Zuletzt-gesehen-Liste.
TV-Livestreams: Umstellung Deutsche Welle auf IPTV-Links (in ARD-Mediathek
nicht mehr verfügbar), nur EN-Version funktionsfähig.
nicht mehr verfügbar), nur EN-Version funktionsfähig.

07.01.2024 4.9.4
PlayVideo_Direct (Modul util): Absicherung Default_Url bei nur 1 Element in
Expand Down
3 changes: 2 additions & 1 deletion resources/lib/my3Sat.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
################################################################################
# <nr>16</nr> # Numerierung für Einzelupdate
# Stand: 29.01.2024
# Stand: 13.03.2024

# Python3-Kompatibilität:
from __future__ import absolute_import # sucht erst top-level statt im akt. Verz.
Expand Down Expand Up @@ -1902,6 +1902,7 @@ def Bilder3satSingle(title, path):
descr = stringextract('paragraph-large ">', '</p', rec) # Bildtext
urh = stringextract('teaser-info is-small">', '</dd', rec) # Urheber
urh=mystrip(urh.strip());
urh = urh.replace("amp;", "")

tag = "%s | %s" % (stitle, title)
summ = "%s\n%s" % (descr, urh)
Expand Down
7 changes: 6 additions & 1 deletion resources/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3478,6 +3478,9 @@ def PlayVideo(url, title, thumb, Plot, sub_path=None, playlist='', seekTime=0, M

play_time=0; video_dur=0 # hier dummies (rel. -> PlayMonitor)
if url_check(url, caller='PlayVideo'): # Url-Check
# Zuletzt-gesehen-Liste (STARTLIST) verwenden, Live-Streams
# werden später ausgeschlossen (s. prepare_resume), Aktualiserung
# der Liste in monitor_resume:
startlist = SETTINGS.getSetting('pref_startlist')
maxvideos = SETTINGS.getSetting('pref_max_videos_startlist')
if startlist=='true' and playlist !='true': # Startlist (true: skip bei playlist-Url)
Expand All @@ -3490,8 +3493,10 @@ def PlayVideo(url, title, thumb, Plot, sub_path=None, playlist='', seekTime=0, M
if started_videos == "":
started_videos=[]
PLog("started_videos: %d" % len(started_videos))
if len(started_videos) >= int(maxvideos): # ältesten Eintrag löschen
if len(started_videos) >= int(maxvideos)-1: # ältesten Eintrag löschen (Basis 0)
del started_videos[0]
v = started_videos[0]
PLog("delete_video_0: " + v[:40])

dt = datetime.datetime.now() # Format 2017-03-09 22:04:19.044463
now = time.mktime(dt.timetuple()) # Unix-Format 1489094334.0 -> Sortiermerkmal
Expand Down

0 comments on commit 4a396e9

Please sign in to comment.