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 Aug 20, 2023
1 parent 51535dc commit c8f3169
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 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.8.1+nexus" provider-name="rols1 (rols1@gmx.de)">
<addon id="plugin.video.ardundzdf" name="ARDundZDF" version="4.8.2+nexus" provider-name="rols1 (rols1@gmx.de)">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.kodi-six" />
Expand Down
6 changes: 4 additions & 2 deletions ardundzdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@

# VERSION -> addon.xml aktualisieren
# <nr>130</nr> # Numerierung für Einzelupdate
VERSION = '4.8.1'
VDATE = '18.08.2023'
VERSION = '4.8.2'
VDATE = '20.08.2023'


# (c) 2019 by Roland Scholz, rols1@gmx.de
Expand Down Expand Up @@ -1066,6 +1066,7 @@ def ZDF_Teletext(path=""):
"Programm|300", "Flughafen|575", "Börse|600",
]

# ZDF korrigiert nicht selbst (anders ARD)
if url_check(path, caller='ZDF_Teletext', dialog=False) == False: # falsche Seite manuell?
aktpg = re.search(u'seiten/(.*?).html', path).group(1)
msg1 = u'Seite %s' % aktpg
Expand Down Expand Up @@ -3994,6 +3995,7 @@ def ARDSportMedia(li, title, page):

img = stringextract('src="', '"', item)
label = stringextract("<strong>", "</strong>", item)
label = unescape(label)
if "Audio" in label or "Podcast" in label or "Video" in label: # ähnlich ARDSportSlider
url = stringextract('href="', '"', item)
if url.startswith("http") == False:
Expand Down
16 changes: 15 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ CHANGE HISTORY
max_col 97
--------------

20.08.2023 4.8.2
unescape (util): '&deg;' -> '°' ergänzt für Teletext ARD.
Kikaninchen_Videos: html-Auswertung auf Kika-api/v1 umgestellt,
Anpassungen: Kikaninchen_Videos (Step1 + Step2), Kika_SingleBeitrag,
unescape (util), Watchdog_ZDF_Childs.
ARDnew: Austausch webpwa-api-Call gegen neuen api-Call, Anpassungen und
Optimierungen (img_load) in ARDStart (s. Infos dort, einschl. Cache) und
SenderLiveResolution.
ARD_Teletext (ARDnew) + ZDF_Teletext: für falsche Seitenzahlen Hinweis und
Korrektur (-> Seite 100) ergänzt.
get_content_json (TagesschauXL): Inhalt av_content ergänzt, falls title
leer.
ARDSportMedia: html-Behandl. -> unescape(label).

13.08.2023 4.8.1
ZDF_Live: utf-Behandlung für Texte (MyDialog, fparams) - relevant für
Kodi Leia.
Expand All @@ -19,7 +33,7 @@ CHANGE HISTORY
ZDF_Teletext_Table + ZDF_Teletext_setPage, Icons: icon-next, icon-previos,
teletext_zdf.
ARD-Erweiterung (Modul ARDnew): Teletext (ard-text.de/index.php), neue
Funktionen ARD_Teletext, ARD_Teletext_Table, Icon: teletext_ard..
Funktionen ARD_Teletext, ARD_Teletext_Table, Icon: teletext_ard.

30.07.2023 4.8.0
ZDF_Live: abweichendes Format der Videoquellen berücksichtigt (key:formitaeten
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/ARDnew.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ def ARD_Teletext(path=""):
li = xbmcgui.ListItem()
li = home(li, ID='ARD') # Home-Button

mobilpg = stringextract('<p><a href="/mobil/', '"', page)
mobilpg = stringextract('<p><a href="/mobil/', '"', page) # ARD korrigiert selbst, url-Check entf.
if mobilpg and mobilpg != aktpg:
msg1 = u'Seite %s' % aktpg
msg2 = u'nicht verfügbar'
Expand Down
8 changes: 5 additions & 3 deletions resources/lib/TagesschauXL.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Modul für für die Inhalte von tagesschau.de
################################################################################
# <nr>9</nr> # Numerierung für Einzelupdate
# Stand: 14.07.2023
# Stand: 20.08.2023
#
# Anpassung Python3: Modul future
# Anpassung Python3: Modul kodi_six + manuelle Anpassungen
Expand Down Expand Up @@ -716,7 +716,7 @@ def get_VideoAudio(title, path): # Faktenfinder
if SETTINGS.getSetting('pref_video_direct') == 'true':
mediatype='video'

content = blockextract('class="v-instance" data-v="', page)
content = blockextract('class="v-instance" data-v="', page, '</div>')
PLog(len(content))

cnt = 0; url_list=[]
Expand Down Expand Up @@ -776,7 +776,9 @@ def get_content_json(item):
PLog("get_img_error: " + str(exception))
img = R(ICON_DIR_FOLDER)

title=obj["mediadescription"]
title=obj["mediadescription"] # leer möglich
if title.strip() == "": # Altern.
title = stringextract('av_content":"', '"', conf)
title = repl_json_chars(title)

# Streams: zu geringe Auswahl für Listen
Expand Down

0 comments on commit c8f3169

Please sign in to comment.