youtube: force older non-polymer youtube layout - frontends - front-ends for some sites (experiment)
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b0b7b93c7cbe102309e630e2fdc1627cd8681cf7
 (DIR) parent 8cd1b1e8bc679d948b001c41826a547b879937bd
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Wed, 10 Jun 2020 21:51:11 +0200
       
       youtube: force older non-polymer youtube layout
       
       Force older youtube layout, else youtube will try to randomly serve
       a new layout sometimes breaking the parsing.
       
       For now this option seems to work, but requires some testing.
       
       Diffstat:
         M youtube/youtube.c                   |       4 ++++
       
       1 file changed, 4 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/youtube/youtube.c b/youtube/youtube.c
       @@ -285,6 +285,10 @@ request_search(const char *s, const char *chan, const char *user,
                                strlcat(path, "video_view_count", sizeof(path));
                }
        
       +        /* force older youtube layout, else youtube will try to randomly serve
       +           a new layout sometimes breaking the parsing */
       +        strlcat(path, "&disable_polymer=1", sizeof(path));
       +
                /* check if request is too long (truncation) */
                if (strlen(path) >= sizeof(path) - 1)
                        return NULL;