diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 0c7293e8c..6ae4c69fb 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -546,6 +546,7 @@ int CNeutrinoApp::loadSetup(const char * fname) g_settings.network_nfs_moviedir = configfile.getString( "network_nfs_moviedir", "/media/sda1/movies" ); g_settings.network_nfs_recordingdir = configfile.getString( "network_nfs_recordingdir", "/media/sda1/movies" ); g_settings.timeshiftdir = configfile.getString( "timeshiftdir", "" ); + g_settings.downloadcache_dir = configfile.getString( "downloadcache_dir", g_settings.network_nfs_recordingdir.c_str()); g_settings.temp_timeshift = configfile.getInt32( "temp_timeshift", 0 ); g_settings.auto_timeshift = configfile.getInt32( "auto_timeshift", 0 ); @@ -1058,6 +1059,7 @@ void CNeutrinoApp::saveSetup(const char * fname) configfile.setString( "network_nfs_moviedir", g_settings.network_nfs_moviedir); configfile.setString( "network_nfs_recordingdir", g_settings.network_nfs_recordingdir); configfile.setString( "timeshiftdir", g_settings.timeshiftdir); + configfile.setString( "downloadcache_dir", g_settings.downloadcache_dir); configfile.setBool ("filesystem_is_utf8" , g_settings.filesystem_is_utf8 ); //recording (server + vcr) diff --git a/src/system/ytcache.cpp b/src/system/ytcache.cpp index 86fc2b101..d0273f5ec 100644 --- a/src/system/ytcache.cpp +++ b/src/system/ytcache.cpp @@ -20,6 +20,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "ytcache.h" #include diff --git a/src/system/ytparser.cpp b/src/system/ytparser.cpp index 19a516b39..6a244043c 100644 --- a/src/system/ytparser.cpp +++ b/src/system/ytparser.cpp @@ -17,6 +17,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include