From a41b443d156fac4996ddce30132da6f321e058c7 Mon Sep 17 00:00:00 2001 From: Tobias Hopp Date: Tue, 7 Jul 2020 19:32:26 +0200 Subject: [PATCH] Updating downloading function Took 6 minutes --- karaoke-management.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/karaoke-management.php b/karaoke-management.php index 6b77c32..97caa77 100644 --- a/karaoke-management.php +++ b/karaoke-management.php @@ -32,14 +32,18 @@ function main() $downloader->requestSong( $cmd[1] ); } catch ( RuntimeException $e ) { - echo "An error occured while processing the download.\n"; + echo "An error occurred while processing the download.\n"; echo $e->getMessage() . "\n"; } break; case 'downloadmusic': - echo "This function has an old CLI! Opening CLI...\n-----------\n"; + if( isset( $cmd[1] ) ) + { + echo "In this version, passing arguments to this function is not supported. Arguments will be ignored!\n"; + } + echo "Loading another CLI...\n-----------\n"; new AudioVideoHandler(); - echo "CLI exited. Continue with new CLI...\n"; + echo "CLI exited. Continue with main CLI...\n"; break; case 'setsid': if( !isset( $cmd[1] ) )