From e4859faf5f117e4eb075f155d4c15dee6a879606 Mon Sep 17 00:00:00 2001 From: Helge Norberg Date: Tue, 5 Aug 2014 15:06:36 +0200 Subject: [PATCH] #262 Added support for still playing http addresses via html producer bu using [HTML] as the first parameter. So for example: PLAY 1-10 [HTML] http://www.casparcg.com --- modules/html/producer/html_producer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/html/producer/html_producer.cpp b/modules/html/producer/html_producer.cpp index a73394120..3dbc1c68f 100644 --- a/modules/html/producer/html_producer.cpp +++ b/modules/html/producer/html_producer.cpp @@ -343,12 +343,12 @@ safe_ptr create_producer( { const auto filename = env::template_folder() + L"\\" + params.at_original(0) + L".html"; - if (!boost::filesystem::exists(filename)) + if (!boost::filesystem::exists(filename) && params.at(0) != L"[HTML]") return core::frame_producer::empty(); const auto url = boost::filesystem::exists(filename) - ? filename - : params.at_original(0); + ? filename + : params.at_original(1); if(!boost::algorithm::contains(url, ".") || boost::algorithm::ends_with(url, "_A") || boost::algorithm::ends_with(url, "_ALPHA")) return core::frame_producer::empty(); -- 2.39.2