From 5d629248621f4852b7f83cbe07862517f08eb9c8 Mon Sep 17 00:00:00 2001 From: Vegard Korvald Date: Tue, 5 May 2015 09:47:32 +0200 Subject: [PATCH] hotfix --- fetchReplays.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fetchReplays.py b/fetchReplays.py index 9e61303..a6878f5 100755 --- a/fetchReplays.py +++ b/fetchReplays.py @@ -49,7 +49,7 @@ def check_tag_comment(rec): else: return False - +''' # Temp check to avoid downloading and deleting all the videos def check_username(rec): username = 'pxx-vegarko' @@ -58,6 +58,7 @@ def check_username(rec): return True else: return False +''' # Returns a dictionary of all the videos that should be moved @@ -71,7 +72,7 @@ def list_vids(src, dest, delete, h): copy_v = [] new_fname = rename(record, '.flv') - if not os.path.isfile(pj(dest, new_fname)) and check_username(record): + if not os.path.isfile(pj(dest, new_fname)): # and check_username(record): copy_v.append((pj(src, record.guid+'.flv')).encode('utf-8')) copy_v.append(pj(dest, new_fname+'.inflight')) copy_rv[record] = copy_v @@ -96,7 +97,6 @@ def run(src, dest, client, delete, hashfunc): # start = time.time() for rec, copy_v in d.iteritems(): - print rec no_dot = copy_v[1].split('.')[0] video_count = copy_files(copy_v, video_count) checks, boo = checksum(copy_v, hashfunc) @@ -107,8 +107,7 @@ def run(src, dest, client, delete, hashfunc): print "Copied: {}".format(copy_v[1]) tot_size += os.path.getsize(copy_v[1]) if delete is True: - retval = client.service.DeleteRecord(id=rec.id) - print("retval: {}").format(retval) + client.service.DeleteRecord(id=rec.id) else: os.remove(copy_v[1]) """ -- 2.43.0