Sfoglia il codice sorgente

change true True

master
Andreas Demmelbauer 3 anni fa
parent
commit
01fb9a2577
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      demotape.py

+ 2
- 2
demotape.py Vedi File

@@ -160,7 +160,7 @@ def upload_video(videofile_path):
result = os.system('curl -L -u %s -T "%s" "%s"' % (credentials, videofile_path, webdav_url))
if result == 0: # exit code
delete_video(videofile_path)
return true
return True
except:
logging.info('Error while uploading %s to %s' % (file, webdav_url))
@@ -168,7 +168,7 @@ def upload_video(videofile_path):
def delete_video(file):
try:
os.system('rm -rf "%s"' % (file))
return true
return True
except:
logging.info('Error while deleting %s' % (file))



Caricamento…
Annulla
Salva