Commits

hholcombe  committed 553841b

Working... I think.

  • Participants
  • Parent commits 4f647d4

Comments (0)

Files changed (4)

File .hgignore

File contents unchanged.

File src/AtomicParsley.exe

Binary file modified.

File src/atomicparsley.py

 
 # Path to the atomicparsley exe.
 # Downloaded from http://atomicparsley.sourceforge.net/
-ATOMICPARSLEY = r"AtomicParsley.exe"
+ATOMICPARSLEY = r"C:\tools\AtomicParsley.exe"
 
 # --------- Nothing should have to be changed below this line --------------
 import subprocess
 
 def settags(fn, outfn=None, stik="TV Show", seriesname=None, title=None,
             episodenumber=None, seasonnumber=None, skipifstikset=True,
-            artwork=None, resetartwork=False):
+            artwork=None, resetartwork=False, tracknum=False):
     '''Set the tags on the file <fn>.
 
     @param fn: the source filename
             raise Exception("seasonnumber is not an integer")
         args += ['--TVSeason', seasonnumber]
 
+    if tracknum:
+        args += ['--tracknum', episodenumber]
+        
     if artwork:
         if isinstance(artwork, str):
             artwork = [artwork]
             subprocess.call([ATOMICPARSLEY, fn, '--artwork', 'REMOVE_ALL', 
                 '--overWrite'])
 
-    print args        
+    print ' '.join(args)
     retcode = subprocess.call(args)
     print "Result:", retcode
 

File src/dirsetinfo.py

                 seasonnumber    = str(int(data.get('seasonnum'))),
                 artwork         = artwork(fn),
                 resetartwork    = True,
+                tracknum        = True,
+                skipifstikset   = False,
             )
 
 def getargs():