profile
viewpoint

Ask questions404 error to search videos in local

Logs:

127.0.0.1 - - [05/Nov/2020 11:58:17] "GET /ytsearch?q=php&s=0 HTTP/1.1" 200 -
127.0.0.1 - - [05/Nov/2020 11:58:17] "GET /static/styles.css HTTP/1.1" 304 -
127.0.0.1 - - [05/Nov/2020 11:58:17] "GET /static/semantic/semantic.min.css HTTP/1.1" 304 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /a/AATXAJwKXUbAEhGjXNmXaloq6ymXRsYPum9SU1DeHI8G=s88-c-k-c0x00ffffff-no-rj-mo?host=yt3.ggpht.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/-PxIZYSPwzQ/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLAj4QGR6Hc4fbt3slC5FgH6O9Js_w&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/NNp51W246mk/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBSRiLsvrjfgXyR1ndCT8DLKM6fLw&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/mBL9Athx7ms/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLAeDxMOXnj2M2AC3XiYTR9OdgztbA&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/yXzWfZ4N4xU/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBwVafjxeUPjKm4GarrABpe8tUkvQ&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/OfK_HXsNnRk/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDhf2Ly9SoZ-h9C0eobxd6d_JBIdw&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/P0qi-yw7Xo4/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBpMXiMc68jaWsZguGVsHaTWxk3IA&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/_bmIvOr9Kvg/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLA7LF0qNfGsq6olwlEhxa1xd6MRxw&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/kf2tSExk4YA/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBdmfrp-ddyz4LhB1oQEmadRpt70A&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:18] "GET /vi/3HZpC2_YviQ/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLAePjo5vyagUJbfv68fy_BqgSAEFA&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:19] "GET /vi/u1gzwxoCZwc/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDN90VcvSVD1GCz5cFZA-7KB5D00g&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:19] "GET /vi/jLCmqCqlPwA/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCYBxzREnXRCCc2eCfPtSZvz9p_QA&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:19] "GET /static/img/logo_simple.png HTTP/1.1" 304 -
127.0.0.1 - - [05/Nov/2020 11:58:19] "GET /vi/OK_JCtrrv-c/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDGteSuwB-TibWJO8_68ulbSzNibw&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:19] "GET /vi/7TF00hJI78Y/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBZW44Sd6vc_bz00aXzyk6OIPZ3Nw&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:19] "GET /vi/NihZYkNpslE/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDLxWmI0b-V73eqZMH_CA8YktSBGQ&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:19] "GET /vi/ZdP0KM49IVk/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBuCjCjwDkkYIHK4mTuT-1bSH31wg&host=i.ytimg.com HTTP/1.1" 404 -
127.0.0.1 - - [05/Nov/2020 11:58:19] "GET /vi/XBj_le81sAc/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCKBkIf0dYV-lDfIznxM8FjkNa9Xw&host=i.ytimg.com HTTP/1.1" 404 -

ytorg/Yotter

Answer questions FireMasterK

Consider a solution like https://github.com/TeamPiped/Piped-Backend/blob/master/src/main/java/me/kavin/piped/utils/ResponseHelper.java#L150-L179

I've made it as simple as possible while handling all cases. I have a variable called debug, and if that's set to true, it won't rewrite the URL and return the original link.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List