thanks for all
Can you add this ?
http://film-club.net
Posted 21 October 2015 - 20:37
Hello hyperonex,
Please ignore my previous post as the problem disappears today.
Thank you for this great work
If you think that this problem has been introduced with 81.00.00.00 you can downgrade version and check.
To do this you should simple enable this posibility in configuration menu.
Please check and let me know.
Regards,
SSS
Posted 23 October 2015 - 09:01
Hello
can u add in app settings prefered language in opensubtitles download?
subtitles on local media files need to be in UTF8,i saw downloaded subs r converted for player.can u do temp convert for local .srt files to be correct displayed in player?
reorder in main page by most used of online services?
keep u good work and thank you for u hard work.best player for my e2 so far !
Posted 23 October 2015 - 11:41
Posted 23 October 2015 - 11:48
1. Prefered language for OpenSubtitilesAs prefered (first in list) language from E2 is taken2. Hosts orderTo change hosts order please go to IPTVPlayer configurationand then select "Services configuration"In service configuration press "Menu" and select "Enable reordering mode"Than you can change order of hosts in similar way as you changing channel order (OK to slect, UP/DOWN to move, OK to unselect).
Thank u ! appreciated !!
Posted 23 October 2015 - 13:00
With this point is some problem, because I do not know the file coding. When the file is downloaded from OpenSubtitles I have information about original coding, so I can convert it to UTF-8.
Without the information about original coding this is hard to do, so I can only ask the user to choose the original coding.
Edited by samsamsam, 23 October 2015 - 13:01.
Posted 23 October 2015 - 14:38
With this point is some problem, because I do not know the file coding. When the file is downloaded from OpenSubtitles I have information about original coding, so I can convert it to UTF-8.
Without the information about original coding this is hard to do, so I can only ask the user to choose the original coding.
hi
we dont know how u convert but i think u can find out file encoding like on downloaded,or u can set encoding convertion preset.in my case is cp1251.thanks
Posted 23 October 2015 - 14:45
Notepad++ > Encoding > Convert to UTF8.
Posted 23 October 2015 - 15:11
i made some digg to google.this works on e2 box for convertion
#!/usr/bin/env python import os import sys import shutil def convert_to_utf8(filename): # gather the encodings you think that the file may be # encoded inside a tuple encodings = ('windows-1251', 'iso-8859-7', 'macgreek') # try to open the file and exit if some IOError occurs try: f = open(filename, 'r').read() except Exception: sys.exit(1) # now start iterating in our encodings tuple and try to # decode the file for enc in encodings: try: # try to decode the file with the first encoding # from the tuple. # if it succeeds then it will reach break, so we # will be out of the loop (something we want on # success). # the data variable will hold our decoded text data = f.decode(enc) break except Exception: # if the first encoding fail, then with the continue # keyword will start again with the second encoding # from the tuple an so on.... until it succeeds. # if for some reason it reaches the last encoding of # our tuple without success, then exit the program. if enc == encodings[-1]: sys.exit(1) continue # now get the absolute path of our filename and append .bak # to the end of it (for our backup file) fpath = os.path.abspath(filename) newfilename = fpath + '.bak' # and make our backup file with shutil shutil.copy(filename, newfilename) # and at last convert it to utf-8 f = open(filename, 'w') try: f.write(data.encode('utf-8')) except Exception, e: print e finally: f.close() if __name__ == '__main__': convert_to_utf8(sys.argv[1])
regs
Posted 23 October 2015 - 17:01
With this point is some problem, because I do not know the file coding. When the file is downloaded from OpenSubtitles I have information about original coding, so I can convert it to UTF-8.
Without the information about original coding this is hard to do, so I can only ask the user to choose the original coding.
hi
we dont know how u convert but i think u can find out file encoding like on downloaded,or u can set encoding convertion preset.in my case is cp1251.thanks
The OpenSubtitles.org sent this information. So, when I get info about subtitles file the server return to me encoding type.
So, I can not use the same method. Because when file is read from local storage I do not have such information.
0 members, 0 guests, 0 anonymous users