Kodi Community Forum
RSS feeds not working after logging in to a custom profile? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: RSS feeds not working after logging in to a custom profile? (/showthread.php?tid=47272)



RSS feeds not working after logging in to a custom profile? - xenu - 2009-03-21

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) -

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

as the SERVICES_DOWN message seems to shut down the rss manager

Code:
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-21

Thanks for the detailed report and the ticket.
Fixed in svn


- xenu - 2009-03-22

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?

Code:
{
    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

xenu Wrote: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.

cheers,
DD