nzbget / VideoSort

Video sorting script for NZBGet
GNU General Public License v3.0
105 stars 43 forks source link

'Language' object does not support indexing #45

Open mekwall opened 6 years ago

mekwall commented 6 years ago

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 commented 6 years ago

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 commented 2 years ago

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