Added lastPlayedSkipCollection parameter to allow a collection from not being included in the lastplayed playlist.

This commit is contained in:
Pieter Hulshoff 2019-06-06 21:01:28 +02:00
parent 800caa8c04
commit 21bf07f502
2 changed files with 7 additions and 4 deletions

View File

@ -691,9 +691,12 @@ void RetroFE::run( )
nextPageItem_ = currentPage_->getSelectedItem( );
launchEnter( );
CollectionInfoBuilder cib(config_, *metadb_);
std::string attractModeSkipPlaylist = "";
config_.getProperty( "attractModeSkipPlaylist", attractModeSkipPlaylist );
if (currentPage_->getPlaylistName( ) != attractModeSkipPlaylist)
std::string attractModeSkipPlaylist = "";
std::string lastPlayedSkipCollection = "";
config_.getProperty( "attractModeSkipPlaylist", attractModeSkipPlaylist );
config_.getProperty( "lastPlayedSkipCollection", lastPlayedSkipCollection );
if (currentPage_->getPlaylistName( ) != attractModeSkipPlaylist &&
nextPageItem_->collectionInfo->name != lastPlayedSkipCollection)
cib.updateLastPlayedPlaylist( currentPage_->getCollection(), nextPageItem_ ); // Update last played playlist if not currently in the skip playlist (e.g. settings)
l.run(nextPageItem_->collectionInfo->name, nextPageItem_);
launchExit( );

View File

@ -21,7 +21,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "9";
std::string retrofe_version_build = "0";
std::string retrofe_version_build = "1";
std::string Version::getString( )