Jump to content

Possible bug in decoding charts for Polish


Haxy

Recommended Posts

Edit: Problem with encoding occurs only when subtitles are in other format than "subrip"

 

Api response: https://pastebin.com/xDURX1ms

"Content" tag contains base64 subtitles, decoded: https://www.base64decode.org/

 

Code that I use to get subtitles from api response:

 

5ad9a07f0d786_2.png

 

 

In notepad++ looks ok:

5ad9a0bfc60af_1.png

 

 

And Emby still doesnt shows subtitles

Debug SubtitleEncoder: charset utf-8 detected for D:\Download\TestLibrary\The.Walking.Dead.S08E13.720p.HDTV.x264-AVS\The.Walking.Dead.S08E13.720p.HDTV.x264-AVS.pl.srt
2018-04-20 10:00:52.550 Debug TextEncoding: Getting encoding object for character set: utf-8
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [35][65]Trzeba zranić kilku z nich.|Niech przeżyją i się przemienią.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [80][107]Już raz dałeś ciała.|Nie pozwolę, byśmy przez ciebie zginęli.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [131][153]/To, że go tu nie ma,|/nie znaczy, że żyje.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [193][206]Możemy też zostawić tę sprawę.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [604][632]Miałeś postąpić inaczej.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [699][714]Nie!
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [1256][1280]Mogę go zabrać do walki?
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [1368][1405]- Chcę wam pomóc. Muszę walczyć.|- Wcale nie musisz.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [1454][1467]Carol!
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [1598][1617]Chroń pozostałych.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [1783][1821]- W czym się specjalizowałeś?|- Byłem dwuletnim rezydentem w...
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [1854][1880]- Amputacje?|- Nie, ale poradzÄ™ sobie z nimi.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [1929][1955]- Poradzę sobie.|- Potrafisz strzelać?
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [1989][2019]- Znam siÄ™ na tym na tyle, by...|- Doprawdy?
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [2046][2095]A tacy ludzie zazwyczaj są|bardziej niebezpieczni niż kompletne głąby.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [2122][2188]ale sporo się nauczyłem|między szpitalem a dzisiejszym dniem.
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [2264][2300]Dlatego daruj sobie te pytania
2018-04-20 10:00:52.565 Warn SubtitleEncoder: Unrecognized line in srt: [2395][2414]Polubiłam cię.
2018-04-20 10:00:52.566 Warn SubtitleEncoder: Unrecognized line in srt: [2813][2829]Zaczynamy.
Edited by Haxy
Link to comment
Share on other sites

I don't think I've seen that style of set before. Usually the time is on a separate line above the text.

 

I guess this is not really srt so you should make sure to set the format value correctly to whatever format it is.

Link to comment
Share on other sites

It is MicroDvd format, so I am guessing Emby doesn't suport it?

 

I need to find out somehow how to convert it to SubRip :/

Link to comment
Share on other sites

Oryginali is .sub but it is just extension, you can write microdvd to text file with .txt, the same with SubRip, you can write it to .srt or .txt.

The format of text inside the file is important.

 

I am trying to write my sub plugin to always write to .srt file extension and convert to SubRip.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...