Compare commits

...

3 Commits

Author SHA1 Message Date
JonnyWong16
65a0a0eb7d v2.0.9-beta 2018-01-03 19:37:12 -08:00
JonnyWong16
f4206b401f Fix season/episode numbers zfill 2018-01-03 19:24:19 -08:00
JonnyWong16
99f8d24b3e Remove bottom padding on stats info 2018-01-03 16:35:22 -08:00
4 changed files with 18 additions and 12 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## v2.0.9-beta (2018-01-03)
* Notifications:
* Fix: Notifications failing due to incorrect season/episode number types.
## v2.0.8-beta (2018-01-03)
* Monitoring:

View File

@@ -1273,7 +1273,7 @@ a .dashboard-activity-metadata-user-thumb:hover {
.dashboard-stats-info {
width: 100%;
font-size: 12px;
padding: 3px 0 5px 15px;
padding: 3px 0 0 15px;
position: relative;
}
.dashboard-stats-info-list {

View File

@@ -622,8 +622,8 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
artist_name = notify_params['parent_title']
album_name = notify_params['title']
track_name = ''
season_num = notify_params['media_index'].zfill(1)
season_num00 = notify_params['media_index'].zfill(2)
season_num = str(notify_params['media_index']).zfill(1)
season_num00 = str(notify_params['media_index']).zfill(2)
num, num00 = format_group_index([helpers.cast_to_int(d['media_index'])
for d in child_metadata if d['parent_rating_key'] == rating_key])
@@ -636,12 +636,12 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
artist_name = notify_params['grandparent_title']
album_name = notify_params['parent_title']
track_name = notify_params['title']
season_num = notify_params['parent_media_index'].zfill(1)
season_num00 = notify_params['parent_media_index'].zfill(2)
episode_num = notify_params['media_index'].zfill(1)
episode_num00 = notify_params['media_index'].zfill(2)
track_num = notify_params['media_index'].zfill(1)
track_num00 = notify_params['media_index'].zfill(2)
season_num = str(notify_params['parent_media_index']).zfill(1)
season_num00 = str(notify_params['parent_media_index']).zfill(2)
episode_num = str(notify_params['media_index']).zfill(1)
episode_num00 = str(notify_params['media_index']).zfill(2)
track_num = str(notify_params['media_index']).zfill(1)
track_num00 = str(notify_params['media_index']).zfill(2)
available_params = {
# Global paramaters
@@ -651,7 +651,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'server_name': server_name,
'server_uptime': server_uptime,
'server_version': server_times.get('version', ''),
'action': notify_action.split('on_')[-1],
'action': notify_action.lstrip('on_'),
'datestamp': arrow.now().format(date_format),
'timestamp': arrow.now().format(time_format),
# Stream parameters
@@ -855,7 +855,7 @@ def build_server_notify_params(notify_action=None, **kwargs):
'server_name': server_name,
'server_uptime': server_uptime,
'server_version': server_times.get('version', ''),
'action': notify_action.split('on_')[-1],
'action': notify_action.lstrip('on_'),
'datestamp': arrow.now().format(date_format),
'timestamp': arrow.now().format(time_format),
# Plex Media Server update parameters

View File

@@ -1,2 +1,2 @@
PLEXPY_BRANCH = "beta"
PLEXPY_RELEASE_VERSION = "v2.0.8-beta"
PLEXPY_RELEASE_VERSION = "v2.0.9-beta"