diff --git a/CHANGELOG.md b/CHANGELOG.md index 958a8c44..47a18108 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## v1.2.3 (2015-10-18) + +* Added "remaining time" as notification substitution. +* Fix bug on home stats cards. +* Fix visual bug on user page. + + ## v1.2.2 (2015-10-12) * Add server discovery on first run. diff --git a/data/interfaces/default/css/plexpy.css b/data/interfaces/default/css/plexpy.css index 22e749c2..f5d89b6a 100644 --- a/data/interfaces/default/css/plexpy.css +++ b/data/interfaces/default/css/plexpy.css @@ -1518,7 +1518,7 @@ a:hover .item-children-poster { } .user-overview-stats-instance { float: left; - width: 350px; + width: 400px; height: 80px; margin-bottom: 25px; } @@ -1531,7 +1531,7 @@ a:hover .item-children-poster { .user-overview-stats-instance li { float: left; list-style: none; - width: 340px; + width: 100%; height: 90px; } .user-overview-stats-instance-text { diff --git a/data/interfaces/default/home_stats.html b/data/interfaces/default/home_stats.html index f65871f2..10832c41 100644 --- a/data/interfaces/default/home_stats.html +++ b/data/interfaces/default/home_stats.html @@ -65,7 +65,7 @@ DOCUMENTATION :: END %> % if data: -% if data[0]['rows']: +% if data[0]['stat_id']: % else: diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 2f2637cc..dc9fce5b 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -320,25 +320,27 @@ def build_notify_text(session, state): available_params = {'server_name': server_name, 'user': session['friendly_name'], + 'platform': session['platform'], 'player': session['player'], + 'media_type': session['media_type'], 'title': full_title, 'show_name': item_metadata['grandparent_title'], 'episode_name': item_metadata['title'], - 'platform': session['platform'], - 'media_type': session['media_type'], + 'artist_name': item_metadata['grandparent_title'], + 'album_name': item_metadata['parent_title'], + 'season_num': item_metadata['parent_index'], + 'season_num00': item_metadata['parent_index'].zfill(2), + 'episode_num': item_metadata['index'], + 'episode_num00': item_metadata['index'].zfill(2), 'transcode_decision': transcode_decision, 'year': item_metadata['year'], 'studio': item_metadata['studio'], 'content_rating': item_metadata['content_rating'], 'summary': item_metadata['summary'], - 'season_num': item_metadata['parent_index'], - 'season_num00': item_metadata['parent_index'].zfill(2), - 'episode_num': item_metadata['index'], - 'episode_num00': item_metadata['index'].zfill(2), - 'album_name': item_metadata['parent_title'], 'rating': item_metadata['rating'], 'duration': duration, 'stream_duration': stream_duration, + 'remaining_duration': duration - view_offset, 'progress': view_offset, 'progress_percent': progress_percent } diff --git a/plexpy/version.py b/plexpy/version.py index 40c9dce1..44330b0c 100644 --- a/plexpy/version.py +++ b/plexpy/version.py @@ -1,2 +1,2 @@ PLEXPY_VERSION = "master" -PLEXPY_RELEASE_VERSION = "1.2.2" +PLEXPY_RELEASE_VERSION = "1.2.3"