VideoSort icon indicating copy to clipboard operation
VideoSort copied to clipboard

'Language' object does not support indexing

Open mekwall opened this issue 7 years ago • 2 comments

I'm having issues with VideoSort failing to rename and move subtitles that was fetched by Subliminal. I run Subliminal just right before VideoSort and have set VideoSort to move satellite files. It does rename and move the movie successfully though so it's not really that big of an issue other than I don't get the subtitles moved.

I'm guessing something's wrong with this part: subpart = '.' + guess['subtitle_language'][0].alpha2

Here's a log:

ERROR | Wed Aug 29 2018 13:55:55 | Post-process-script VideoSort/VideoSort.py for <REDACTED> failed
ERROR | Wed Aug 29 2018 13:55:55 | VideoSort: 'Language' object does not support indexing
ERROR | Wed Aug 29 2018 13:55:55 | VideoSort: Failed: <REDACTED>
INFO | Wed Aug 29 2018 13:55:55 | VideoSort: Moved: <REDACTED>
INFO | Wed Aug 29 2018 13:55:55 | VideoSort: TypeError: 'Language' object does not support indexing
INFO | Wed Aug 29 2018 13:55:55 | VideoSort: subpart = '.' + guess['subtitle_language'][0].alpha2
INFO | Wed Aug 29 2018 13:55:55 | VideoSort: File "/config/scripts/VideoSort/VideoSort.py", line 453, in move_satellites
INFO | Wed Aug 29 2018 13:55:55 | VideoSort: move_satellites(old_path, new_path)
INFO | Wed Aug 29 2018 13:55:55 | VideoSort: File "/config/scripts/VideoSort/VideoSort.py", line 1243, in <module>

mekwall avatar Aug 29 '18 12:08 mekwall

Following for any updates. I have just started seeing this same error. I don't use Subliminal however and don't have any specific subtitle script running. But it has the same error in the logs and same issue with not moving the .srt files and not deleteing the old named folder as a result. This is on a windows machine BTW

irvinekyle avatar Sep 13 '18 09:09 irvinekyle

Any tips how to fix this error? I have several files which failed indexing :/

zion2k avatar Jul 24 '22 15:07 zion2k