diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-06-08 02:13:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-06-08 02:13:00 +0200 |
commit | c71a676edf4ccc583652e1f31c571f3cd898d60e (patch) | |
tree | 18c43cd7fa018e9426d14dde3fa18530ca3c6e14 | |
parent | 91db117734301a24e47ea784a677ec1b3df44465 (diff) |
Fix youtube for schizo proxy users
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | video_player/src/main.cpp | 10 |
3 files changed, 10 insertions, 3 deletions
@@ -301,3 +301,4 @@ Make history (local-manga and others) use relative path to the downloads directo Keep the rooms that we were kicked/banned from so we can still read them and re-read the reason for why we were kicked/banned. Or add a list of historical rooms with leave reason. Fix youtube broken without yt-dlp. Unable to download video. Use different font for chinese, japanese and korean (or maybe only for korean). +Include noto font instead of having to install it. Only require installing it for other noto fonts. diff --git a/src/main.cpp b/src/main.cpp index b09cf14..3d675bc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,7 +4,7 @@ int main(int argc, char **argv) { setlocale(LC_ALL, "C"); // Sigh... stupid C - // mallopt(M_MMAP_THRESHOLD, 65536); + mallopt(M_MMAP_THRESHOLD, 65536); QuickMedia::Program program; return program.run(argc, argv); } diff --git a/video_player/src/main.cpp b/video_player/src/main.cpp index 54b5bb4..e2a8629 100644 --- a/video_player/src/main.cpp +++ b/video_player/src/main.cpp @@ -473,8 +473,14 @@ static int64_t size_fn(void *cookie) { if(res == 0) { size_t header_start = str_find_case_insensitive(buffer, 0, "200 OK", 6); if(header_start == std::string::npos) { - res = MPV_ERROR_UNSUPPORTED; - goto end; + header_start = str_find_case_insensitive(buffer, 0, "HTTP/3 200", 10); + if(header_start == std::string::npos) + header_start = str_find_case_insensitive(buffer, 0, "HTTP/2 200", 10); + + if(header_start == std::string::npos) { + res = MPV_ERROR_UNSUPPORTED; + goto end; + } } header_start += 6; |