playcount is not properly incremented when playing stream media
- media is inserted in the medialib as a stream, then played.
- the media playback starts correctly and I played it from the beginning til the end
ml_unique_ptr<vlc_ml_media_t> s{vlc_ml_get_media_by_mrl( m_ml, qtu( url ))};
if (!s){
reset(vlc_ml_new_stream( m_ml, qtu( url ) ));
}
if (!s)
return;
vlc::playlist::InputItemPtr item(vlc_ml_get_input_item( m_ml, s->i_id ), false);
QVector<vlc::playlist::Media> medias = { vlc::playlist::Media(item.get()) };
m_intf->p_sys->p_mainPlaylistController->append(medias, true);
- the media play_count and last_played_date is not updated when the media ends.
sqlite3 ~/.local/share/vlc/ml/ml.db "SELECT filename, import_type, play_count, last_played_date FROM Media order by id_media desc LIMIT 1;"
ped1080p.webm|2||
tested with https://streams.videolan.org/streams/mkv/ped1080p.webm