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 Jul 7, 2024
1 parent 4f0fc48 commit ff5a07b
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 15 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="5.0.5+matrix" provider-name="rols1 (rols1@gmx.de)">
<addon id="plugin.video.ardundzdf" name="ARDundZDF" version="5.0.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
9 changes: 6 additions & 3 deletions ardundzdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@

# VERSION -> addon.xml aktualisieren
# <nr>208</nr> # Numerierung für Einzelupdate
VERSION = '5.0.5'
VDATE = '29.06.2024'
VERSION = '5.0.6'
VDATE = '07.07.2024'


# (c) 2019 by Roland Scholz, rols1@gmx.de
Expand Down Expand Up @@ -10820,7 +10820,9 @@ def Parseplaylist(li, url_m3u8, thumb, geoblock, descr, sub_path='', stitle='',
PLog('playlist: ' + playlist[:100])
PLog('live: ' + str(live))
skip_list = ["/rbb_brandenburg/", # keine Mehrkanalstreams: Einzelauflösungen mögl.
"/srfsgeo/", "/swrbwd/", "/dwstream"
"/srfsgeo/", "/swrbwd/", "/dwstream",
"/arteliveext.akamaized",
"/tagesschau.akamaized"
]
PLog('#EXT-X-MEDIA' in playlist)
# live=True: skip 1 Button, Altern.: Merkmal "_sendung_" in url_m3u8
Expand All @@ -10830,6 +10832,7 @@ def Parseplaylist(li, url_m3u8, thumb, geoblock, descr, sub_path='', stitle='',
if item in url_m3u8:
skip=True # i.d.R. ARD-Streams (nicht alle)
break

PLog('skip: ' + str(skip))
if skip == False and live: # Mehrkanalstreams: nur 1 Button
stitle = "HLS-Stream"
Expand Down
15 changes: 14 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
--------------

07.07.2024 5.0.6
Haupt-PRG: Prüfung Existenz Cache-Datei ard_streamlinks ergänzt (führte
bei Fehlen zum Startabbruch des Addons).
get_json_content (ARDnew): Verzicht auf Dekodierung von Param. page (str
und py2_decode) - führte bei PY2 zu utf-Errors.
ARDSportWDR: Event-Button Tour de France 2024 hinzugefügt, Anpassungen an
WDR-Änderungen in ARDSportgetPlayer und ARDSportMedia.
TagesschauXL: Hauptmenü erweitert mit "tagesschau in Einfacher Sprache",
"Regionale Nachrichten", neues Icon tagesschau_einfach, tagesschau_regional.
get_VideoAudio (TagesschauXL): leeren Player-Inhalt abgefangen (leer für
Navigationsmenü im Web).
TV-Livestreams: Deutsche Welle (EN) umgestellt (iptv -> livesenderTV.xml,
iptv-Quelle funktioniert nicht mehr).

23.06.2024 5.0.5
ARDSportMediaPlayer (ARD Sportschau WDR: Anpassung an veränderter Position
des Beitrags-Titels.
Expand All @@ -29,7 +43,6 @@ CHANGE HISTORY
(s. kodinerds-Forum 17.06.2024 ff).
SenderLiveListe: utf-Behandlung für tagline.


26.05.2024 5.0.4
AudioStartLive: Fix Variable für RadioPlaylist-Button PlayList statt
streamList.
Expand Down
Binary file added resources/images/tagesschau_einfach.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 added resources/images/tagesschau_regional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 13 additions & 5 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>15</nr> # Numerierung für Einzelupdate
# Stand: 02.07.2024
# Stand: 06.07.2024
#
# Anpassung Python3: Modul future
# Anpassung Python3: Modul kodi_six + manuelle Anpassungen
Expand Down Expand Up @@ -88,6 +88,8 @@
ICON_DELETE = "icon-delete.png"

ICON_EINFACH = "tagesschau_einfach.png"
ICON_REGIONAL = "tagesschau_regional.png"

# Github-Icons zum Nachladen aus Platzgründen
GIT_CAL = "https://github.com/rols1/PluginPictures/blob/master/ARDundZDF/KIKA_tivi/icon-calendar.png?raw=true"
ICON_MAINXL = 'https://github.com/rols1/PluginPictures/blob/master/ARDundZDF/TagesschauXL/tagesschau.png?raw=true'
Expand Down Expand Up @@ -173,14 +175,15 @@ def Main_XL():
u"tagesschau24|%s|%s" % (ICON_24, "Y3JpZDovL2Rhc2Vyc3RlLmRlL3RhZ2Vzc2NoYXUyNA"),
u"tagesschau in 100 SEKUNDEN|%s|%s" % (ICON_100sec, "Y3JpZDovL2Rhc2Vyc3RlLmRlL3RzMTAwcw"),
u"tagesthemen|%s|%s" % (ICON_TTHEMEN, "Y3JpZDovL2Rhc2Vyc3RlLmRlL3RhZ2VzdGhlbWVu"),
u"Regionale Nachrichten|%s|%s" % (R(ICON_REGIONAL), "3mJgQ9gapwqrKZrrF9hTWo:-3801511732729640100"),
u"Bericht aus Berlin|%s|%s" % (ICON_BAB, "Y3JpZDovL2Rhc2Vyc3RlLmRlL2JlcmljaHQgYXVzIGJlcmxpbg"),
]
for t in T_List:
title, thumb, pid = t.split("|")
PLog(title); PLog(thumb); PLog(pid)
title = "[B]%s[/B]" % title
tag = u"mit allen von der ARD angebotenen Stream-Qualitäten"
fparams="&fparams={'title': '%s', 'pid': '%s'}" % (quote(title), pid)
fparams="&fparams={'title': '%s', 'pid': '%s'}" % (quote(title), quote(pid))
addDir(li=li, label=title, action="dirList", dirID="resources.lib.TagesschauXL.XL_Tagesschau",
fanart=ICON_MAINXL, thumb=thumb, tagline=tag, fparams=fparams, mediatype="")

Expand Down Expand Up @@ -225,7 +228,9 @@ def XL_Tagesschau(title, pid):
PLog("XL_Tagesschau:")
PLog(title); PLog(pid);
base="https://api.ardmediathek.de/page-gateway/pages/tagesschau24/grouping/"
path = "%s%s?embedded=true" % (base, pid)
if "Regionale Nachrichten" in title: # abweichender Call
base = "https://api.ardmediathek.de/page-gateway/widgets/ard/editorials/" # alt.: tagesschau24 statt ard
path = "%s%s?embedded=true" % (base, unquote(pid)) # unquote: %3A -> :

page, msg = get_page(path)
if page == '':
Expand Down Expand Up @@ -701,7 +706,10 @@ def get_VideoAudio(title, path): # Faktenfinder

cnt = 0; url_list=[]
for item in content:
cnt = cnt +1 # Satz-Zähler
PLog(item)
if 'data-v="{}"' in item: # leer möglich (hauptnavigation)
continue
cnt = cnt +1 # Satz-Zähler
typ,av_typ,title,tag,summ,img,stream = get_content_json(item)

title=py2_encode(title); stream=py2_encode(stream);
Expand All @@ -728,7 +736,7 @@ def get_VideoAudio(title, path): # Faktenfinder
# ----------------------------------------------------------------------
#
def get_content_json(item):
PLog('get_content_json:')
PLog('get_content_json:')

minWidth=700 # .., 768x, 944x

Expand Down
10 changes: 5 additions & 5 deletions resources/livesenderTV.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<nr>49</nr>
<thumbnail></thumbnail>
<credits>Grafiken @Arauco (Plex-Forum)</credits>
<date>19.02.2024 rols</date>
<date>07.07.2024 rols</date>
<ARDsource></ARDsource>
<ZDFsource>https://www.zdf.de/live-tv</ZDFsource>
<info>Senderübersicht TVToday: https://www.tvtoday.de/programm/standard/sender/ Button:Alle Sender</info>
Expand Down Expand Up @@ -143,12 +143,12 @@
<item>
<title>Deutsche Welle (EN)</title>
<hrefsender>Deutsche Welle (EN)</hrefsender>
<tvg-name>Deutsche Welle (EN)</tvg-name>
<link>IPTVSource|/jnk22/kodinerds-iptv/blob/master/iptv/kodi/kodi.m3u</link>
<thumbnail>tvg-logo</thumbnail>
<tvg-name></tvg-name>
<link>https://dwamdstream102.akamaized.net/hls/live/2015525/dwstream102/stream02/streamPlaylist.m3u8</link>
<thumbnail>tv-deutsche-welle.png</thumbnail>
<imgsource></imgsource>
<EPG_ID>DWTV</EPG_ID>
<date>21.01.2024</date>
<date>07.07.2024</date>
</item>
</items>
</channel>
Expand Down

0 comments on commit ff5a07b

Please sign in to comment.