--- mythburn.py	2006-09-25 14:17:57.000000000 +0100
+++ mythburn.py.new	2006-09-26 13:23:15.000000000 +0100
@@ -31,7 +31,7 @@
 #******************************************************************************
 
 # version of script - change after each update
-VERSION="0.1.20060924-1"
+VERSION="0.1.20060926-1"
 
 
 ##You can use this debug flag when testing out new themes
@@ -101,6 +101,8 @@
 encodetoac3 = False
 alwaysRunMythtranscode = False
 copyremoteFiles = False
+thumboffset = 10
+usebookmark = True
 
 #main menu aspect ratio (4:3 or 16:9)
 mainmenuAspectRatio = "16:9"
@@ -460,7 +462,10 @@
     while count<=numofchapters:
         chapters+=time.strftime("%H:%M:%S",time.gmtime(starttime))
 
-        thumbList+="%s," % starttime
+        if starttime==0:
+            thumbList+="%s," % thumboffset
+        else:
+            thumbList+="%s," % starttime
 
         if numofchapters>1:
             chapters+="," 
@@ -2873,6 +2878,8 @@
     return True
 
 def processFile(file, folder):
+    from shutil import copy
+
     """Process a single video/recording file ready for burning."""
 
     write( "*************************************************************")
@@ -3055,7 +3062,10 @@
     assert doesFileExist(os.path.join(folder,'stream0.ac3'))
     #assert doesFileExist(os.path.join(folder,'stream1.ac3'))
 
-    extractVideoFrame(os.path.join(folder,"stream.mv2"), os.path.join(folder,"thumbnail.jpg"), 0)
+    if file.attributes["type"].value == "recording" and usebookmark == True:
+        copy(os.path.join(recordingpath, file.attributes["filename"].value + ".png"),os.path.join(folder,"thumbnail.jpg"))
+    else:
+        extractVideoFrame(os.path.join(folder,"stream.mv2"), os.path.join(folder,"thumbnail.jpg"), thumboffset)
 
     write( "*************************************************************")
     write( "Finished processing file " + file.attributes["filename"].value)
