PDA

View Full Version : RSS feeds not working after logging in to a custom profile?


xenu
2009-03-21, 08:24
RSS feeds do not appear to work when logging into custom profiles - I have an RSSfeeds.xml file in each of my 2 custom profile dirs and top level profile dir that does not appear to be read.

Looking at the code this seems to be a consequence of GUIWindowLoginScreen.cpp shutting down network services before loading the selected profile and not starting them back up (other than the event server) -

if (iItem != 0 || g_settings.m_iLastLoadedProfileIndex != 0)
{
g_application.getNetwork().NetworkMessage(CNetwork ::SERVICES_DOWN,1);
g_settings.LoadProfile(m_viewControl.GetSelectedIt em());
g_application.StartEventServer(); // event server could be needed in some situations
}


as the SERVICES_DOWN message seems to shut down the rss manager

case SERVICES_DOWN:
{
CLog::Log(LOGDEBUG, "%s - Stopping network services",__FUNCTION__);
#ifdef HAS_TIME_SERVER
g_application.StopTimeServer();
#endif
#ifdef HAS_WEB_SERVER
g_application.StopWebServer();
#endif
#ifdef HAS_FTP_SERVER
g_application.StopFtpServer();
#endif
#ifdef HAS_UPNP
g_application.StopUPnP();
#endif
#ifdef HAS_EVENT_SERVER
g_application.StopEventServer();
#endif
CScrobbler::GetInstance()->Term();
// smb.Deinit(); if any file is open over samba this will break.

g_rssManager.Stop();
}


Am using Windows XPsp3, XBMC svn#18257. Please advise if there are alternate settings I should be using or if I should post a bug on trac

MaestroDD
2009-03-22, 00:05
Thanks for the detailed report and the ticket.
Fixed in svn (http://xbmc.org/trac/changeset/18783)

xenu
2009-03-22, 01:29
thanks Maestro, noted that the same code is Util.cpp, not sure if this ever gets called, will you fix this with a services_up msg too?

{
for (unsigned int i=0;i<g_settings.m_vecProfiles.size();++i )
{
if (g_settings.m_vecProfiles[i].getName().Equals(strParameterCaseIntact))
{
g_application.getNetwork().NetworkMessage(CNetwork ::SERVICES_DOWN,1);
g_settings.LoadProfile(i);
g_application.StartEventServer(); // event server could be needed in some situations
}
}
}

MaestroDD
2009-03-22, 17:13
thanks Maestro, noted that the same code is Util.cpp, not sure if this ever gets called, will you fix this with a services_up msg too?


Thanks! fixed in svn (http://xbmc.org/trac/changeset/18796).

cheers,
DD