diff --git a/data/interfaces/default/css/plexpy.css b/data/interfaces/default/css/plexpy.css index 5673d854..dee7a435 100644 --- a/data/interfaces/default/css/plexpy.css +++ b/data/interfaces/default/css/plexpy.css @@ -737,6 +737,9 @@ a:hover .dashboard-activity-poster { transition: all 0s; } .dashboard-activity-progress .bufferbar { + padding-right: 2px; + font-size: x-small; + text-align: right; padding-top: 6px; background-color: #444; position: absolute; @@ -744,6 +747,9 @@ a:hover .dashboard-activity-poster { overflow: hidden; } .dashboard-activity-progress .bar { + padding-right: 2px; + font-size: x-small; + text-align: right; padding-top: 6px; background-color: #faa732; background-image: -moz-linear-gradient(top, #fbb450, #f89406); @@ -757,6 +763,32 @@ a:hover .dashboard-activity-poster { height: 6px; overflow: hidden; } +.dashboard-activity-progress:hover .bar { + height: 14px; + padding-top: 0px; + transform-origin: top; + transition: all .2s ease; + border-radius: 0px 0px 3px 3px; +} +.dashboard-activity-progress:hover .dashboard-activity-progress-bar { + height: 14px; + transform-origin: top; + transition: all .2s ease; + border-radius: 0px 0px 3px 3px; +} +.dashboard-activity-progress:hover .bufferbar { + height: 14px; + padding-top: 0px; + transform-origin: top; + transition: all .2s ease; + border-radius: 0px 0px 3px 3px; +} + +.dashboard-activity-progress:hover+.dashboard-activity-metadata-wrapper { + margin-top: 8px; + transform-origin: top; + transition: all .2s ease; +} .dashboard-activity-metadata-wrapper { position: relative; width: 100%; @@ -2554,4 +2586,4 @@ table[id^='history_child'] thead th { margin: 0; width: 75px; height: 34px; -} \ No newline at end of file +} diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index d52ff65a..2fc84a2f 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -815,7 +815,7 @@ class PmsConnect(object): 'parent_rating_key': helpers.get_xml_attr(session, 'parentRatingKey'), 'grandparent_rating_key': helpers.get_xml_attr(session, 'grandparentRatingKey'), 'throttled': throttled, - 'transcode_progress': transcode_progress, + 'transcode_progress': int(round(helpers.cast_to_float(transcode_progress), 0)), 'transcode_speed': str(round(helpers.cast_to_float(transcode_speed), 1)), 'audio_decision': audio_decision, 'audio_channels': audio_channels, @@ -937,7 +937,7 @@ class PmsConnect(object): 'parent_rating_key': helpers.get_xml_attr(session, 'parentRatingKey'), 'grandparent_rating_key': helpers.get_xml_attr(session, 'grandparentRatingKey'), 'throttled': throttled, - 'transcode_progress': transcode_progress, + 'transcode_progress': int(round(helpers.cast_to_float(transcode_progress), 0)), 'transcode_speed': str(round(helpers.cast_to_float(transcode_speed), 1)), 'audio_decision': audio_decision, 'audio_channels': audio_channels, @@ -994,7 +994,7 @@ class PmsConnect(object): 'parent_rating_key': helpers.get_xml_attr(session, 'parentRatingKey'), 'grandparent_rating_key': helpers.get_xml_attr(session, 'grandparentRatingKey'), 'throttled': throttled, - 'transcode_progress': transcode_progress, + 'transcode_progress': int(round(helpers.cast_to_float(transcode_progress), 0)), 'transcode_speed': str(round(helpers.cast_to_float(transcode_speed), 1)), 'audio_decision': audio_decision, 'audio_channels': audio_channels, @@ -1051,7 +1051,7 @@ class PmsConnect(object): 'parent_rating_key': helpers.get_xml_attr(session, 'parentRatingKey'), 'grandparent_rating_key': helpers.get_xml_attr(session, 'grandparentRatingKey'), 'throttled': throttled, - 'transcode_progress': transcode_progress, + 'transcode_progress': int(round(helpers.cast_to_float(transcode_progress), 0)), 'transcode_speed': str(round(helpers.cast_to_float(transcode_speed), 1)), 'audio_decision': audio_decision, 'audio_channels': audio_channels, @@ -1141,7 +1141,7 @@ class PmsConnect(object): 'parent_rating_key': helpers.get_xml_attr(session, 'parentRatingKey'), 'grandparent_rating_key': helpers.get_xml_attr(session, 'grandparentRatingKey'), 'throttled': throttled, - 'transcode_progress': transcode_progress, + 'transcode_progress': int(round(helpers.cast_to_float(transcode_progress), 0)), 'transcode_speed': str(round(helpers.cast_to_float(transcode_speed), 1)), 'audio_decision': '', 'audio_channels': '', @@ -1700,4 +1700,4 @@ class PmsConnect(object): 'public_port': helpers.get_xml_attr(a, 'publicPort') } - return server_response \ No newline at end of file + return server_response