Use of str.format not compatible with python2.5
Closed this issue · 1 comments
jpenney commented
I'm not sure if this is the case on any other systems, but on Mac OS X builds, Plex runs python2.5, which doesn't have str.format (which was backported from python 3 into 2.6).
Here's the log message:
CRITICAL (runtime:295) - Exception in task thread (most recent call last):
File "[...]/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 293, in _start
obj._exec()
File "[...]/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 240, in _exec
self._result = self._f(*self._args, **self._kwargs)
File "[...]/Plex Media Server/Plug-ins/XBMCnfoTV.bundle/Contents/Code/__init__.py", line 379, in UpdateEpisode
indent = '{:>61}'.format('')
AttributeError: 'str' object has no attribute 'format'
Would this work, instead?
indent = ' ' * 61
SlrG commented
str.format is not used anymore, so I think this might be closed.