Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Ability to throttle background processes?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Ability to throttle background processes?
1st Mar, 2013, 12:36 AM
Post: #14
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Ability to throttle background processes?
Now i understand what you did Smile Awaiting their response.

As far as i can see in the code this is already supported:
Code:
else if (execute.Equals("updatelibrary") && params.size())
  {
    if (params[0].Equals("music"))
    {
      if (g_application.IsMusicScanning())
        g_application.StopMusicScan();
      else
        g_application.StartMusicScan(params.size() > 1 ? params[1] : "");
    }
    if (params[0].Equals("video"))
    {
      if (g_application.IsVideoScanning())
        g_application.StopVideoScan();
      else
        g_application.StartVideoScan(params.size() > 1 ? params[1] : "");
    }
  }

This part is executed with the updatelibrary function, if will check if a scan is already running and if it isn't starts the scan. If it is it will stop the scan. So you just need to run the updatelibrary function twice i think. Also the core of XBMC has no such thing as pausing the scan and continuing it:

Code:
void Start(const CStdString& strDirectory, int flags);
  void FetchAlbumInfo(const CStdString& strDirectory, bool refresh=false);
  void FetchArtistInfo(const CStdString& strDirectory, bool refresh=false);
  bool IsScanning();
  void Stop();

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Ability to throttle background processes? - 2twisty - 25th Feb, 2013, 01:53 AM
RE: Ability to throttle background processes? - CurlyMo - 25th Feb, 2013, 01:55 AM
Re: Ability to throttle background processes? - BartOtten - 25th Feb, 2013, 02:20 AM
RE: Ability to throttle background processes? - rikardo1979 - 25th Feb, 2013, 02:21 AM
RE: Ability to throttle background processes? - belese - 25th Feb, 2013, 03:38 AM
RE: Ability to throttle background processes? - rikardo1979 - 25th Feb, 2013, 03:44 AM
RE: Ability to throttle background processes? - 2twisty - 25th Feb, 2013, 03:41 AM
RE: Ability to throttle background processes? - rikardo1979 - 25th Feb, 2013, 03:48 AM
RE: Ability to throttle background processes? - belese - 25th Feb, 2013, 03:53 AM
RE: Ability to throttle background processes? - BartOtten - 28th Feb, 2013, 11:22 AM
RE: Ability to throttle background processes? - 2twisty - 28th Feb, 2013, 11:57 AM
RE: Ability to throttle background processes? - CurlyMo - 28th Feb, 2013, 07:03 PM
RE: Ability to throttle background processes? - 2twisty - 1st Mar, 2013, 12:30 AM
RE: Ability to throttle background processes? - CurlyMo - 1st Mar, 2013 12:36 AM
RE: Ability to throttle background processes? - 2twisty - 1st Mar, 2013, 01:50 AM
RE: Ability to throttle background processes? - CurlyMo - 1st Mar, 2013, 01:58 AM
RE: Ability to throttle background processes? - 2twisty - 1st Mar, 2013, 02:06 AM
Re: Ability to throttle background processes? - rikardo1979 - 1st Mar, 2013, 02:12 AM
RE: Ability to throttle background processes? - CurlyMo - 1st Mar, 2013, 02:13 AM
RE: Ability to throttle background processes? - 2twisty - 1st Mar, 2013, 02:25 AM
RE: Ability to throttle background processes? - CurlyMo - 1st Mar, 2013, 02:27 AM
Re: Ability to throttle background processes? - rikardo1979 - 1st Mar, 2013, 02:40 AM
RE: Ability to throttle background processes? - 2twisty - 7th Mar, 2013, 12:17 AM
RE: Ability to throttle background processes? - BartOtten - 7th Mar, 2013, 10:22 AM
RE: Ability to throttle background processes? - 2twisty - 7th Mar, 2013, 10:36 AM
RE: Ability to throttle background processes? - CurlyMo - 7th Mar, 2013, 07:08 PM
RE: Ability to throttle background processes? - 2twisty - 8th Mar, 2013, 12:18 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 22nd May, 2025, 05:35 PM Powered By MyBB, © 2002-2025 MyBB Group.