Skip to content

Commit

Permalink
Einzelupdate ARDnew.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rols1 committed Apr 12, 2023
1 parent 5a13ea4 commit 68a896f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions resources/lib/ARDnew.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# 21.11.2019 Migration Python3 Modul kodi_six + manuelle Anpassungen
#
################################################################################
# <nr>36</nr> # Numerierung für Einzelupdate
# Stand: 08.04.2023
# <nr>37</nr> # Numerierung für Einzelupdate
# Stand: 12.04.2023

# Python3-Kompatibilität:
from __future__ import absolute_import # sucht erst top-level statt im akt. Verz.
Expand Down Expand Up @@ -1241,6 +1241,8 @@ def get_page_content(li, page, ID, mark='', mehrzS=''):
gridlist = blockextract( '"availableTo":', page) # geändert 10.11.2021
if len(gridlist) == 0: # 09.01.2022 Fallback für A-Z-Inhalte
gridlist = blockextract( '"decor":', page)
if len(gridlist) == 0: # 12.04.2023 Fallback für Menü-Inhalte
gridlist = blockextract( '"images":', page)

if len(gridlist) == 0:
msg1 = 'keine Beiträge gefunden'
Expand All @@ -1258,7 +1260,10 @@ def get_page_content(li, page, ID, mark='', mehrzS=''):
targetID= stringextract('target":{"id":"', '"', s) # targetID, auch Search
else:
targetID= stringextract('id":"Link:', '"', s) # Serie in Swiper via ARDStartSingle
PLog(targetID)
if targetID == "":
links = stringextract('target":', '}', s)
targetID= stringextract('href:"', '"', links)
PLog("targetID: " + targetID)
if targetID == '': # kein Video
continue

Expand Down

0 comments on commit 68a896f

Please sign in to comment.