Download album Link doesn't work

Windows related discussion about netjukebox
Post Reply
joh4nnes
User
Posts: 2
Joined: Sun Dec 04, 2011 6:09 pm

Download album Link doesn't work

Post by joh4nnes » Sun Dec 04, 2011 6:20 pm

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

User avatar
wbartels
netjukebox developer
Posts: 790
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Download album Link doesn't work

Post by wbartels » Sun Dec 04, 2011 6:44 pm

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';

joh4nnes
User
Posts: 2
Joined: Sun Dec 04, 2011 6:09 pm

Re: Download album Link doesn't work

Post by joh4nnes » Sun Dec 04, 2011 8:08 pm

GREAT!

thanks for the quick answer!

now, it works...

and now, i know my mistake!

best regards
Hannes

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest