summaryrefslogtreecommitdiff
path: root/cgi-bin/playlists/playlist.pm
diff options
context:
space:
mode:
authorunknown <andrew@.cern.ch>2011-06-21 16:33:26 +0200
committerunknown <andrew@.cern.ch>2011-06-21 16:33:26 +0200
commitfa170afd817648f306e322802ca85b6abbd37f74 (patch)
tree44a68e68859429bc5f6bcb164111bcb8df1ee165 /cgi-bin/playlists/playlist.pm
Initial commit
Diffstat (limited to 'cgi-bin/playlists/playlist.pm')
-rw-r--r--cgi-bin/playlists/playlist.pm33
1 files changed, 33 insertions, 0 deletions
diff --git a/cgi-bin/playlists/playlist.pm b/cgi-bin/playlists/playlist.pm
new file mode 100644
index 0000000..5ee280e
--- /dev/null
+++ b/cgi-bin/playlists/playlist.pm
@@ -0,0 +1,33 @@
+package playlist;
+use strict;
+use Globals;
+
+return 1;
+
+sub new {
+ my ($proto, $playlist) = @_;
+ my $playlister = eval("use playlists::".$playlist."; ".$playlist."->new();");
+ if (!defined $playlister) {
+ $playlister = {
+ mime => "text/html",
+ playlist => openTemplate("error"),
+ };
+ $playlister->{playlist} =~ s/%NAME%/$playlist/g;
+ bless ($playlister);
+ }
+
+ return $playlister;
+}
+
+sub desc { return "Not Currently Working"; }
+
+sub header {
+ }
+
+sub track {
+ }
+
+sub dump {
+ my $self = shift;
+ return $self->{playlist};
+ }