Page 1 of 1

Download album Link doesn't work

Posted: Sun Dec 04, 2011 6:20 pm
by joh4nnes
Hello Jukebox specialists,

I've installed jukebox on my homeserver, used by xampp - and it will work for single files very fine.

So i tried to manage the Download album Link, but i get only a error report like:

Code: Select all

	Exec error
Command: 7za a -tzip "Z:\homeserv\xampp\htdocs\netjukebox\cache\a\1\a1374407b72c13bceb6fde005f9420b15bf06f17\dnisbkosx3_bc9a8c2dcbdf7b774eb782baae6556fd.zip" @"Z:\homeserv\xampp\htdocs\netjukebox\cache\a\1\a1374407b72c13bceb6fde005f9420b15bf06f17\dnisbkosx3.txt"
System output:
System return code: 1
i configured the config.inc.php like this:

Code: Select all

$cfg['download_album_mime_type']	= 'application/zip';
$cfg['download_album_extension']    = 'zip';
$cfg['download_album_cmd']          = $cfg['Z:/homeserv/xampp/htdocs/netjukebox/codec/']. '7za a -tzip -mx0 -- %destination @%list'
but it doesn't work properly...

anybody here an idea, what is wrong in this config? -> i used a windows 7 system - i think, anybody knows it from the file structure.

i tried different cmd configs - but nothing happend.

if i try to download a single file with the download album link - it works. :P

need a hint, or an advice to set it up right :mrgreen:

Add:// my Music is on Drive G - and my Homeserver is on Drive Z - don't know, whether this info is needed....
and another Question -> why jukebox generates such a mismatch of code, lokks in the error message?

so far
Hannes

Re: Download album Link doesn't work

Posted: Sun Dec 04, 2011 6:44 pm
by wbartels
Try this:

Code: Select all

//  +------------------------------------------------------------------------+
//  | Binary directory                                                       |
//  +------------------------------------------------------------------------+
//  | Use the native directory scheme with a trailing slash or backslash.    |
//  | ESCAPE THE LAST BACKSLASH WITH A BACKSLASH OR USE DOUBLE QUOTES!       |
//  |                                                                        |
//  | Windows:        'D:\Codec\\';                                          |
//  | Linux/Unix/OSX: '/usr/bin/';                                           |
//  |                 '/usr/local/bin/';                                     |
//  |                 '/opt/bin/';                                           |
//  |                 '/opt/local/bin/';                                     |
//  |                                                                        |
//  | BE AWARE THAT START CAN SUPPRESS ERROR MESSAGES ON SOME SETUPS!        |
//  | The process priority can be set with start or nice depending on the    |
//  | operating system:                                                      |
//  |                                                                        |
//  | Windows:        'start /b /low ...';                                   |
//  | Linux/Unix/OSX: 'nice -n 20 ...';                                      |
//  +------------------------------------------------------------------------+
$cfg['bin_dir']                     = 'start /b /low Z:\homeserv\xampp\htdocs\netjukebox\codec\\';
And use the default settings for:

Code: Select all

//  +------------------------------------------------------------------------+
//  | Download album (with 7-Zip)                                            |
//  +------------------------------------------------------------------------+
//  | netjukebox always encodes the list file in UTF-8                       |
//  | The command -scsutf-8 is not working on all operating systems! This    |
//  | shouldn't be a problem because 7-Zip by default uses UTF-8 encoding    |
//  | for the list file.                                                     |
//  |                                                                        |
//  | http://www.7-zip.org                                                   |
//  +------------------------------------------------------------------------+
$cfg['download_album_mime_type']	= 'application/zip';
$cfg['download_album_extension']    = 'zip';
$cfg['download_album_cmd']          = $cfg['bin_dir'] . '7za a -tzip -mx0 -- %destination @%list';

Re: Download album Link doesn't work

Posted: Sun Dec 04, 2011 8:08 pm
by joh4nnes
GREAT!

thanks for the quick answer!

now, it works...

and now, i know my mistake!

best regards
Hannes