Changeset 188
- Timestamp:
- 10/24/08 13:31:08 (3 months ago)
- Files:
-
- 1 modified
-
hellaworld/branches/autonzb/manage.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hellaworld/branches/autonzb/manage.php
r186 r188 26 26 ."\tphp manage.php remove <show name> [show name] ...\n" 27 27 ."OR\n" 28 ."\tphp manage.php list\n"28 ."\tphp manage.php [-v] list\n" 29 29 ."OR\n" 30 30 ."\tphp manage.php latest <show name> [episode number]\n" … … 61 61 // Output the list of feeds we have. 62 62 case 'list': 63 $feeds = $manager->feeds( );63 $feeds = $manager->feeds(TRUE); 64 64 $unit = (count($feeds) == 1) ? 'feed' : 'feeds'; 65 $maxlen = arr::maxkeylen($feeds); 66 $format = $verbose ? "\t%-".$maxlen."s %d\n" : "\t%s\n"; 65 67 66 68 echo sprintf('%d %s:', count($feeds), $unit), "\n"; 67 69 foreach ($feeds as $feed) 68 echo "\t", $feed, "\n";70 printf($format, $feed['name'], $feed['latest_episode']); 69 71 break; 70 72
