tmdb: Add read apikey from neutrino.conf

This commit is contained in:
bazi98
2016-03-04 13:57:25 +01:00
committed by M. Liebmann
parent 99a9cfe8c6
commit 6e8b9b6d1b
4 changed files with 11 additions and 14 deletions

View File

@@ -802,6 +802,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
//Movie-Player
g_settings.movieplayer_repeat_on = configfile.getInt32("movieplayer_repeat_on", CMoviePlayerGui::REPEAT_OFF);
g_settings.youtube_dev_id = configfile.getString("youtube_dev_id","XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
g_settings.tmdb_api_key = configfile.getString("tmdb_api_key","XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
//Filebrowser
g_settings.filebrowser_showrights = configfile.getInt32("filebrowser_showrights", 1);
@@ -1303,6 +1304,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
//Movie-Player
configfile.setInt32( "movieplayer_repeat_on", g_settings.movieplayer_repeat_on );
configfile.setString( "youtube_dev_id", g_settings.youtube_dev_id );
configfile.setString( "tmdb_api_key", g_settings.tmdb_api_key );
//Filebrowser
configfile.setInt32("filebrowser_showrights", g_settings.filebrowser_showrights);