youtube: fix JSON extraction due to random layout change - frontends - front-en… | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 77eaa55b8a328b064063e8edb8096bab32754141 | |
parent 7a1838d494e6bcfef16149a4423022d38356b0bc | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 24 Nov 2020 01:03:36 +0100 | |
youtube: fix JSON extraction due to random layout change | |
Diffstat: | |
M youtube/youtube.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/youtube/youtube.c b/youtube/youtube.c | |
@@ -69,6 +69,8 @@ extractjson(const char *s, char **start, char **end) | |
if (!*end) | |
*end = strstr(*start, "}; \n"); | |
if (!*end) | |
+ *end = strstr(*start, "};<"); | |
+ if (!*end) | |
return -1; | |
(*end)++; | |