bool Delete(unsigned int video_id, VideoList &dummy) { bool ret = false; MetadataPtr mp = m_metadata.byID(video_id); if (mp) { ret = mp->DeleteFile(); if (ret) ret = m_metadata.purgeByID(video_id); } return ret; }
bool Delete(unsigned int video_id, VideoList &dummy) { bool ret = false; MetadataPtr mp = m_metadata.byID(video_id); if (mp) { ret = mp->DeleteFile(); if (ret) { ret = m_metadata.purgeByID(video_id); // Force refresh m_metadata_list_type = VideoListImp::ltNone; } } return ret; }