Skip to content

Commit

Permalink
ZDF uses semicolon in video description
Browse files Browse the repository at this point in the history
ZDF uses semicolon in video description. The description is added with
other parameters into an URL. When parsing and spliting the URL in
python2 the semicolon is used as a separator which leads to a wrong data
in the resulting dictionary and video cannot be found by video player.

Semicolon is replaced by "." instead and everything works again in
python2
  • Loading branch information
mosterta2 committed May 22, 2023
1 parent 8dbbb4c commit f269ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ardundzdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6905,8 +6905,8 @@ def ZDF_PageMenu(DictID, jsonObject="", urlkey="", mark="", li="", homeID=""):
PLog("Satz1_1:")
PLog(stage); PLog(typ); PLog(title);
title = repl_json_chars(title)
descr = repl_json_chars(descr)
tag = repl_json_chars(tag)
descr = repl_json_chars(descr); descr=descr.replace(';','.')
if entry["type"]=="video": # Videos
if "channel" in entry: # Zusatz Sender
sender = entry["channel"]
Expand Down

0 comments on commit f269ee4

Please sign in to comment.