Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix logging

  • Loading branch information...
commit 2f9cb4456de02ab82d046440ba53f59dcdbe78c0 1 parent 077523e
@miyagawa authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/fix-plex-thumbnail.pl
View
4 scripts/fix-plex-thumbnail.pl
@@ -35,12 +35,12 @@
}
if ($selected =~ /^metadata:/) {
- print "---> Changing poster of $id to $posters[0]\n";
if (@posters) {
+ print "---> Changing poster of $id to $posters[0]\n";
my $uri = URI->new("$plex_host/library/metadata/$id/poster");
$uri->query_form(url => $posters[0]);
my $res = $ua->put($uri);
- print "---> Thumbnail changed to: ", $res->content, "\n";
+ print "---> Thumbnail updated to: ", $res->content, "\n";
} else {
warn "Could not find alternate thumbnails for $id\n";
}
Please sign in to comment.
Something went wrong with that request. Please try again.