From 7b5f338e7c98242e6c67df62988dfadd5b4fc748 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 17 Aug 2021 01:55:17 +0200 Subject: Temporary disable throttle detection --- TODO | 3 ++- src/plugins/youtube/YoutubeMediaProxy.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 3eb8b9f..003a7ea 100644 --- a/TODO +++ b/TODO @@ -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) { -- cgit v1.2.3