Esempio n. 1
0
     }
     # Write the dummy file
     @touch($dummy);
     # Tweet ?
     if ($twitter_enabled == true and $isQueue == false) {
         $strTweetFinal = str_replace('%download', $current_nzb['description']['value'], $strTweet);
         $objTwitter->updateStatus($strTweetFinal);
         # Logging tweet event
         $_msg = "Tweeting download " . $current_nzb['description']['value'];
         $objNZBLog->writeLine($_msg);
         if ($run_mode) {
             $run_mode_result .= $_msg . "<br />";
         }
     }
     # Download succeeded, wegschrijven succesvolle hit
     $objDownload->set_hit($current_key);
     # Write log entry
     $_msg = "Found NZB file for " . $current_nzb['description']['value'] . " on TVnzb";
     if ($isQueue) {
         $_msg .= " (add to verification queue)";
     }
     $objNZBLog->writeLine($_msg);
     if ($run_mode) {
         $run_mode_result .= $_msg . "<br />";
     }
 } else {
     # Delete file because NZB is invalid
     unlink($nzbFolder . $strFileNZB . '.nzb');
     # Write log entry
     $_msg = "NZB invalid, file deleted!";
     $objNZBLog->writeLine($_msg);