Open bakua opened 7 years ago
Answered in Plex forum thread, and awaits feedback from OP
2017-06-30 22:31:25,731 (7fac6effd700) : DEBUG (__init__:162) - Converting file: /mnt/virtual/DOWNLOAD/filmy/12 Years a Slave (2013)/12 Years a Slave (2013).en.srt with the encoding of cp1252 into utf-8
#72 2017-06-30 22:31:25,731 (7fac6effd700) : CRITICAL (__init__:124) - Something went wrong converting!!! Check file permissions? (most recent call last):
#73 File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/SRT2UTF-8.bundle/Contents/Code/__init__.py", line 122, in FixFile
#74 ConvertFile(sFile, sMyEnc)
#75 File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/SRT2UTF-8.bundle/Contents/Code/__init__.py", line 164, in ConvertFile
#76 targetFile.write(sourceFile.read())
#77 File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/encodings/cp1252.py", line 23, in decode
#78 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
#79 UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 324: character maps to
#80
#81 2017-06-30 22:31:25,731 (7fac6effd700) : CRITICAL (__init__:326) - **** Reverting from backup, something went wrong here ****
#82 2017-06-30 22:31:25,737 (7fac6effd700) : DEBUG (__init__:337) - Reverting from backup of /mnt/virtual/DOWNLOAD/filmy/12 Years a Slave (2013)/12 Years a Slave (2013).en.srt.Srt2Utf-8
Subtitles it is happening for: 12 Years a Slave (2013).en.txt I had to rename srt to txt to be able to upload it.
I did a 5 minute digging through the code and that made me realize where we went wrong. My srt file is Czech language one in ISO 8859-2
encoding. Setting the filename to .en.srt
for test purposes was incorrect as ISO 8859-2
is unsupported by en
locale. I changed the filename to .cs.srt
and the above crash does not occur anymore.
However, I would still like to get the bug, that only shows, when running subs without a language identifier, fixed, as none of my subtitle files have the language identifier in it :)
Thank you, bakua
Care to try the Tommy-Work branch, found here, and then report back: https://github.com/ukdtom/SRT2UTF-8.bundle/archive/tommy-work.zip
Still doesn't work for me:
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/SRT2UTF-8.bundle$ git status
On branch tommy-work
Your branch is up-to-date with 'origin/tommy-work'.
nothing to commit, working directory clean
Sorry, closed by a mistake here....
This one is sadly still an issue
I have same problem, any suggestion please please please, logs.zip
@peritissima Check forum thread for a start
Hello,
I have PMS running on Ubuntu. Unfortunately, your plug-in doesn't work for me. Could I have an assistance please? Here is the stacktrace. The log file is attached to same issue on Plex Forum https://forums.plex.tv/discussion/comment/1469993/#Comment_1469993
Thank you :)