Commit c1fc32d8 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

wrapup

parent fbeacd13
= Upmpdcli release notes = Upmpdcli release notes
== Upmpdcli 1.2.10
- Improves streaming services search
- Fix bug in UPnP/AV mode (seeking after gapless transition would not
work).
== Upmpdcli 1.2.6/7/8/9 == Upmpdcli 1.2.6/7/8/9
- Small fixes (qobuz,tidal), added protocolinfo entries, etc. - Small fixes (qobuz,tidal), added protocolinfo entries, etc.
......
dockes@y.dockes.com.11624:1473896341
\ No newline at end of file
...@@ -532,6 +532,7 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt, ...@@ -532,6 +532,7 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt,
|| beginswith(what, "object.container.playlist")) { || beginswith(what, "object.container.playlist")) {
objkind = "playlist"; objkind = "playlist";
} }
classfilter = what;
} else if (!upnpproperty.compare("upnp:artist") || } else if (!upnpproperty.compare("upnp:artist") ||
!upnpproperty.compare("dc:author")) { !upnpproperty.compare("dc:author")) {
slavefield = "artist"; slavefield = "artist";
...@@ -545,8 +546,6 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt, ...@@ -545,8 +546,6 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt,
slavefield = "track"; slavefield = "track";
value = vs[i+2]; value = vs[i+2];
break; break;
} else if (!upnpproperty.compare("upnp:class")) {
classfilter = vs[i+2];
} }
} }
if (slavefield.empty()) { if (slavefield.empty()) {
...@@ -558,7 +557,7 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt, ...@@ -558,7 +557,7 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt,
SearchCacheEntry *cep; SearchCacheEntry *cep;
string cachekey(m_name + ":" + objkind + ":" + slavefield + ":" + value); string cachekey(m_name + ":" + objkind + ":" + slavefield + ":" + value);
if ((cep = o_scache.get(cachekey)) != nullptr) { if ((cep = o_scache.get(cachekey)) != nullptr) {
int total = resultFromCacheEntry(classfilter, stidx,cnt, *cep, entries); int total = resultFromCacheEntry(classfilter, stidx, cnt, *cep, entries);
delete cep; delete cep;
return total; return total;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment