|
a/src/contentdirectory.cxx |
|
b/src/contentdirectory.cxx |
|
... |
|
... |
35 |
#include "pathut.h"
|
35 |
#include "pathut.h"
|
36 |
#include "smallut.h"
|
36 |
#include "smallut.h"
|
37 |
#include "upmpdutils.hxx"
|
37 |
#include "upmpdutils.hxx"
|
38 |
#include "main.hxx"
|
38 |
#include "main.hxx"
|
39 |
#include "cdplugins/plgwithslave.hxx"
|
39 |
#include "cdplugins/plgwithslave.hxx"
|
|
|
40 |
#include "conftree.h"
|
40 |
|
41 |
|
41 |
using namespace std;
|
42 |
using namespace std;
|
42 |
using namespace std::placeholders;
|
43 |
using namespace std::placeholders;
|
43 |
using namespace UPnPProvider;
|
44 |
using namespace UPnPProvider;
|
44 |
|
45 |
|
|
... |
|
... |
155 |
}
|
156 |
}
|
156 |
|
157 |
|
157 |
static vector<UpSong> rootdir;
|
158 |
static vector<UpSong> rootdir;
|
158 |
void makerootdir()
|
159 |
void makerootdir()
|
159 |
{
|
160 |
{
|
|
|
161 |
if (g_config->hasNameAnywhere("tidaluser")) {
|
160 |
rootdir.push_back(UpSong::container("0$tidal$", "0", "Tidal"));
|
162 |
rootdir.push_back(UpSong::container("0$tidal$", "0", "Tidal"));
|
|
|
163 |
}
|
|
|
164 |
if (g_config->hasNameAnywhere("qobuzuser")) {
|
161 |
rootdir.push_back(UpSong::container("0$qobuz$", "0", "Qobuz"));
|
165 |
rootdir.push_back(UpSong::container("0$qobuz$", "0", "Qobuz"));
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
if (rootdir.empty()) {
|
|
|
169 |
// This should not happen, as we only start the CD if services
|
|
|
170 |
// are configured !
|
|
|
171 |
rootdir.push_back(UpSong::item("0$none$", "0", "No services found"));
|
|
|
172 |
}
|
162 |
}
|
173 |
}
|
163 |
|
174 |
|
164 |
// Returns totalmatches
|
175 |
// Returns totalmatches
|
165 |
static size_t readroot(int offs, int cnt, vector<UpSong>& out)
|
176 |
static size_t readroot(int offs, int cnt, vector<UpSong>& out)
|
166 |
{
|
177 |
{
|