diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-26 23:18:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-26 23:18:51 +0100 |
| commit | 39a7a8be0bdb499423f96aa23ed3bffdc7d6c912 (patch) | |
| tree | 847ea6e5b055f94e33bcc0a91ad4ba4d29a81d8a /src/lib/config.cc | |
| parent | 2d48fee30e323dfea9cc331f881637d91ee0895a (diff) | |
Support download of KDMs from a web service in swaroop profile.v2.13.56
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index b61b1d054..abb775be8 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -171,6 +171,7 @@ Config::set_defaults () _player_kdm_directory = boost::none; #ifdef DCPOMATIC_VARIANT_SWAROOP _player_background_image = boost::none; + _kdm_server_url = "http://localhost:8000/{CPL}"; #endif _allowed_dcp_frame_rates.clear (); @@ -506,6 +507,7 @@ try _player_kdm_directory = f.optional_string_child("PlayerKDMDirectory"); #ifdef DCPOMATIC_VARIANT_SWAROOP _player_background_image = f.optional_string_child("PlayerBackgroundImage"); + _kdm_server_url = f.optional_string_child("KDMServerURL").get_value_or("http://localhost:8000/{CPL}"); #endif /* Replace any cinemas from config.xml with those from the configured file */ @@ -908,6 +910,7 @@ Config::write_config () const if (_player_background_image) { root->add_child("PlayerBackgroundImage")->add_child_text(_player_background_image->string()); } + root->add_child("KDMServerURL")->add_child_text(_kdm_server_url); #endif try { |
