| 53 | } |
| 54 | |
| 55 | bool Playlist::insert_container( |
| 56 | PlaylistTree container, const utility::Uuid &uuid_before, const bool into) { |
| 57 | |
| 58 | bool result = false; |
| 59 | |
| 60 | if (container.value().type() == "Playlist" or container.value().type() == "") { |
| 61 | for (auto &i : container.children_) { |
| 62 | result |= insert_container(i, uuid_before, into); |
| 63 | } |
| 64 | } else { |
| 65 | result = container_tree_.insert(std::move(container), uuid_before, into); |
| 66 | } |
| 67 | |
| 68 | return result; |
| 69 | } |
| 70 | |
| 71 | std::optional<Uuid> |
| 72 | Playlist::insert_group(const std::string &name, const utility::Uuid &uuid_before) { |
no test coverage detected