Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix - script.module.libmediathek4 : Handle Timestamps Containing Millseconds Correctly #2589

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion script.module.libmediathek4/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="script.module.libmediathek4" name="libmediathek4" version="1.0.0" provider-name="sarbes">
<addon id="script.module.libmediathek4" name="libmediathek4" version="1.0.1" provider-name="sarbes">
<requires>
<import addon="xbmc.python" version="3.0.0" />
</requires>
Expand Down
2 changes: 1 addition & 1 deletion script.module.libmediathek4/lib/libmediathek4.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def addEntries(self,d):
if 'aired' in metadata:
if 'ISO8601' in metadata['aired']:
if metadata['aired']['ISO8601'].endswith('Z'):
t = time.strptime(metadata['aired']['ISO8601'],'%Y-%m-%dT%H:%M:%SZ')
t = time.strptime(metadata['aired']['ISO8601'][:19],'%Y-%m-%dT%H:%M:%S')
else:
t = time.strptime(metadata['aired']['ISO8601'],'%Y-%m-%dT%H:%M:%S%z')
ilabels['aired'] = time.strftime('%Y-%m-%d',t)
Expand Down
Loading