Skip to content

Commit

Permalink
v1.5.4.2
Browse files Browse the repository at this point in the history
* Fix:  global: API call contained an invalid parameter (merged pull
request #62 from ljunkie)
* Fix:  current activity: music thumbs would not always display
  • Loading branch information
ecleese committed Mar 9, 2014
1 parent 34c52d4 commit 7b41045
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plexWatch/Web - v1.5.4.1
plexWatch/Web - v1.5.4.2
========================

A web front-end for plexWatch.
Expand Down
8 changes: 6 additions & 2 deletions change.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
1.5.4.2 master
* Fix: global: API call contained an invalid parameter (merged pull request #62 from ljunkie)
* Fix: current activity: music thumbs would not always display

1.5.4.1 master
* Minor CSS change to fix offset username in current activity instances.
* Additional platform images for future use.
* Fix: current activity: Minor CSS change to fix offset username in current activity instances.
* Add: global: Additional platform images for future use.

1.5.4 master
* Fix: global: PMS owners with no gravatar account would display broken user avatar images.
Expand Down
2 changes: 1 addition & 1 deletion charts.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?query=c&X-Plex-Token=".$myPlexAuthToken."")) {
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?X-Plex-Token=".$myPlexAuthToken."")) {
$statusSessions = simplexml_load_string($fileContents) or die ("Failed to access Plex Media Server. Please check your settings.");
}

Expand Down
38 changes: 37 additions & 1 deletion css/plexwatch.css
Original file line number Diff line number Diff line change
Expand Up @@ -7027,7 +7027,6 @@ perspective: 1000;
-o-backface-visibility: hidden;
backface-visibility: hidden;
clear: both;

}

.art-face img {
Expand Down Expand Up @@ -7063,6 +7062,43 @@ perspective: 1000;
backface-visibility: hidden;
}

.art-music-face {
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 100%;
width: 250px;
height: 141px;
overflow: hidden;
position: relative;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: 0 0 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0 0 0px rgba(0,0,0,0.75);
box-shadow: 0 0 0px rgba(0,0,0,0.75);
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 1000;
-moz-perspective: 1000;
-ms-perspective: 1000;
-o-perspective: 1000;
perspective: 1000;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
clear: both;
}

.container-fluid-info {
padding-right: 0px;
padding-left: 0px;
Expand Down
6 changes: 3 additions & 3 deletions includes/current_activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?query=c&X-Plex-Token=".$plexWatch['myPlexAuthToken']."")) {
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?X-Plex-Token=".$plexWatch['myPlexAuthToken']."")) {
$statusSessions = simplexml_load_string($fileContents) or die ('<div class=\"alert alert-warning \">Failed to access Plex Media Server. Please check your settings.</div>');
}
}else{
Expand Down Expand Up @@ -687,12 +687,12 @@
}
}

$sessionsThumbUrl = "".$plexWatchPmsUrl."/photo/:/transcode?url=http://127.0.0.1:".$plexWatch['pmsHttpPort']."".$sessions['art']."&width=300&height=169";
$sessionsThumbUrl = "".$plexWatchPmsUrl."/photo/:/transcode?url=http://127.0.0.1:".$plexWatch['pmsHttpPort']."".$sessions['thumb']."&width=300&height=300";


echo "<div class='instance'>";

echo "<div class='poster'><div class='dashboard-activity-poster-face'><img src='includes/img.php?img=".urlencode($sessionsThumbUrl)."'></img></div>";
echo "<div class='poster'><div class='dashboard-activity-poster-face'><div class='art-music-face' style='background-image:url(includes/img.php?img=".urlencode($sessionsThumbUrl).")'></div></div>";

echo "<div class='dashboard-activity-metadata-wrapper'>";

Expand Down
2 changes: 1 addition & 1 deletion includes/current_activity_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?query=c&X-Plex-Token=".$plexWatch['myPlexAuthToken']."")) {
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?X-Plex-Token=".$plexWatch['myPlexAuthToken']."")) {
$statusSessions = simplexml_load_string($fileContents) or die ('<div class=\"alert alert-warning \">Failed to access Plex Media Server. Please check your settings.</div>');
}
}else{
Expand Down
4 changes: 2 additions & 2 deletions includes/recently_added.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/library/recentlyAdded?query=c&X-Plex-Container-Start=0&X-Plex-Container-Size=".$containerSize."&X-Plex-Token=".$myPlexAuthToken."")) {
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/library/recentlyAdded?X-Plex-Container-Start=0&X-Plex-Container-Size=".$containerSize."&X-Plex-Token=".$myPlexAuthToken."")) {
$recentRequest = simplexml_load_string($fileContents) or die ("<div class='alert alert-warning'>Failed to access Plex Media Server. Please check your settings.</div>");
}
}else{
$myPlexAuthToken = '';
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/library/recentlyAdded?query=c&X-Plex-Container-Start=0&X-Plex-Container-Size=".$containerSize)) {
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/library/recentlyAdded?X-Plex-Container-Start=0&X-Plex-Container-Size=".$containerSize)) {
$recentRequest = simplexml_load_string($fileContents) or die ("<div class='alert alert-warning'>Failed to access Plex Media Server. Please check your settings.</div>");
}

Expand Down
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
$fileContents = '';
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?query=c&X-Plex-Token=".$myPlexAuthToken."")) {
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?X-Plex-Token=".$myPlexAuthToken."")) {
$statusSessions = simplexml_load_string($fileContents) or die ("<div class=\"alert alert-warning \">Failed to access Plex Media Server. Please check your settings.</div>");
}
$sections = simplexml_load_file("".$plexWatchPmsUrl."/library/sections?query=c&X-Plex-Token=".$myPlexAuthToken."") or die ("<div class=\"alert alert-warning \">Failed to access Plex Media Server. Please check your settings.</div>");
$sections = simplexml_load_file("".$plexWatchPmsUrl."/library/sections?X-Plex-Token=".$myPlexAuthToken."") or die ("<div class=\"alert alert-warning \">Failed to access Plex Media Server. Please check your settings.</div>");
}else{
$myPlexAuthToken = '';
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?query=c&X-Plex-Token=".$myPlexAuthToken."")) {
if ($fileContents = file_get_contents("".$plexWatchPmsUrl."/status/sessions?X-Plex-Token=".$myPlexAuthToken."")) {
$statusSessions = simplexml_load_string($fileContents) or die ("<div class=\"alert alert-warning \">Failed to access Plex Media Server. Please check your settings.</div>");
}
$sections = simplexml_load_file("".$plexWatchPmsUrl."/library/sections") or die ("<div class=\"alert alert-warning \">Failed to access Plex Media Server. Please check your settings.</div>");
Expand Down
6 changes: 3 additions & 3 deletions info.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
$id = $_GET['id'];
$infoUrl = "".$plexWatchPmsUrl."/library/metadata/".$id."?query=c&X-Plex-Token=".$myPlexAuthToken."";
$infoUrl = "".$plexWatchPmsUrl."/library/metadata/".$id."?X-Plex-Token=".$myPlexAuthToken."";
}else{
$myPlexAuthToken = '';
$id = $_GET['id'];
Expand Down Expand Up @@ -537,7 +537,7 @@
}else if ($xml->Directory['type'] == "season") {

if (!empty($plexWatch['myPlexAuthToken'])) {
$parentInfoUrl = "".$plexWatchPmsUrl."/library/metadata/".$xml->Directory['parentRatingKey']."?query=c&X-Plex-Token=".$myPlexAuthToken."";
$parentInfoUrl = "".$plexWatchPmsUrl."/library/metadata/".$xml->Directory['parentRatingKey']."?X-Plex-Token=".$myPlexAuthToken."";
}else{
$parentInfoUrl = "".$plexWatchPmsUrl."/library/metadata/".$xml->Directory['parentRatingKey']."";
}
Expand Down Expand Up @@ -613,7 +613,7 @@
echo "</div>";

if (!empty($plexWatch['myPlexAuthToken'])) {
$seasonEpisodesUrl = "".$plexWatchPmsUrl."/library/metadata/".$id."/children?query=c&X-Plex-Token=".$myPlexAuthToken."";
$seasonEpisodesUrl = "".$plexWatchPmsUrl."/library/metadata/".$id."/children?X-Plex-Token=".$myPlexAuthToken."";
}else{
$seasonEpisodesUrl = "".$plexWatchPmsUrl."/library/metadata/".$id."/children";
}
Expand Down
2 changes: 1 addition & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<div class="settings-general-info">

<ul>
<li>plexWatch/Web Version: <strong>v1.5.4.1</strong></li>
<li>plexWatch/Web Version: <strong>v1.5.4.2</strong></li>

<?php
$db = dbconnect();
Expand Down
6 changes: 3 additions & 3 deletions user.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@
if ($recentXml['type'] == "episode") {
if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."?query=c&X-Plex-Token=".$myPlexAuthToken."";
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."?X-Plex-Token=".$myPlexAuthToken."";
}else{
$myPlexAuthToken = '';
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."";
Expand Down Expand Up @@ -516,7 +516,7 @@
}else if ($recentXml['type'] == "movie") {
if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."?query=c&X-Plex-Token=".$myPlexAuthToken."";
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."?X-Plex-Token=".$myPlexAuthToken."";
}else{
$myPlexAuthToken = '';
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."";
Expand Down Expand Up @@ -547,7 +547,7 @@
}else if ($recentXml['type'] == "clip") {
if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."?query=c&X-Plex-Token=".$myPlexAuthToken."";
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."?X-Plex-Token=".$myPlexAuthToken."";
}else{
$myPlexAuthToken = '';
$recentMetadata = "".$plexWatchPmsUrl."/library/metadata/".$recentXml['ratingKey']."";
Expand Down

0 comments on commit 7b41045

Please sign in to comment.