Skip to content

UTF encoding not working #18

@GuillermoMarcel

Description

@GuillermoMarcel

Hi!

I deployed this using a standard configuration, the only different thing is the languages property in the json file
"languages": ["spa", "eng"]

The thing is that when trying to download the subs in spanish it has issues with the encoding

Looking in the logs I found that it downloads using the URL property.

The one example I have is this one.
Sample name:
Insidious.Chapter.2.2013.1080p.BluRay.x264.YIFY.mp4

checking the logs I found the url is downloading:

{
    "url": "https://dl.opensubtitles.org/en/download/src-api/vrf-19a10c51/sid-5yIJr1cutAyrMQAb057iIM8vTd8/filead/1954341409",
    "langcode": "es",
    "downloads": 14372,
    "lang": "Spanish",
    "encoding": "CP1252",
    "id": "1954341409",
    "filename": "Insidious.Chapter.2.2013.BluRay.720p.DTS.x264-CHD.es.srt",
    "date": "2014-07-23 02:00:32",
    "score": 9.5,
    "fps": 23.976,
    "format": "srt",
    "utf8": "https://dl.opensubtitles.org/en/download/subencoding-utf8/src-api/vrf-19a10c51/sid-5yIJr1cutAyrMQAb057iIM8vTd8/filead/1954341409",
    "vtt": "https://dl.opensubtitles.org/en/download/subformat-vtt/src-api/vrf-19a10c51/sid-5yIJr1cutAyrMQAb057iIM8vTd8/filead/1954341409",
    "calculate": {
        "fps": 4.999976023976021,
        "imdb": 9.5,
        "resolution": 7.279999999999999,
        "resolutions": [
            1920,
undefined 
        ],
        "keys": 2.5,
        "score": 24.27997602397602
    }
}

This is what I see if I download using the url property (this is OK)
image

But This is what the application is downloading
image

And this is what happens when the player takes the sub
image

I'm guessing it has something to do with the encoding. Maybe downloading the UTF8 link when available will fix the issue. I'm guessing this issue can be replicated in other languages with other puntuation symbols

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions