![]() ![]() fromtimestamp ( int ( entry )), entry )) f. write ( '%s \t %s \t %s \n ' % ( entry, datetime. If len ( log ) > 0 : f = open ( '%s/_postprocesslog.txt' % os. Log = postqueue # Now iterate through entries and save them to the output file postqueue ( 10000 ) # Get field 'Log' from the first post-processing job The only parameter tells how many log-entries to return as maximum. Server = ServerProxy ( rpcUrl ) # Call remote method 'postqueue'. RpcUrl = % ( username, password, host, port ) # Create remote server object # NZBGet passes all configuration options to post-processing script as #Nzbget scripts password## First we need to know connection info: host, port, username and password of NZBGet server. # The first item in the list is current job. # and call method "postqueue", which returns the list of post-processing job. POSTPROCESS_SUCCESS = 93 POSTPROCESS_ERROR = 94 # To get the post-processing log we connect to NZBGet via XML-RPC Import os import sys import datetime from xmlrpclib import ServerProxy # Exit codes used by NZBGet
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |