Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
xmltv: use --quiet argument for grabber binary
  • Loading branch information
perexg committed Nov 30, 2014
1 parent 1d9a348 commit 01e7cc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/epggrab/module.c
Expand Up @@ -282,12 +282,13 @@ char *epggrab_module_grab_spawn ( void *m )
int rd = -1, outlen;
char *outbuf;
epggrab_module_int_t *mod = m;
const char *argv[] = { NULL, "--quiet", NULL };

/* Debug */
tvhlog(LOG_INFO, mod->id, "grab %s", mod->path);

/* Grab */
outlen = spawn_and_give_stdout(mod->path, NULL, NULL, &rd, NULL, 1);
outlen = spawn_and_give_stdout(mod->path, (char **)argv, NULL, &rd, NULL, 1);

if (outlen < 0)
goto error;
Expand Down
1 change: 0 additions & 1 deletion src/epggrab/module/xmltv.c
Expand Up @@ -713,7 +713,6 @@ static void _xmltv_load_grabbers ( void )
char *argv[] = {
NULL,
(char *)"--description",
(char *)"--quiet",
NULL
};
path = strdup(tmp);
Expand Down

1 comment on commit 01e7cc1

@bluzee
Copy link
Contributor

@bluzee bluzee commented on 01e7cc1 Nov 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all grabbers support --quiet. Can this be optional? Breaks EPG with tv_grab_file.

2014-11-30 09:29:16.990 [ INFO] spawn: Executing "/usr/bin/tv_grab_file"
2014-11-30 09:29:16.993 [ ERROR] spawn: /usr/bin/tv_grab_file: illegal option -- -
2014-11-30 09:29:16.993 [ ERROR] spawn: unknown option: -
2014-11-30 09:29:17.000 [ ERROR] spawn: Usage: tv_grab_file: [--description] [--version] [--capabilities]
2014-11-30 09:29:17.000 [ ERROR] /usr/bin/tv_grab_file: no output detected
2014-11-30 09:29:17.000 [WARNING] /usr/bin/tv_grab_file: grab returned no data

Please sign in to comment.