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

'Language' object does not support indexing #45

Open

Description

@mekwall

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>

Activity

  1. irvinekyle commented on Sep 13, 2018

    @irvinekyle

    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

  2. zion2k commented on Jul 24, 2022

    @zion2k

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions