* Dropped line numbers from batch mode console messages.
authorUrban Wallasch <urban.wallasch@freenet.de>
Thu, 13 May 2021 18:03:03 +0000 (20:03 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Thu, 13 May 2021 18:03:03 +0000 (20:03 +0200)
ffpreview.py

index 6f2f2b46c0c25f39779616f0d59f166ffce46df7..1051bf9a93bb7a2bb0877bff156c36703baeaaae 100755 (executable)
@@ -996,19 +996,19 @@ def batch_process(fname):
     if fdir:
         olddir = os.getcwd()
         os.chdir(fdir)
-    eprint(0, 'Analyzing  %s ...\r' % cfg['vid'], end='')
+    print('Analyzing  %s ...\r' % cfg['vid'], end='', file=sys.stderr)
     thinfo, ok = get_thinfo()
     if not ok:
         # (re)generate thumbnails and index file
-        eprint(0, 'Processing')
+        print('Processing', file=sys.stderr)
         clear_thumbdir()
         thinfo, ok = make_thumbs(cfg['vid'], thinfo)
     else:
-        eprint(0, '')
+        print('', file=sys.stderr)
     if ok:
-        eprint(0, 'Ok.')
+        print('Ok.', file=sys.stderr)
     else:
-        eprint(0, 'Failed.')
+        print('Failed.', file=sys.stderr)
     if olddir:
         os.chdir(olddir)
     return ok