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 18, 2023
1 parent 9d4f388 commit 09bca36
Show file tree
Hide file tree
Showing 94 changed files with 83 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Funktionen:
- ~~funk~~ - entfernt ab Mai 2023 (Videos in ZDF-funk, Podcasts in der ARD-Audiothek verfügbar)
- Kinderprogramme (z.Z. KIKA und ZDFtivi)
- TagesschauXL
- phoenix (https://www.phoenix.de/)
- phoenix (https://www.phoenix.de/ und https://www.ardmediathek.de/phoenix)
- Arte-Kategorien
- "Zuletzt gesehen"-Funktion (im Tools-Menü)
- Video-Playlist einschl. Archiv-Funktion (im Tools-Menü)
Expand Down
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.7.5+matrix" provider-name="rols1 (rols1@gmx.de)">
<addon id="plugin.video.ardundzdf" name="ARDundZDF" version="4.7.6+matrix" provider-name="rols1 (rols1@gmx.de)">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.kodi-six" />
Expand Down
7 changes: 4 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>116</nr> # Numerierung für Einzelupdate
VERSION = '4.7.5'
VDATE = '15.06.2023'
VERSION = '4.7.6'
VDATE = '18.06.2023'


# (c) 2019 by Roland Scholz, rols1@gmx.de
Expand Down Expand Up @@ -7585,7 +7585,8 @@ def ZDF_Search(query=None, title='Search', s_type=None, pagenr=''):
query = get_query(channel='ZDF')
PLog(query)
if query == None or query.strip() == '':
return ""
#return ""
Main_ZDF(name='') # Absturz nach Sofortstart-Abbruch

query = query.replace(u'–', '-')# verhindert 'ascii'-codec-Error
query = query.replace(' ', '+') # Aufruf aus Merkliste unbehandelt
Expand Down
28 changes: 28 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,34 @@ CHANGE HISTORY
max_col 97
--------------

18.06.2023 4.7.6
TV-Livestreams Regional Lokalzeit: return nach Sofortstart für Verbleib
in akt. Liste.
ARDSportVideo (Regional Lokalzeit Samstag): doppelten Homebutton entfernt.
Notification-Problem LibreElec 11.0.1: nach Neuinstallation verschwunden.
ZDF_PageMenu, ZDF_get_content: Info-Text von valid_title_chars verschont im
Menü ZDF-International Arabic.
get_foruminfo (tools): Datum ergänzt mit letztem Eintrag.
ShowFavs: Fett-/Farb-Markierung aus Titel entfernt, um Positiosverschieb. zu
vermeiden (cleanmark).
PlayVideo: Rekursionscheck gelöst vom Status pref_nohome und Wirksamkeit auf
10 sec beschränkt.
Watch_items (merkliste): cleanmark für IName bei action==del (Gegenstück zu
cleanmark in ShowFavs).
Issue-Info: Rekursion von Videos aus MVW-Suchergebnis in der Merkliste (Call
aus Modul yt). Videos aus den anderen Suchmenüs zeigen zwar beim direkten
Abspielen Rekursion, nicht aber in der Merkliste. Beide abgefangen in PlayVideo,
s. Rekurs_check.
Modul phoenix: wegen der weggefallenen Youtube-Unterstützung Umstellung auf
ARD-Mediathek - Anpassungen: phoenix_Search -> ARDSearchnew, ARDStartRubrik,
ARDStartRegion, ARDStart, SenderLiveResolution, SendungenAZ, ARDRubriken,
SendungenAZ_ARDnew, Watchdog_Plex-2.
show_single_bandwith: entfernt - obsolet.
Icons: Platzbedarf reduziert (Indizierung auf Farbzahl-Minima), erneuert:
icon-downl-dir und icon-downl. Obsolete Icons entfernt.
Main_childs (Kinderprogramme): neues Menü "Hörspaß für Kinder", Link ->
ARD-Audiothek.

04.06.2023 4.7.5
ARDSportWDR: Menübutton Bundesligatabellen hinzugefügt, neue Funktionen
ARDSportTabellen, ARDSportTabellenArchiv und ARDSportTabellenTeam.
Expand Down
Binary file modified resources/images/Dir-curl-wget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/Dir-favorits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/Dir-folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/Dir-move.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/Dir-video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ard-am-besten-bewertet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ard-audio-az.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ard-ausgewaehlt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/images/ard-mediathek-classic.png
Binary file not shown.
Binary file modified resources/images/ard-rubriken.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ard-sendung-verpasst.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ard-sendungen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/ard-suche.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/art.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/arte-suche.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/arte_dokus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/arte_entdeck.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/arte_filme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/arte_kultur.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/arte_lang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/arte_science.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/childs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/images/home-ard-classic.png
Binary file not shown.
Binary file modified resources/images/icon-downl-dir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/icon-downl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/icon-info.png
Binary file modified resources/images/icon-update-einzeln.png
Binary file modified resources/images/icon_searchwords.png
Binary file modified resources/images/kika-suche.png
Binary file modified resources/images/phoenix.png
Binary file added resources/images/phoenix_Startseite.png
Binary file added resources/images/phoenix_az.png
Binary file modified resources/images/plugin-update.png
Binary file modified resources/images/pod-feature.png
Binary file modified resources/images/pod-meist.png
Binary file modified resources/images/pod-neu.png
Binary file modified resources/images/pod-rubriken.png
Binary file modified resources/images/pod-tatort.png
Binary file modified resources/images/radio-livestreams.png
Binary file modified resources/images/radio-podcasts.png
Binary file modified resources/images/suche_ardundzdf.png
Binary file removed resources/images/tagesschau-Fakt.png
Diff not rendered.
Binary file modified resources/images/tagesschau-Investigativ.png
Binary file modified resources/images/tv-3sat.png
Binary file modified resources/images/tv-EPG-all.png
Binary file modified resources/images/tv-EPG-single.png
Binary file modified resources/images/tv-alpha.png
Binary file modified resources/images/tv-ard-sportschau.png
Binary file modified resources/images/tv-br.png
Binary file modified resources/images/tv-bremen.png
Binary file modified resources/images/tv-das-erste.png
Binary file modified resources/images/tv-deutsche-welle.png
Binary file modified resources/images/tv-hr.png
Binary file modified resources/images/tv-kika.png
Binary file modified resources/images/tv-livestreams.png
Binary file modified resources/images/tv-mdr-sachsen-anhalt.png
Binary file modified resources/images/tv-mdr-sachsen.png
Binary file modified resources/images/tv-mdr-thueringen.png
Binary file modified resources/images/tv-n24.png
Binary file modified resources/images/tv-ndr-hamburg.png
Binary file modified resources/images/tv-ndr-mecklenburg-vorpommern.png
Binary file modified resources/images/tv-ndr-niedersachsen.png
Binary file modified resources/images/tv-ndr-schleswig-holstein.png
Binary file modified resources/images/tv-one.png
Binary file modified resources/images/tv-phoenix.png
Binary file modified resources/images/tv-qvc.png
Binary file modified resources/images/tv-rbb-berlin.png
Binary file modified resources/images/tv-rbb-brandenburg.png
Binary file modified resources/images/tv-rtl2you.png
Binary file modified resources/images/tv-servus.png
Binary file modified resources/images/tv-sr.png
Binary file modified resources/images/tv-tagesschau.png
Binary file modified resources/images/tv-wdr.png
Binary file modified resources/images/tv-zdf-info.png
Binary file modified resources/images/tv-zdf-kultur.png
Binary file modified resources/images/tv-zdf-neo.png
Binary file modified resources/images/tv-zdf-sportschau.png
Binary file modified resources/images/tv-zdf.png
Binary file modified resources/images/zdf-funk-AZ.png
Binary file modified resources/images/zdf-funk.png
Binary file modified resources/images/zdf-sendung-verpasst.png
Binary file modified resources/images/zdf-suche.png
Binary file modified resources/images/zdf-themen.png
13 changes: 10 additions & 3 deletions resources/lib/ARDnew.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
################################################################################
# <nr>44</nr> # Numerierung für Einzelupdate
# Stand: 15.06.2023
# Stand: 16.06.2023

# Python3-Kompatibilität:
from __future__ import absolute_import # sucht erst top-level statt im akt. Verz.
Expand Down Expand Up @@ -375,11 +375,15 @@ def ARDStart(title, sender, widgetID='', path='', homeID=''):
tagline=reg_tag, fparams=fparams)
cnt=cnt+1

label = title # Anpassung phoenix ("Stage Widget händisch")
if title.startswith("Stage") or title.startswith("Die besten Videos"):
label = "[B]Highlights[/B]"

PLog(path); PLog(title); PLog(ID); PLog(anz); PLog(img);
path=py2_encode(path); title=py2_encode(title);
fparams="&fparams={'path': '%s', 'title': '%s', 'widgetID': '', 'ID': '%s','homeID': '%s'}" %\
(quote(path), quote(title), ID, homeID)
addDir(li=li, label=title, action="dirList", dirID="resources.lib.ARDnew.%s" % func, fanart=img, thumb=img,
addDir(li=li, label=label, action="dirList", dirID="resources.lib.ARDnew.%s" % func, fanart=img, thumb=img,
tagline=tag, summary=summ, fparams=fparams)
cnt=cnt+1

Expand Down Expand Up @@ -633,7 +637,10 @@ def ARDStartRegion(path, title, widgetID='', ID='', homeID=""):
# 18.04.2023 Cache für Startseite entfällt (obsolet - api-Call)
#
def ARDStartRubrik(path, title, widgetID='', ID='', img='', homeID=""):
PLog('ARDStartRubrik: %s' % ID); PLog(title); PLog(path)
PLog('ARDStartRubrik: %s' % ID); PLog(title); PLog(path)
# Titel-Anpassung für phoenix ("Stage Widget händisch"):
if title.startswith("Stage") or title.startswith("Die besten Videos"):
title = "[B]Highlights[/B]"
title_org = title

CurSender = Dict("load", 'CurSender') # init s. Modulkopf
Expand Down
10 changes: 9 additions & 1 deletion resources/lib/childs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
################################################################################
#
# <nr>16</nr> # Numerierung für Einzelupdate
# Stand: 02.06.2023
# Stand: 17.06.2023

# Python3-Kompatibilität:
from __future__ import absolute_import # sucht erst top-level statt im akt. Verz.
Expand Down Expand Up @@ -159,6 +159,14 @@ def Main_childs():
addDir(li=li, label=title, action="dirList", dirID="resources.lib.ARDnew.ARDStartRubrik", fanart=img, thumb=img,
tagline=tag, fparams=fparams)

title = u"Hörspaß für Kinder | ARD-Audiothek" # neu ab 17.06.2023
cluster_id = "entdecken-100:-601210988128917166"
tag = u">Es war einmal ... Märchen\n>Hörspiele für Kinder ab 6\n>Geschichten für Kinder von 3 bis 6\n"
tag = u"%s>Wer, wie, was - und warum?\n>Maus-Zoom\n>Familienkonzerte: Geschichten mit Musik" % tag
summ = u"Mehr Hör-Geschichten für große und kleine Kinder findest du in der Audiothek in der Rubrik >Für Kinder<."
fparams="&fparams={'cluster_id': '%s'}" % cluster_id
addDir(li=li, label=title, action="dirList", dirID="Audio_get_homescreen",
fanart=R(ICON_CHILDS), thumb=R("ard-audiothek.png"), tagline=tag, summary=summ, fparams=fparams)

xbmcplugin.endOfDirectory(HANDLE, cacheToDisc=True)

Expand Down
1 change: 1 addition & 0 deletions resources/lib/epgRecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ def get_active_dls():
if cnt != '' and cnt != '0':
msg1 = "Downloads"
msg2 = "Anzahl: %s | %s" % (cnt, new_len)
PLog("get_active_dls_update: %s" % msg2)
xbmcgui.Dialog().notification(msg1,msg2,icon,2000)
i=i+1
xbmc.sleep(2000)
Expand Down
5 changes: 3 additions & 2 deletions resources/lib/phoenix.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
################################################################################
# <nr>11</nr> # Numerierung für Einzelupdate
# Stand: 15.06.2023
# Stand: 16.06.2023

# Python3-Kompatibilität:
from __future__ import absolute_import # sucht erst top-level statt im akt. Verz.
Expand Down Expand Up @@ -223,7 +223,8 @@ def phoenix_Search(query='', nexturl=''):
query = ardundzdf.get_query(channel='phoenix')
PLog(query)
if query == None or query == '':
return ""
#return ""
Main_phoenix() # Absturz nach Sofortstart-Abbruch

title="Suche auf phoenix"
ARDSearchnew(title, sender="phoenix", offset=0, query=query, homeID="phoenix")
Expand Down
31 changes: 24 additions & 7 deletions resources/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3416,12 +3416,13 @@ def PlayVideo(url, title, thumb, Plot, sub_path=None, Merk='false', playlist='',
xbmc.Player().showSubtitles(False)
break
xbmc.sleep(200)
ShowSeekPos(player, url)
return

else: # false, None od. Blank - Playlist
PLog('PlayVideo_Start: direkt, playlist: %s' % str(playlist))

line = Dict("load", 'Rekurs_check') # Dict-Abgleich url/Laufzeit
line = Dict("load", 'Rekurs_check', CacheTime=10) # Dict-Abgleich url/Laufzeit
PLog(line)
oldurl=''
if line != False: # False, falls fehlend
Expand All @@ -3431,12 +3432,12 @@ def PlayVideo(url, title, thumb, Plot, sub_path=None, Merk='false', playlist='',
now=int(now); old_now=int(float(old_now)); old_dur=int(float(old_dur))
PLog("now - old_now: %d, old_dur %d" % (now-old_now, old_dur))
if (now - old_now) < old_dur + 5: # erneuter Aufruf vor regul. Videoende?
if SETTINGS.getSetting('pref_nohome') == 'true':
msg1 = "Videoabbruch"; msg2 = "wegen vermutl. Rekursion"
icon = R(ICON_WARNING)
xbmcgui.Dialog().notification(msg1,msg2,icon,3000)
PLog("Rekursions_exit")
return
#if SETTINGS.getSetting('pref_nohome') == 'true': 12.06.2023 gelöst vom Status pref_nohome
msg1 = "Videoabbruch"; msg2 = "wegen vermutl. Rekursion"
icon = R(ICON_WARNING)
xbmcgui.Dialog().notification(msg1,msg2,icon,3000)
PLog("Rekursions_exit")
return

player.play(url, li, windowed=False) # direkter Start
xbmc.sleep(200)
Expand Down Expand Up @@ -3652,6 +3653,22 @@ def open_addon(addon_id, cmd):
return

#----------------------------------------------------------------
# zeigt Abspielposition inputstream.adaptive als Zeitangabe
# Probleme:
#
def ShowSeekPos(player, url):
PLog('ShowSeekPos:')

icon=""
if url.endswith('.m3u8') and SETTINGS.getSetting('pref_inputstream') == 'true':
while player.isPlaying():
xbmc.sleep(500)
play_time = player.getTime()
p = str(int(play_time))
xbmcgui.Dialog().notification("PlayTime: ",p,icon,500, sound=False)

return
#----------------------------------------------------------------
# experimentelle Funktion thread_getsubtitles einschl. vtt_convert archiviert
# in ../m3u8_download,Untertitel/Untertitel/thread_getsubtitles.py
####################################################################################################
Expand Down
3 changes: 1 addition & 2 deletions resources/lib/yt.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
# https://github.com/mediathekview/mediathekviewweb,
# https://mediathekview.de/news/mediathekviewweb/,
# https://github.com/mediathekview
# April 2023: Youtube-Videos nicht mehr via yt_get zugänglich
#
################################################################################
#
# 17.03.2020 Kompatibilität Python2/Python3: Modul future, Modul kodi-six
#
# <nr>2</nr> # Numerierung für Einzelupdate
# Stand: 02.04.2023
# Stand: 03.08.2022
#

from __future__ import absolute_import
Expand Down
2 changes: 1 addition & 1 deletion resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<setting label="Info: die Filter-Einstellungen befinden sich im Menü Infos + Tools" type="text" id="filterinfo" enable="false"/>
<setting label="Titel ganzer Sendungen markieren (nur ARD und ZDF)" type="bool" id="pref_mark_full_shows" default="false"/>
<setting label="Verzeichnis für Kennzeichnungstabellen" type="folder" source="" id="pref_fullshows_path" default=""/>
<setting label="Info - Namen der Tabellen: full_shows_ARD, full_shows_ZDF" type="text" id="full_shows_info" enable="false"/>
<setting label="Info: Namen der Tabellen: full_shows_ARD, full_shows_ZDF" type="text" id="full_shows_info" enable="false"/>
</category>

<category label="Modul-Einstellungen" >
Expand Down

0 comments on commit 09bca36

Please sign in to comment.