From 4ee656f22c6b917ea5da3e276dc5ab5b7f108fca Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sat, 15 Dec 2018 18:12:35 -0500 Subject: [PATCH] Fix next in Python 3 In Python 3 `obj.next` is renamed to `obj.__next__` and should be called with the `next` builtin. --- core/transcoder/transcoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/transcoder/transcoder.py b/core/transcoder/transcoder.py index 814de4ca..68f8fedc 100644 --- a/core/transcoder/transcoder.py +++ b/core/transcoder/transcoder.py @@ -134,7 +134,7 @@ def buildCommands(file, newDir, movieName, bitbucket): if ext == core.VEXTENSION and newDir == dir: # we need to change the name to prevent overwriting itself. core.VEXTENSION = '-transcoded{ext}'.format(ext=core.VEXTENSION) # adds '-transcoded.ext' else: - img, data = iteritems(file).next() + img, data = next(iteritems(file)) name = data['name'] video_details, result = getVideoDetails(data['files'][0], img, bitbucket) inputFile = '-' @@ -775,7 +775,7 @@ def Transcode_directory(dirName): if isinstance(file, basestring): proc = subprocess.Popen(command, stdout=bitbucket, stderr=bitbucket) else: - img, data = iteritems(file).next() + img, data = next(iteritems(file)) proc = subprocess.Popen(command, stdout=bitbucket, stderr=bitbucket, stdin=subprocess.PIPE) for vob in data['files']: procin = zip_out(vob, img, bitbucket)