示例#1
0
import ParseTables
import sys
import Util
from Config import logger, getcommands

def checkcommands(c, pr=True):
   i = 0
   for savefilename, genre, playlistindex, metadata, flags in c:
      status, e = ParseTables.canread(metadata)
      good = True
      if not status:
         logger.error("Can't read metadata from %s. (%s)" % (metadata, str(e)))
         good = False
      elif pr:
         Util.foldtracklist(e, genre, flags)
         logger.info("%s\n%s\n" % (playlistindex, '\n'.join(['\t'.join(map(str, row)) for row in e])))
      i += 1
   return good

if __name__ == '__main__':
   if checkcommands(getcommands(sys.argv)):
      logger.info("All metadata successfully located.")
示例#2
0
         test = True
      elif arg == 'S':
         split = False
      elif arg == 'c':
         continuous = True
      
import ParseTables
import SplitTracks
import Util
import CheckCommands

usage = "python %s [savefilename] [playlistindex] [metadataloc]" % sys.argv[0]
      
from Config import vs, thisdir, dumpdir, windows, logger, getcommands
if record:
   commands = getcommands(sys.argv)
if windows:
   import subprocess

if noreset:
   logger.info("Not resetting last track.")
if not record:
   logger.info("Skipping record.")
if not split:
   logger.info("Skipping split.")
if test:
   logger.info("Testing, not saving any new tracks.")
if continuous:
   logger.info("Mixing all tracks the same.")
   
def MouseDo(cmdstring, debug=False):