aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--src/Downloader.cpp3
-rw-r--r--src/QuickMedia.cpp3
3 files changed, 4 insertions, 5 deletions
diff --git a/TODO b/TODO
index cfeee31..0cc1b9a 100644
--- a/TODO
+++ b/TODO
@@ -183,4 +183,5 @@ If only users in the same homeserver can join a room then filter out other users
Exclude users that are already in the room from room invite gui.
Sort users in matrix users list (efficiently and only once!).
Optimize matrix insert position for room sorting (and user sorting).
-Cache solved 4chan captcha solution (and challenge id) on disk. ttl is (always?) 120 seconds so restarting quickmedia under that period should use the already solved captcha. \ No newline at end of file
+Cache solved 4chan captcha solution (and challenge id) on disk. ttl is (always?) 120 seconds so restarting quickmedia under that period should use the already solved captcha.
+Posting on bant doesn't work for some reason. The request is sent successfully but the comment never appears on the website. \ No newline at end of file
diff --git a/src/Downloader.cpp b/src/Downloader.cpp
index ae84973..68bbf32 100644
--- a/src/Downloader.cpp
+++ b/src/Downloader.cpp
@@ -7,9 +7,8 @@
#include <signal.h>
namespace QuickMedia {
- // TODO: Test with video that has hlsManifestUrl
static bool youtube_url_is_live_stream(const std::string &url) {
- return url.find("yt_live_broadcast") != std::string::npos;
+ return url.find("yt_live_broadcast") != std::string::npos || url.find("manifest/") != std::string::npos;
}
CurlDownloader::CurlDownloader(const std::string &url, const std::string &output_filepath, int64_t content_length) : Downloader(url, output_filepath), content_length(content_length) {
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 5af793f..f4cc2dd 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -2520,9 +2520,8 @@ namespace QuickMedia {
return true;
}
- // TODO: Test with video that has hlsManifestUrl
static bool youtube_url_is_live_stream(const std::string &url) {
- return url.find("yt_live_broadcast") != std::string::npos;
+ return url.find("yt_live_broadcast") != std::string::npos || url.find("manifest/") != std::string::npos;
}
#define CLEANMASK(mask) ((mask) & (ShiftMask|ControlMask|Mod1Mask|Mod4Mask|Mod5Mask))