- cxml::Document f ("DCPPlaylist");
- f.read_file (file);
-
- name = f.string_attribute ("Name");
- BOOST_FOREACH (cxml::ConstNodePtr i, f.node_children("DCP")) {
- boost::filesystem::path dir(i->content());
- dcp::DCP dcp (dir);
- dcp.read ();
- BOOST_FOREACH (shared_ptr<dcp::CPL> j, dcp.cpls()) {
- if (j->id() == i->string_attribute("CPL")) {
- playlist.push_back (SPLEntry(j, dir));
- }
+ _spl.clear ();
+ cxml::Document doc ("SPL");
+ doc.read_file (path);
+ bool missing = false;
+ BOOST_FOREACH (cxml::ConstNodePtr i, doc.node_children("Entry")) {
+ shared_ptr<Content> c = store->get(i->string_child("Digest"));
+ if (c) {
+ add (SPLEntry(c, i));
+ } else {
+ missing = true;