aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--project.conf2
-rw-r--r--src/QuickMedia.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/TODO b/TODO
index 2e2a2ba..97d53c3 100644
--- a/TODO
+++ b/TODO
@@ -299,4 +299,4 @@ Use stb_image_resize2.h
Youtube audio only download if audio stream not available, also for youtube-dl fallback.
Make history (local-manga and others) use relative path to the downloads directory for thumbnails. Otherwise the thumbnails wont show when moving the download directory.
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 (always falls back to low quality yt-dlp).
+Fix youtube broken (always falls back to low quality yt-dlp). \ No newline at end of file
diff --git a/project.conf b/project.conf
index b737123..5f01694 100644
--- a/project.conf
+++ b/project.conf
@@ -7,7 +7,7 @@ platforms = ["posix"]
[config]
# This needs to be commented out for now because rapidjson depends on undefined behavior according to gcc...
#error_on_warning = "true"
-ignore_dirs = ["video_player"]
+ignore_dirs = ["video_player", "build"]
[lang.cpp]
version = "c++17"
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index e0568d9..0671349 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -953,7 +953,7 @@ namespace QuickMedia {
string_split(urls_str, ',', [&arrays](const char *str, size_t size) {
std::string url(str, size);
url = strip(url);
- if(!url.empty() && (arrays.empty() || arrays.back() != url))
+ if(url.find(".com") != std::string::npos && (arrays.empty() || arrays.back() != url))
arrays.push_back(std::move(url));
return true;
});