diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-17 01:55:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-17 01:55:32 +0200 |
commit | 7b5f338e7c98242e6c67df62988dfadd5b4fc748 (patch) | |
tree | 8a7c574969f38f42b48b1f98d920f18551130f1a | |
parent | 7c40643d8e652adf47cd0ad66fd98b4d808dfade (diff) |
Temporary disable throttle detection
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | src/plugins/youtube/YoutubeMediaProxy.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -200,4 +200,5 @@ Youtube is still getting throttled, but to 500kb/sec from 5mb/sec. How to detect Opening a media url should display it directly in quickmedia. Automatically resize body item thumbnail if body is small, or move thumbnail above the text. Support  ?. -Add option to navigate studios/producers/author in AniList/MAL.
\ No newline at end of file +Add option to navigate studios/producers/author in AniList/MAL. +Renable throttle detection after fixing it (it doesn't detect throttling well and it breaks for very long videos, such as 8 hour long videos).
\ No newline at end of file diff --git a/src/plugins/youtube/YoutubeMediaProxy.cpp b/src/plugins/youtube/YoutubeMediaProxy.cpp index 61eb374..c5af20e 100644 --- a/src/plugins/youtube/YoutubeMediaProxy.cpp +++ b/src/plugins/youtube/YoutubeMediaProxy.cpp @@ -474,6 +474,7 @@ namespace QuickMedia { } } +#if 0 if(download_started) { struct timespec tp; clock_gettime(CLOCK_MONOTONIC, &tp); @@ -501,6 +502,7 @@ namespace QuickMedia { throttle_started = false; } } +#endif // TODO: Remove this code and instead create the header ourselves and send it to the client. Then pipe the curl output directly to the client input. if(!download_header_finished) { |