Avdump GUI: Difference between revisions

Jump to navigation Jump to search
v1.03 option 9 added (experimental mp3 hashing for ostdb)
mNo edit summary
(v1.03 option 9 added (experimental mp3 hashing for ostdb))
Line 3: Line 3:


class mainFrame(wx.Frame):
class mainFrame(wx.Frame):
     __simple = ['p','z','r','m','c','o']
     __simple = ['p','z','r','m','c','o','9']
     __options = {'avdump':'avdump.exe','user':'','pass':'','ext':'','misc':'','bsize':'2048','port':'','tout':'30','retries':'6','exp':'export.txt','log':'log.txt','done':'done.txt'}
     __options = {'avdump':'avdump.exe','user':'','pass':'','ext':'','misc':'','bsize':'2048','port':'','tout':'30','retries':'6','exp':'export.txt','log':'log.txt','done':'done.txt'}
     __configfile='config.ini'
     __configfile='config.ini'
Line 75: Line 75:
                         else:
                         else:
                             self.__options['param'] += ' -' + elem + ':' + self.__options[elem]
                             self.__options['param'] += ' -' + elem + ':' + self.__options[elem]
            '''debug option to see what avdump actually get's fed'''
            #self.child.info(('%s -ac:%s:%s%s %s') %(self.__options['avdump'], self.__options['user'], self.__options['pass'], self.__options['param'], self.__options['scanpath']))
             subprocess.call(('%s -ac:%s:%s%s %s') %(self.__options['avdump'], self.__options['user'], self.__options['pass'], self.__options['param'], self.__options['scanpath']))
             subprocess.call(('%s -ac:%s:%s%s %s') %(self.__options['avdump'], self.__options['user'], self.__options['pass'], self.__options['param'], self.__options['scanpath']))


Line 82: Line 84:


class OptionsFrame(wx.Frame):
class OptionsFrame(wx.Frame):
     __box = {'ext':False,'log':False,'exp':False,'port':False,'done':False,'bsize':False,'tout':False,'c':False,'m':False,'p':False,'r':False,'z':False,'o':False}
     __box = {'ext':False,'log':False,'exp':False,'port':False,'done':False,'bsize':False,'tout':False,'c':False,'m':False,'p':False,'r':False,'z':False,'o':False,'9':False}
     __options = {'avdump':'avdump.exe','user':'','pass':'','ext':'','misc':'','bsize':'2048','port':'','tout':'30','retries':'6','exp':'export.txt','log':'log.txt','done':'done.txt'}
     __options = {'avdump':'avdump.exe','user':'','pass':'','ext':'','misc':'','bsize':'2048','port':'','tout':'30','retries':'6','exp':'export.txt','log':'log.txt','done':'done.txt'}
     __configfile='config.ini'
     __configfile='config.ini'
Line 122: Line 124:
         wx.Frame.__init__(self, parent, -1, 'options', wx.DefaultPosition, (301, 691), style=wx.CLOSE_BOX | wx.SYSTEM_MENU | wx.CAPTION | 0 | 0 | wx.MINIMIZE_BOX)
         wx.Frame.__init__(self, parent, -1, 'options', wx.DefaultPosition, (301, 691), style=wx.CLOSE_BOX | wx.SYSTEM_MENU | wx.CAPTION | 0 | 0 | wx.MINIMIZE_BOX)
         self.panel = wx.Panel(self, -1)
         self.panel = wx.Panel(self, -1)
         self.adoptions = wx.StaticBox(self.panel, -1, "advanced options", (5,170), (275, 275))
         self.adoptions = wx.StaticBox(self.panel, -1, "advanced options", (5,170), (275, 290))
         self.groupbox3 = wx.StaticBox(self.panel, -1, "Path to Avdump", (5,0), (275, 55))
         self.groupbox3 = wx.StaticBox(self.panel, -1, "Path to Avdump", (5,0), (275, 55))
         self.groupbox4 = wx.StaticBox(self.panel, -1, "UDP API Username/Password", (5,55), (275, 115))
         self.groupbox4 = wx.StaticBox(self.panel, -1, "UDP API Username/Password", (5,55), (275, 115))
         self.groupbox5 = wx.StaticBox(self.panel, -1, "logs", (5,445), (275, 170))
         self.groupbox5 = wx.StaticBox(self.panel, -1, "logs", (5,460), (275, 170))
         self.filepath = wx.TextCtrl(self.panel, -1, '', (15,20), size=(220, 25))
         self.filepath = wx.TextCtrl(self.panel, -1, '', (15,20), size=(220, 25))
         self.selectavdump = wx.Button(self.panel, -1, '...', (245,20), (25, 25))
         self.selectavdump = wx.Button(self.panel, -1, '...', (245,20), (25, 25))
Line 133: Line 135:
         self.recursive = wx.CheckBox(self.panel, -1, 'do _not_ recurse into subfolders', (15,205), (240, 17))
         self.recursive = wx.CheckBox(self.panel, -1, 'do _not_ recurse into subfolders', (15,205), (240, 17))
         self.monitor = wx.CheckBox(self.panel, -1, 'Monitor folder(s)', (15,220), (240, 17))
         self.monitor = wx.CheckBox(self.panel, -1, 'Monitor folder(s)', (15,220), (240, 17))
         self.bsize = wx.CheckBox(self.panel, -1, 'overwrite the default setting for buffersize', (15,235), (240, 17))
        self.mp3 = wx.CheckBox(self.panel, -1, 'ostdb mp3 test (experimental)', (15,235), (240, 17))
         self.ext = wx.CheckBox(self.panel, -1, 'overwrite the default setting for extentions', (15,250), (240, 17))
         self.bsize = wx.CheckBox(self.panel, -1, 'overwrite the default setting for buffersize', (15,250), (240, 17))
         self.port = wx.CheckBox(self.panel, -1, 'overwrite the default setting for port', (15,265), (240, 17))
         self.ext = wx.CheckBox(self.panel, -1, 'overwrite the default setting for extentions', (15,265), (240, 17))
         self.tout = wx.CheckBox(self.panel, -1, 'overwrite the default setting for timeouts', (15,280), (240, 17))
         self.port = wx.CheckBox(self.panel, -1, 'overwrite the default setting for port', (15,280), (240, 17))
         self.pause = wx.CheckBox(self.panel, -1, 'Pause when done (hold cmd window)', (15,295), (240, 17))
         self.tout = wx.CheckBox(self.panel, -1, 'overwrite the default setting for timeouts', (15,295), (240, 17))
         self.random = wx.CheckBox(self.panel, -1, 'Random file order', (15,310), (240, 17))
         self.pause = wx.CheckBox(self.panel, -1, 'Pause when done (hold cmd window)', (15,310), (240, 17))
         self.wait = wx.CheckBox(self.panel, -1, 'wait for response when sending dumps', (15,325), (240, 17))
         self.random = wx.CheckBox(self.panel, -1, 'Random file order', (15,325), (240, 17))
         self.extention = wx.TextCtrl(self.panel, -1, '', (15,360), size=(255, 25))
         self.wait = wx.CheckBox(self.panel, -1, 'wait for response when sending dumps', (15,340), (240, 17))
         self.buffersize = wx.TextCtrl(self.panel, -1, '', (15,405), size=(55, 25))
         self.extention = wx.TextCtrl(self.panel, -1, '', (15,375), size=(255, 25))
         self.portnumber = wx.TextCtrl(self.panel, -1, '', (81,405), size=(55, 25))
         self.buffersize = wx.TextCtrl(self.panel, -1, '', (15,420), size=(55, 25))
         self.timeout = wx.TextCtrl(self.panel, -1, '', (149,405), size=(55, 25))
         self.portnumber = wx.TextCtrl(self.panel, -1, '', (81,420), size=(55, 25))
         self.retries = wx.TextCtrl(self.panel, -1, '', (215,405), size=(55, 25))
         self.timeout = wx.TextCtrl(self.panel, -1, '', (149,420), size=(55, 25))
         self.exp = wx.CheckBox(self.panel, -1, '', (15,478), (17, 17))
         self.retries = wx.TextCtrl(self.panel, -1, '', (215,420), size=(55, 25))
         self.exppath = wx.TextCtrl(self.panel, -1, '', (35,475), size=(200, 25))
         self.exp = wx.CheckBox(self.panel, -1, '', (15,493), (17, 17))
         self.selectexp = wx.Button(self.panel, -1, '...', (245,475), (25, 23))
         self.exppath = wx.TextCtrl(self.panel, -1, '', (35,490), size=(200, 25))
         self.done = wx.CheckBox(self.panel, -1, '', (15,538), (17, 17))
         self.selectexp = wx.Button(self.panel, -1, '...', (245,490), (25, 23))
         self.donepath = wx.TextCtrl(self.panel, -1, '', (35,535), size=(200, 25))
         self.done = wx.CheckBox(self.panel, -1, '', (15,553), (17, 17))
         self.selectdone = wx.Button(self.panel, -1, '...', (245,535), (25, 23))
         self.donepath = wx.TextCtrl(self.panel, -1, '', (35,550), size=(200, 25))
         self.log = wx.CheckBox(self.panel, -1, '', (15,583), (17, 17))
         self.selectdone = wx.Button(self.panel, -1, '...', (245,550), (25, 23))
         self.logpath = wx.TextCtrl(self.panel, -1, '', (35,580), size=(200, 25))
         self.log = wx.CheckBox(self.panel, -1, '', (15,598), (17, 17))
         self.selectlog = wx.Button(self.panel, -1, '...', (245,580), (25, 23))
         self.logpath = wx.TextCtrl(self.panel, -1, '', (35,595), size=(200, 25))
         self.save = wx.Button(self.panel, -1, 'Save', (65,620), (75, 23))
         self.selectlog = wx.Button(self.panel, -1, '...', (245,595), (25, 23))
         self.cancel = wx.Button(self.panel, -1, 'Cancel', (150,620), (75, 23))
         self.save = wx.Button(self.panel, -1, 'Save', (65,635), (75, 23))
         self.Retries = wx.StaticText(self.panel, -1, 'Retries:', (220,387), (44, 17))
         self.cancel = wx.Button(self.panel, -1, 'Cancel', (150,635), (75, 23))
         self.Timeout = wx.StaticText(self.panel, -1, 'Timeout:', (152,387), (50, 17))
         self.Retries = wx.StaticText(self.panel, -1, 'Retries:', (220,402), (44, 17))
         self.Buffersize = wx.StaticText(self.panel, -1, 'Buffersize:', (16,387), (60, 17))
         self.Timeout = wx.StaticText(self.panel, -1, 'Timeout:', (152,402), (50, 17))
         self.Port = wx.StaticText(self.panel, -1, 'Port:', (86,387), (44, 17))
         self.Buffersize = wx.StaticText(self.panel, -1, 'Buffersize:', (16,402), (60, 17))
         self.donelog = wx.StaticText(self.panel, -1, 'save processed-file-paths to file and exlude existing from proc', (40,505), (200, 25))
         self.Port = wx.StaticText(self.panel, -1, 'Port:', (86,402), (44, 17))
         self.exported2k = wx.StaticText(self.panel, -1, 'export ed2k-links to file', (40,457), (150, 17))
         self.donelog = wx.StaticText(self.panel, -1, 'save processed-file-paths to file and exlude existing from proc', (40,520), (200, 25))
         self.writelog = wx.StaticText(self.panel, -1, 'write output to log', (40,563), (150, 17))
         self.exported2k = wx.StaticText(self.panel, -1, 'export ed2k-links to file', (40,472), (150, 17))
         self.writelog = wx.StaticText(self.panel, -1, 'write output to log', (40,578), (150, 17))
         self.apiuser = wx.StaticText(self.panel, -1, 'Username:', (20,73), (150, 17))
         self.apiuser = wx.StaticText(self.panel, -1, 'Username:', (20,73), (150, 17))
         self.apipass = wx.StaticText(self.panel, -1, 'Password:', (20,118), (150, 17))
         self.apipass = wx.StaticText(self.panel, -1, 'Password:', (20,118), (150, 17))
         self.extentionlist = wx.StaticText(self.panel, -1, 'comma seperated extension list', (20,343), (170, 17))
         self.extentionlist = wx.StaticText(self.panel, -1, 'comma seperated extension list', (20,358), (170, 17))
         self.Bind(wx.EVT_BUTTON, self.selectavdClick, self.selectavdump)
         self.Bind(wx.EVT_BUTTON, self.selectavdClick, self.selectavdump)
         self.Bind(wx.EVT_BUTTON, self.selectlogClick, self.selectlog)
         self.Bind(wx.EVT_BUTTON, self.selectlogClick, self.selectlog)
Line 249: Line 252:
         self.recursive.SetValue(self.__box['c'])
         self.recursive.SetValue(self.__box['c'])
         self.monitor.SetValue(self.__box['m'])
         self.monitor.SetValue(self.__box['m'])
        self.mp3.SetValue(self.__box['9'])
         self.pause.SetValue(self.__box['p'])
         self.pause.SetValue(self.__box['p'])
         self.random.SetValue(self.__box['r'])
         self.random.SetValue(self.__box['r'])
Line 300: Line 304:
         self.__box['c'] = self.recursive.GetValue()
         self.__box['c'] = self.recursive.GetValue()
         self.__box['m'] = self.monitor.GetValue()
         self.__box['m'] = self.monitor.GetValue()
        self.__box['9'] = self.mp3.GetValue()
         self.__box['p'] = self.pause.GetValue()
         self.__box['p'] = self.pause.GetValue()
         self.__box['r'] = self.random.GetValue()
         self.__box['r'] = self.random.GetValue()

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.