Is there any way to get this to limit to streams rather than just play/pause/stop/resume triggers? # should this be added to a current pause or add to current pause? Help = 'Number of max streams before we reduce the speed')Ĭlient = Sab( host = p. add_argument( '-mts', '-max_transcode_sessions', action = 'store', default = max_transcode_sessions, add_argument( '-rts', '-remote_transcode_speed', action = 'store', default = remote_transcode_speed, Help = 'Max speed of your internet connection in kbits') add_argument( '-ms', '-max_speed', action = 'store', default = max_speed, Help = 'Does the the nzb client use ssl?') add_argument( '-ssl', '-ssl', action = 'store_true', default = client_ssl, add_argument( '-wd', '-webdir', action = 'store', default = client_webdir, add_argument( '-pass', '-password', action = 'store', default = client_password, add_argument( '-u', '-username', action = 'store', default = client_username, add_argument( '-api', '-apikey', action = 'store', default = client_apikey, add_argument( '-p', '-port', action = 'store', default = client_port, add_argument( '-host', '-host', action = 'store', default = client_host, Help = 'Number of minutes the client is paused') add_argument( '-t', '-time', action = 'store', default = pause_for, type = int, Help = 'notify_action argument from plexpy') add_argument( '-a', '-action', action = 'store', default = None, add_argument( '-s', '-speed', action = 'store', default = reduce_speed_to, type = int, Help = 'stream_count argument from plexpy') add_argument( '-sc', '-stream_count', action = 'store', default = 0, type = int, Help = 'Choose download client, sabznbd or nzbget') add_argument( '-c', '-client', action = 'store', default = i_use, If i_use = 'sabnzbd' and 'nzbget' not in sys. scheduleresume( mins) # convert from minutes to sec Print( "Changed speed to %s kbit \'s" % speed) url = 'http%s://%s%s:%s%sjsonrpc' % ( ssl, authstring, host, port, webdir) Print( 'Resuming downloading with sabznbd')ĭef _init_( self, username, password, host, port, ssl, webdir): request( 'mode=config
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |