summaryrefslogtreecommitdiffstats
path: root/playlist.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-13 07:27:16 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-13 07:27:16 +0000
commit6546c826432b5c18c22a2ac2cd7dd1d77a7002c3 (patch)
tree425469fcd29d5fbb26455220b40d3f576802dc38 /playlist.php
parentada740ec4123cf286c8abc3a09eb62ed80716fba (diff)
downloadampache-6546c826432b5c18c22a2ac2cd7dd1d77a7002c3.tar.gz
ampache-6546c826432b5c18c22a2ac2cd7dd1d77a7002c3.tar.bz2
ampache-6546c826432b5c18c22a2ac2cd7dd1d77a7002c3.zip
fixed playlists thing for real this time
Diffstat (limited to 'playlist.php')
-rw-r--r--playlist.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/playlist.php b/playlist.php
index 2e90a4f5..98a6a9b8 100644
--- a/playlist.php
+++ b/playlist.php
@@ -148,6 +148,15 @@ switch ($action) {
case 'show_import_playlist':
show_import_playlist();
break;
+ case 'import_playlist':
+ $catalog = new Catalog();
+ $catalog->import_m3u(scrub_in($_REQUEST['filename']));
+
+ $url = conf('web_path') . '/playlist.php';
+ $title = _('Playlist Imported');
+ $body = '';
+ show_confirmation($title,$body,$url);
+ break;
case 'set_track_numbers':
/* Make sure they have permission */
if (!$playlist->has_access()) {