I found what it is wrong with arabic "or any other" sub title that not work in Plex. I trace log file and found the problem.....
1- plex only read UTF8 srt files.... so you have to be sure that srt file is UTF8 (you can easy convert that using notepad++ or any other tool you prefer)
2- remove any HTML code (ex ) except () and any other thing like {\pos(195,110)} (the easy way to do that in using reg exp as the following: \{[^\}]*\}|<[^>|i>]*> )
for who is a developer... here is the first problem:
Dec 25, 2013 01:56:59:189 [0232] DEBUG - Content-Length of C:\Users\xxxxxxxxx\AppData\Local\Plex Media Server\Media/localhost/3/0732f2784d20c95f0f20f5cf57a50f002c44eb7.bundle/Contents/Subtitles/ar/com.plexapp.agents.opensubtitles_babcc62381348755cfb0a792e6bc8564109764bf.srt is 98164.
Dec 25, 2013 01:56:59:189 [0232] VERBOSE - Completed request: GET /library/streams/177: 200
Dec 25, 2013 01:56:59:189 [4872] VERBOSE - Finished writing response for GET /library/streams/177, 98164 bytes in 46ms
Dec 25, 2013 01:56:59:199 [14132] DEBUG - Detected character set of x-mac-cyrillic.
Dec 25, 2013 01:56:59:200 [14132] ERROR - Error opening conversion context from x-mac-cyrillic to utf-8
Dec 25, 2013 01:56:59:201 [14132] DEBUG - Wrote 0 bytes to C:\Users\xxxxxxx~1\AppData\Local\Temp\97c278a6-0db1-41b3-9951-852a9ecaed89.srt
Dec 25, 2013 01:56:59:201 [14132] DEBUG - Downloaded subtitles from [127.0.0.1:32400/library/streams/177] (format: srt) to temporary file [C:\Users\xxxxxxxxxx\AppData\Local\Temp\97c278a6-0db1-41b3-9951-852a9ecaed89.srt]
Here it is ;) some simple steps to convert multiple files via Notepad++ without messing up with special characters (for ex. diacritical marks).
Run Notepad++ and then open menu Plugins->Plugin Manager->Show Plugin Manager
Install Python Script. When plugin is installed, restart the application.
Choose menu Plugins->Python Script->New script.
Choose its name, and then past the following code:
convertToUTF8.py
import os;
import sys;
filePathSrc="C:\\Users\\" # Path to the folder with files to convert
for root, dirs, files in os.walk(filePathSrc):
for fn in files:
if fn[-4:] == '.xml': # Specify type of the files
notepad.open(root + "\\" + fn)
notepad.runMenuCommand("Encoding", "Convert to UTF-8")
notepad.save()
notepad.close()
I found what it is wrong with arabic "or any other" sub title that not work in Plex. I trace log file and found the problem.....
1- plex only read UTF8 srt files.... so you have to be sure that srt file is UTF8 (you can easy convert that using notepad++ or any other tool you prefer)
2- remove any HTML code (ex ) except () and any other thing like {\pos(195,110)} (the easy way to do that in using reg exp as the following: \{[^\}]*\}|<[^>|i>]*> )
3- add at the end of the file name (ara) before (.srt) (ex. Hours.2013.1080p.BluRay.x264.YIFY.srt => Hours.2013.1080p.BluRay.x264.YIFY.ara.srt)
that is all.... enjoy.
المشكلة أخي الكريم
I found what it is wrong with arabic "or any other" sub title that not work in Plex. I trace log file and found the problem.....
1- plex only read UTF8 srt files.... so you have to be sure that srt file is UTF8 (you can easy convert that using notepad++ or any other tool you prefer)
2- remove any HTML code (ex ) except () and any other thing like {\pos(195,110)} (the easy way to do that in using reg exp as the following: \{[^\}]*\}|<[^>|i>]*> )