Skip to content

Commit

Permalink
Merge pull request #672 from anxdpanic/pr
Browse files Browse the repository at this point in the history
6.5.2
  • Loading branch information
anxdpanic authored Oct 20, 2019
2 parents 5cd53bf + 16198b0 commit b34e2de
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 4 additions & 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.youtube" name="YouTube" version="6.5.2~beta3" provider-name="anxdpanic, bromix">
<addon id="plugin.video.youtube" name="YouTube" version="6.5.2" provider-name="anxdpanic, bromix">
<requires>
<import addon="xbmc.python" version="2.20.0"/>
<import addon="script.module.six" version="1.11.0"/>
Expand All @@ -19,6 +19,9 @@
[fix] ended live streams not using mpeg-dash when enabled
[fix] subscriptions not showing latest videos
[upd] simplify youtube_resolver regex |contrib: Twilight0|
[lang] de_de strings |contrib: TehTux|
[lang] pl_pl strings |contrib: drrak|
[lang] nl_nl strings |contrib: Markman-B|
</news>
<assets>
<icon>icon.png</icon>
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
[fix] ended live streams not using mpeg-dash when enabled
[fix] subscriptions not showing latest videos
[upd] simplify youtube_resolver regex |contrib: Twilight0|
[lang] de_de strings |contrib: TehTux|
[lang] pl_pl strings |contrib: drrak|
[lang] nl_nl strings |contrib: Markman-B|

6.5.1
[add] get_live to youtube_requests module to retrieve live stream info for a channel
Expand Down
11 changes: 11 additions & 0 deletions resources/lib/youtube_plugin/kodion/utils/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
import os
import sqlite3
import time
import traceback

from .. import logger


class Storage(object):
Expand Down Expand Up @@ -236,6 +239,14 @@ def get_seconds_diff(self, current_stamp):
except ValueError: # current_stamp has no microseconds
stamp_format = '%Y-%m-%d %H:%M:%S'
stamp_datetime = datetime.datetime(*(self.strptime(current_stamp, stamp_format)[0:6]))
except TypeError:
logger.log_error('Exception while calculating timestamp difference: '
'current_stamp |{cs}|{cst}| stamp_format |{sf}|{sft}| \n{tb}'
.format(cs=current_stamp, cst=type(current_stamp),
sf=stamp_format, sft=type(stamp_format),
tb=traceback.print_exc())
)
return 604800 # one week

time_delta = current_datetime - stamp_datetime
total_seconds = 0
Expand Down

0 comments on commit b34e2de

Please sign in to comment.