Permalink
Browse files

fix logging

  • Loading branch information...
1 parent 077523e commit 2f9cb4456de02ab82d046440ba53f59dcdbe78c0 @miyagawa committed Dec 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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";
}

0 comments on commit 2f9cb44

Please sign in to comment.