Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

'Language' object does not support indexing #45

Open
mekwall opened this issue Aug 29, 2018 · 2 comments
Open

'Language' object does not support indexing #45

mekwall opened this issue Aug 29, 2018 · 2 comments

Comments

@mekwall
Copy link

mekwall commented Aug 29, 2018

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>
@irvinekyle
Copy link

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

@zion2k
Copy link

zion2k commented Jul 24, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants