Skip to content

Commit

Permalink
Added title to the playlist files
Browse files Browse the repository at this point in the history
  • Loading branch information
hitolaus committed Jul 31, 2012
1 parent be19378 commit 35d5204
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plsgen.pl
Expand Up @@ -23,7 +23,9 @@
my $pls_output_file = "/c/media/Series/Comedy.pls";
my $m3u_output_file = "/c/media/Series/Comedy.m3u";

my $base_dir = "/c/media/Series";
my $base_dir = "/c/media/Series";
my $share_dir = "/Media/Series";

my @series_names = (
"Two and a Half Men",
"The Big Bang Theory",
Expand All @@ -44,7 +46,7 @@
my $host = hostname();
my $addr = inet_ntoa(scalar(gethostbyname($host)) || 'localhost');

my $share_prefix = "smb://".$addr."/Media/Series";
my $share_prefix = "smb://". $addr . $share_dir;


my @series_dirs;
Expand Down Expand Up @@ -119,7 +121,7 @@ sub create_m3u
print M3U "#EXTM3U\n";
for (my $i = 0; $i < $#random_pls_urls+1; $i++) {
if ($i < $max_pls_files) {
print M3U "#EXTINF:-1, ".prettyprint_series($random_pls_urls[$i])."\n";
print M3U "#EXTINF:0,".prettyprint_series($random_pls_urls[$i])."\n";
print M3U $random_pls_urls[$i]."\n";;
}
}
Expand Down

0 comments on commit 35d5204

Please sign in to comment.