create $media_dir/s
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 15 Oct 2009 20:40:06 +0000 (22:40 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 15 Oct 2009 20:40:06 +0000 (22:40 +0200)
bin/mplayer.pl

index 08ec71f..bf8997b 100755 (executable)
@@ -197,7 +197,13 @@ sub html5tv {
                my $w = $prop->{width}  / $factor;
                my $h = $prop->{height} / $factor;
 
-               my $path = "$media_dir/s/$factor";
+               my $path = "$media_dir/s";
+               if ( ! -d $path ) {
+                       warn "create slides imaes in $path";
+                       mkdir $path;
+               }
+
+               $path .= '/' . $factor;
 
                if ( ! -d $path ) {
                        mkdir $path;