Changeset 186
- Timestamp:
- 10/24/08 01:57:52 (3 months ago)
- Files:
-
- 1 modified
-
hellaworld/branches/autonzb/manage.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hellaworld/branches/autonzb/manage.php
r185 r186 21 21 // Give the user some help. 22 22 if (in_array('--help', $args)) { 23 die("Usage:\n\tphp manage.php remove <show name> [show name] ...\n" 24 ."OR\n" 23 die("Usage:\n" 25 24 ."\tphp manage.php add <url>\n" 25 ."OR\n" 26 ."\tphp manage.php remove <show name> [show name] ...\n" 26 27 ."OR\n" 27 28 ."\tphp manage.php list\n" 28 29 ."OR\n" 29 ."\tphp manage.php latest <show name> [episode number] "30 ."\tphp manage.php latest <show name> [episode number]\n" 30 31 ."OR\n" 31 ."\tphp manage.php [-v] cron [show name] [show name]");32 ."\tphp manage.php [-v] update [show name] [show name]\n"); 32 33 } 33 34 … … 97 98 // Loop over each feed, parse it, see if the latest episode has changed. 98 99 foreach ($manager->feeds(TRUE) as $feed) { 100 // Keep track if this feed was specifically requested. 101 $specified = FALSE; 102 99 103 // Only fetch the ones specified, if any. 100 104 if ((bool) count($args)) { … … 102 106 $verbose AND printf("Skipping %s\n", $feed['name']); 103 107 continue; 108 } else { 109 $specified = TRUE; 110 $verbose OR printf('Checking %s... ', $feed['name']); 104 111 }; 105 112 }; … … 130 137 } 131 138 } else { 132 $verboseAND printf("No new episode (%d)\n", $parsed->episode);139 ($specified OR $verbose) AND printf("No new episode (%d)\n", $parsed->episode); 133 140 } 134 141 }
