Compare commits
4 Commits
v2.0.22-be
...
v2.0.22
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a08bce2073 | ||
![]() |
4e9c8322c3 | ||
![]() |
89bfe85be3 | ||
![]() |
98d994591c |
@@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v2.0.22 (2018-03-10)
|
||||||
|
|
||||||
|
* Tautulli v2 release!
|
||||||
|
|
||||||
|
|
||||||
## v2.0.22-beta (2018-03-09)
|
## v2.0.22-beta (2018-03-09)
|
||||||
|
|
||||||
* Notifications:
|
* Notifications:
|
||||||
|
@@ -186,7 +186,8 @@ def main():
|
|||||||
plexpy.DB_FILE = os.path.join(plexpy.DATA_DIR, database.FILENAME)
|
plexpy.DB_FILE = os.path.join(plexpy.DATA_DIR, database.FILENAME)
|
||||||
|
|
||||||
# Move 'plexpy.db' to 'tautulli.db'
|
# Move 'plexpy.db' to 'tautulli.db'
|
||||||
if os.path.isfile(os.path.join(plexpy.DATA_DIR, 'plexpy.db')):
|
if os.path.isfile(os.path.join(plexpy.DATA_DIR, 'plexpy.db')) and \
|
||||||
|
not os.path.isfile(os.path.join(plexpy.DATA_DIR, plexpy.DB_FILE)):
|
||||||
os.rename(os.path.join(plexpy.DATA_DIR, 'plexpy.db'), plexpy.DB_FILE)
|
os.rename(os.path.join(plexpy.DATA_DIR, 'plexpy.db'), plexpy.DB_FILE)
|
||||||
|
|
||||||
if plexpy.DAEMON:
|
if plexpy.DAEMON:
|
||||||
|
@@ -292,7 +292,11 @@ function millisecondsToMinutes(ms, roundToMinute) {
|
|||||||
if (ms > 0) {
|
if (ms > 0) {
|
||||||
var minutes = Math.floor(ms / 60000);
|
var minutes = Math.floor(ms / 60000);
|
||||||
var seconds = ((ms % 60000) / 1000).toFixed(0);
|
var seconds = ((ms % 60000) / 1000).toFixed(0);
|
||||||
|
if (roundToMinute) {
|
||||||
|
return (seconds >= 30 ? (minutes + 1) : minutes);
|
||||||
|
} else {
|
||||||
return (seconds == 60 ? (minutes + 1) + ":00" : minutes + ":" + (seconds < 10 ? "0" : "") + seconds);
|
return (seconds == 60 ? (minutes + 1) + ":00" : minutes + ":" + (seconds < 10 ? "0" : "") + seconds);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (roundToMinute) {
|
if (roundToMinute) {
|
||||||
return '0';
|
return '0';
|
||||||
|
@@ -666,6 +666,11 @@ class PmsConnect(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
elif metadata_type == 'show':
|
elif metadata_type == 'show':
|
||||||
|
# Workaround for for duration sometimes reported in minutes for a show
|
||||||
|
duration = helpers.get_xml_attr(metadata_main, 'duration')
|
||||||
|
if duration.isdigit() and int(duration) < 1000:
|
||||||
|
duration = unicode(int(duration) * 60 * 1000)
|
||||||
|
|
||||||
metadata = {'media_type': metadata_type,
|
metadata = {'media_type': metadata_type,
|
||||||
'section_id': section_id,
|
'section_id': section_id,
|
||||||
'library_name': library_name,
|
'library_name': library_name,
|
||||||
@@ -685,7 +690,7 @@ class PmsConnect(object):
|
|||||||
'rating': helpers.get_xml_attr(metadata_main, 'rating'),
|
'rating': helpers.get_xml_attr(metadata_main, 'rating'),
|
||||||
'audience_rating': helpers.get_xml_attr(metadata_main, 'audienceRating'),
|
'audience_rating': helpers.get_xml_attr(metadata_main, 'audienceRating'),
|
||||||
'user_rating': helpers.get_xml_attr(metadata_main, 'userRating'),
|
'user_rating': helpers.get_xml_attr(metadata_main, 'userRating'),
|
||||||
'duration': helpers.get_xml_attr(metadata_main, 'duration'),
|
'duration': duration,
|
||||||
'year': helpers.get_xml_attr(metadata_main, 'year'),
|
'year': helpers.get_xml_attr(metadata_main, 'year'),
|
||||||
'thumb': helpers.get_xml_attr(metadata_main, 'thumb'),
|
'thumb': helpers.get_xml_attr(metadata_main, 'thumb'),
|
||||||
'parent_thumb': helpers.get_xml_attr(metadata_main, 'parentThumb'),
|
'parent_thumb': helpers.get_xml_attr(metadata_main, 'parentThumb'),
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
PLEXPY_BRANCH = "beta"
|
PLEXPY_BRANCH = "master"
|
||||||
PLEXPY_RELEASE_VERSION = "v2.0.22-beta"
|
PLEXPY_RELEASE_VERSION = "v2.0.22"
|
||||||
|
Reference in New Issue
Block a user