diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-10 02:06:44 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-10 02:06:44 +0200 |
commit | a5be59329daa54c8afeab01a8ee530fca07baaf7 (patch) | |
tree | 36e52f510704d440b34c9dda6df99de0013b8ed6 /src/Program.c | |
parent | 2f91655cbf65e83e6ed812c35ea492f2133fd6b9 (diff) |
Fallback to invidio.us if youtube-dl fails (happens with videos that require age verification)
Diffstat (limited to 'src/Program.c')
-rw-r--r-- | src/Program.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Program.c b/src/Program.c index 2509f6f..2c6759e 100644 --- a/src/Program.c +++ b/src/Program.c @@ -43,7 +43,8 @@ int exec_program(const char **args, ProgramOutputCallback output_callback, void close(fd[WRITE_END]); execvp(args[0], args); - return 0; + perror("execvp"); + exit(127); } else { /* parent */ close(fd[WRITE_END]); |