Automatic Scan

Have a good idea ? Want to suggest something ? Have a couple of lines of code to back it up ?
Post it here !

Automatic Scan

Postby cowboy on 28-03-2008 16:12

I am always updating my collection. It would be great if the scan could be setup on a automatic time like a cron task or something with storage of the report so I can view the report later and make changes to the files that didn't load.

This is a great product. My first use was gnump3d it is based on perl real cpu intensive. I am running it on Ubuntu 7.10 with a P4 3.0Ghz and 1.5Ghz Ram and the sound was so choppy when I was outside my local lan. I switch to Ampjuke and I got the best stream ever.

Thanks for the great product.
cowboy
Newbie
Newbie
 
Posts: 6
Joined: 28-03-2008 16:05
Location: United States

Postby Michael on 28-03-2008 18:57

Hello cowboy,

Welcome to the AmpJuke forum and thanks for posting.

Your question about the cron stuff has been answered earlier in this thread in the forum.

It's a fairly long thread, but the bottom line is that a minor, hard-coded modification of 'scan.php' is needed (there's even some code to copy+paste).
kanna did the last modification.

You mentioned something about a report...
I don't actually remember if that was a part of the solution in the above mentioned thread.
However, two things are needed:
1. Redirect the output of your cron-job to a file (maybe appending the output of 'scan.php' to a textfile somewhere).
2. Alter the following in 'scan.php' (around line 314):
Code: Select all
// Step 8: If errors: Print them.            
      if (($error_flag!=0) && ($error_flag!=5) && ($print_details=="1")) {

...to...
Code: Select all
// Step 8: If errors: Print them.            
      if (($error_flag!=0) && ($error_flag!=5)) {

...basically eliminating the check for $print_details (=errors will be printed no matter what).

Hope all of this info. helps to make progress (dunno what your exact 'level' of expertise is within PHP)..

Should you run into any kind of trouble in relation to this, please update this thread (well...feel free to do so in any case...) and I'll try to help you out in order to the the cron stuff to work on your box.


//Michael.

P.S. And hey: Thanks for the nice words about AmpJuke - it's really appreciated :!:
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark

Postby cowboy on 28-03-2008 22:43

Thanks Michael it worked like a champ. I guess I should of searched the thread before posting.
cowboy
Newbie
Newbie
 
Posts: 6
Joined: 28-03-2008 16:05
Location: United States

Postby Michael on 28-03-2008 23:47

Thanks Michael it worked like a champ.
You're welcome - great to know the suggested solution worked as expected, - thanks a lot for the feedback.

I guess I should of searched the thread before posting.
That's OK. Really.
As they say: "There are no dumb questions only dumb answers" (or something similar, at least here in Denmark).

Should you at a later stage come across other problems or feature requests in relation to AmpJuke, please come back and post it and/or check the FAQ.

Have a nice weekend.

//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark


Return to Requests / suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron