From f06adfb0bd658b278fec6f19d7e7672ec33f695d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 15 Oct 2020 15:45:21 +0200 Subject: Youtube: add view count and owner --- src/plugins/Page.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/Page.cpp') diff --git a/src/plugins/Page.cpp b/src/plugins/Page.cpp index 48efeff..e444ecd 100644 --- a/src/plugins/Page.cpp +++ b/src/plugins/Page.cpp @@ -16,8 +16,10 @@ namespace QuickMedia { return DownloadResult::NET_ERR; } - if(server_response.empty()) + if(server_response.empty()) { + result = Json::Value::nullSingleton(); return DownloadResult::OK; + } Json::CharReaderBuilder json_builder; std::unique_ptr json_reader(json_builder.newCharReader()); -- cgit v1.2.3