Răsfoiți Sursa

Make the port number optional, as implied in the usage example

Zachary Kotlarek 14 ani în urmă
părinte
comite
37bf7b8a8d
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      renameFromDisk.pl

+ 3 - 0
renameFromDisk.pl

@@ -22,6 +22,9 @@ if (!$host || !$user || !$pass || (!$section && !$series)) {
 }
 
 # Globals
+if (!($host =~ /\:\d+$/)) {
+	$host .= ':32400';
+}
 my $baseURL = 'http://' . $host;
 my $auth    = 'X-Plex-User=' . $user . '&X-Plex-Pass=' . $pass;
 my $xml     = new XML::Simple;