Lines Matching refs:song
445 for (const SongInfo& song : song_list) { in TrackChangedNotificationResponse() local
446 now_playing_ids_.insert(song.media_id); in TrackChangedNotificationResponse()
447 if (curr_song_id == song.media_id) { in TrackChangedNotificationResponse()
449 << song.media_id; in TrackChangedNotificationResponse()
1076 (temp.type == ListItem::SONG && temp.song.media_id == media_id)) { in GetItemAttributesVFSResponse()
1083 filter_cover_art(item_requested.song); in GetItemAttributesVFSResponse()
1103 if (item_requested.song.attributes.find(attribute) != in GetItemAttributesVFSResponse()
1104 item_requested.song.attributes.end()) { in GetItemAttributesVFSResponse()
1106 *item_requested.song.attributes.find(attribute)); in GetItemAttributesVFSResponse()
1112 for (const auto& attribute : item_requested.song.attributes) { in GetItemAttributesVFSResponse()
1159 const SongInfo& song, const std::vector<Attribute>& attrs) { in filter_attributes_requested() argument
1162 if (song.attributes.find(attr) != song.attributes.end()) { in filter_attributes_requested()
1163 result.insert(*song.attributes.find(attr)); in filter_attributes_requested()
1186 vfs_ids_.insert(item.song.media_id); in GetVFSListResponse()
1204 auto song = items[i].song; in GetVFSListResponse() local
1208 filter_cover_art(song); in GetVFSListResponse()
1212 song.attributes.find(Attribute::TITLE) != song.attributes.end() in GetVFSListResponse()
1213 ? song.attributes.find(Attribute::TITLE)->value() in GetVFSListResponse()
1215 MediaElementItem song_item(vfs_ids_.get_uid(song.media_id), title, in GetVFSListResponse()
1219 song_item.attributes_ = std::move(song.attributes); in GetVFSListResponse()
1222 filter_attributes_requested(song, pkt->GetAttributesRequested()); in GetVFSListResponse()
1242 for (const SongInfo& song : song_list) { in GetNowPlayingListResponse() local
1243 now_playing_ids_.insert(song.media_id); in GetNowPlayingListResponse()
1248 auto song = song_list[i]; in GetNowPlayingListResponse() local
1252 filter_cover_art(song); in GetNowPlayingListResponse()
1255 auto title = song.attributes.find(Attribute::TITLE) != song.attributes.end() in GetNowPlayingListResponse()
1256 ? song.attributes.find(Attribute::TITLE)->value() in GetNowPlayingListResponse()
1261 item.attributes_ = std::move(song.attributes); in GetNowPlayingListResponse()
1264 filter_attributes_requested(song, pkt->GetAttributesRequested()); in GetNowPlayingListResponse()
1407 for (const SongInfo& song : song_list) { in HandleNowPlayingNotificationResponse() local
1408 now_playing_ids_.insert(song.media_id); in HandleNowPlayingNotificationResponse()