Skip to content

Commit

Permalink
Einzelupdate arte.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rols1 committed May 16, 2023
1 parent e5cf057 commit 1a5d3cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions resources/lib/arte.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# Auswertung via Strings statt json (Performance)
#
################################################################################
# <nr>30</nr> # Numerierung für Einzelupdate
# Stand: 06.04.2023
# <nr>31</nr> # Numerierung für Einzelupdate
# Stand: 16.05.2023

# Python3-Kompatibilität:
from __future__ import absolute_import # sucht erst top-level statt im akt. Verz.
Expand Down Expand Up @@ -469,7 +469,7 @@ def GetContent(li, page, ID):
kind = item["kind"]["code"] # z.B. TOPIC
typ = item["kind"]["code"] # z.B. Kollektion
coll = item["kind"]["isCollection"] # true/false
if coll:
if coll: # nicht verlässlich, s. dur
mehrfach = True

url = item["url"]
Expand All @@ -486,6 +486,8 @@ def GetContent(li, page, ID):
PLog('dur: ' + str(dur))
if dur:
dur = seconds_translate(dur)
else:
mehrfach = True

try:
geo = item["geoblocking"]["code"] # Bsp. "DE_FR", "ALL"
Expand Down Expand Up @@ -534,6 +536,7 @@ def GetContent(li, page, ID):
tag_par = tag.replace('\n', '||') # || Code für LF (\n scheitert in router)
summ_par = summ.replace('\n', '||') # || Code für LF (\n scheitert in router)


PLog('Satz1:')
PLog(mehrfach); PLog(typ); PLog(pid); PLog(title);
PLog(url); PLog(img); PLog(tag[:80]); PLog(summ[:80]);
Expand Down

0 comments on commit 1a5d3cf

Please sign in to comment.