summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2008-04-03 00:42:00 +0000
committerNick White <arch@njw.me.uk>2008-04-03 00:42:00 +0000
commitf85c3b947985ad0cdaec0197dea8e077c9d5f6d7 (patch)
treef23d297e2265505f4aa53ae07ca3008d9b36d256 /src/cli.c
parentb37c74e3fa320ffd23e31c10954243280f7d127d (diff)
Removed all media handling code
This patch has no new features. It just removes all of the media handling code. It was proving too hard to maintain, and lots of it is now available at the website anyway. git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-34
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/cli.c b/src/cli.c
index 56ccc9d..b085d02 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -59,47 +59,15 @@ void list_issues(iss ** issue, int no_of_issues, int verbose)
}
}
-void list_media(iss ** issue, int no_of_issues, int verbose)
-{
- int iss_no, med_no, med_global;
- for(iss_no=0, med_global=0;iss_no<=no_of_issues;iss_no++)
- {
- if(issue[iss_no]->no_of_media >= 0)
- {
- printf("%s\n", issue[iss_no]->title);
- if(verbose >= 2)
- printf("Year: %i; Months: %i - %i\n",issue[iss_no]->date.year,issue[iss_no]->date.firstmonth,issue[iss_no]->date.lastmonth);
- for(med_no=0; med_no <= (issue[iss_no]->no_of_media); med_no++, med_global++)
- {
- printf("[%i]\t", med_global);
- printf("%s\n", issue[iss_no]->media[med_no]->title);
- if(verbose >= 1)
- {
- printf("\t%s\n", issue[iss_no]->media[med_no]->uri);
- if(verbose >=2)
- {
- if(issue[iss_no]->media[med_no]->comment[0]!='\0')
- printf("\t%s\n", issue[iss_no]->media[med_no]->comment);
- }
- }
- }
- }
- }
-}
-
void showusage()
{
printf("Usage: getht [-ualmofhv] [-d issno] [-n medno] [-t tocfile]\n");
printf("-u | --update Update contents files\n");
printf("-a | --download-all Download all issues\n");
printf("-d | --download-issue issno Download issue number issno\n");
- printf("-n | --download-media medno Download media number n\n");
- printf("-o | --download-all-media Download all media\n");
printf("-f | --force Force re-download of existing files\n");
printf("-l | --list-issues List available issues\n");
- printf("-m | --list-media List available media\n");
printf("-t | --tocfile file Use alternative contents xml file\n");
- printf("-x | --mediatocfile file Use alternative media contents xml file\n");
printf("-h | --help Print this help message\n");
printf("-v | --verbose Make output more verbose\n");
printf("-V | --version Print version information\n");