Switch to unified view

a/src/ohplaylist.cxx b/src/ohplaylist.cxx
...
...
151
151
152
    if (mpds.qvers == m_mpdqvers) {
152
    if (mpds.qvers == m_mpdqvers) {
153
        out = m_idArrayCached;
153
        out = m_idArrayCached;
154
        // Mpd queue did not change: no need to look at the metadata cache
154
        // Mpd queue did not change: no need to look at the metadata cache
155
        //LOGDEB("OHPlaylist::makeIdArray: mpd queue did not change" << endl);
155
        //LOGDEB("OHPlaylist::makeIdArray: mpd queue did not change" << endl);
156
        // Update the current song anyway: if it's an internet radio,
157
        // the title may have changed with no indication from the
158
        // queue. Only do this if the metadata originated from mpd of
159
        // course...
160
        if (mpds.songid != -1) {
161
            auto it = m_metacache.find(mpds.currentsong.uri);
162
            if (it != m_metacache.end() && 
163
                it->second.find("<orig>mpd</orig>") != string::npos) {
164
                m_metacache[mpds.currentsong.uri] = didlmake(mpds.currentsong);
165
            }
166
        }
156
        return true;
167
        return true;
157
    }
168
    }
158
169
159
    // Retrieve the data for current queue songs from mpd, and make an
170
    // Retrieve the data for current queue songs from mpd, and make an
160
    // ohPlaylist id array.
171
    // ohPlaylist id array.