| | 18 | |
| | 19 | print "\nCATEGORY: Grabber Type\n\n" . |
| | 20 | "Grabbers generally fall into two categories:\n" . |
| | 21 | "(1) Grabbers that fetch detailed data by downloading one page\n" . |
| | 22 | " per show\n" . |
| | 23 | "(2) Grabbers that either cannot fetch detailed data, or fetch\n" . |
| | 24 | " it for many shows with each download (e.g. one download\n" . |
| | 25 | " per day, or one download for all shows)\n" . |
| | 26 | "Category 1 grabbers tend to be slow and use relatively large\n" . |
| | 27 | "amounts of bandwidth. Category 2 grabbers are quite fast\n" . |
| | 28 | "and download relatively few files.\n\n"; |
| | 29 | $config->{category} = ask("Which category is $grabber?"); |
| | 62 | |
| | 63 | if ($config->{config_reqd}) |
| | 64 | { |
| | 65 | print "\nShepherd needs a way of detecting whether $grabber has been\n" . |
| | 66 | "correctly configured or not. Please enter a command-line option\n" . |
| | 67 | "that will cause $grabber to exit with status 0 if it is configured\n" . |
| | 68 | "correctly, and exit with another status if it is not.\n\n"; |
| | 69 | $config->{option_ready} = ask("Command-line option for readiness? [default=--ready]"); |
| | 70 | $config->{option_ready} ||= '--ready'; |
| | 71 | } |
| | 72 | else |
| | 73 | { |
| | 74 | print "\nShepherd needs a way to run $grabber just to check that it compiles\n" . |
| | 75 | "on the user's system. Please enter a command-line option that will cause\n" . |
| | 76 | "$grabber to exit with status 0 as quickly as possible, i.e. preferably\n" . |
| | 77 | "without fetching any data.\n\n"; |
| | 78 | $config->{option_ready} = ask("Command-line option for compilation check? " . |
| | 79 | "[default=--version]"); |
| | 80 | $config->{option_read} ||= '--version'; |
| | 81 | } |