mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Fix next in Python 3
In Python 3 `obj.next` is renamed to `obj.__next__` and should be called with the `next` builtin.
This commit is contained in:
parent
943bdc9320
commit
4ee656f22c
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
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'
|
core.VEXTENSION = '-transcoded{ext}'.format(ext=core.VEXTENSION) # adds '-transcoded.ext'
|
||||||
else:
|
else:
|
||||||
img, data = iteritems(file).next()
|
img, data = next(iteritems(file))
|
||||||
name = data['name']
|
name = data['name']
|
||||||
video_details, result = getVideoDetails(data['files'][0], img, bitbucket)
|
video_details, result = getVideoDetails(data['files'][0], img, bitbucket)
|
||||||
inputFile = '-'
|
inputFile = '-'
|
||||||
|
@ -775,7 +775,7 @@ def Transcode_directory(dirName):
|
||||||
if isinstance(file, basestring):
|
if isinstance(file, basestring):
|
||||||
proc = subprocess.Popen(command, stdout=bitbucket, stderr=bitbucket)
|
proc = subprocess.Popen(command, stdout=bitbucket, stderr=bitbucket)
|
||||||
else:
|
else:
|
||||||
img, data = iteritems(file).next()
|
img, data = next(iteritems(file))
|
||||||
proc = subprocess.Popen(command, stdout=bitbucket, stderr=bitbucket, stdin=subprocess.PIPE)
|
proc = subprocess.Popen(command, stdout=bitbucket, stderr=bitbucket, stdin=subprocess.PIPE)
|
||||||
for vob in data['files']:
|
for vob in data['files']:
|
||||||
procin = zip_out(vob, img, bitbucket)
|
procin = zip_out(vob, img, bitbucket)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue