aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Fourchan.cpp1
-rw-r--r--src/plugins/Youtube.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp
index c11e13e..051acc3 100644
--- a/src/plugins/Fourchan.cpp
+++ b/src/plugins/Fourchan.cpp
@@ -442,6 +442,7 @@ namespace QuickMedia {
author_str = author.asString();
author_str += " #" + std::to_string(post_num.asInt64());
+ html_unescape_sequences(author_str);
std::string comment_text = html_to_text(sub_begin, sub_end - sub_begin, comment_by_postno, result_items, body_item_index);
if(!comment_text.empty())
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp
index 7722f5d..1b46ed6 100644
--- a/src/plugins/Youtube.cpp
+++ b/src/plugins/Youtube.cpp
@@ -2614,6 +2614,9 @@ R"END(
YoutubeFormat youtube_format_base;
+ const Json::Value &itag_json = format["itag"];
+ if(!itag_json.isInt() || itag_json.asInt() == 22) continue; // TODO: itag 22 video format is broken right now server-side for some reason
+
const Json::Value &mime_type_json = format["mimeType"];
if(!mime_type_json.isString()) continue;
youtube_format_base.mime_type = mime_type_json.asString();