Skip to content

Path url encoding for subtitle files is incorrect when opening video files #766

@athene20

Description

@athene20

Description
When playing a movie with subtitle files present, there is a problem with the path encoding of the query_parameter passed when calling subtitles.

The query_string when the subtitle file was opened separately: path=%2F%25EA%25B8%25B0%25ED%2583%2580%2FTEST%2F1.%25202.srt&source=local&content=true

Image

The query_string of the video file when the video file was opened: path=%2F%25EA%25B8%25B0%25ED%2583%2580%2FTEST%2F1.%25202.mp4&source=local&content=true

Image

The query_string of the subtitle file when the video file was opened: path=%2F%EA%B8%B0%ED%83%80%2FTEST%2F1.srt&source=local&content=true
(ERROR)

Image

Expected behaviour
The video plays with subtitles.

What is happening instead?
I get the error below.

Error 500: could not stat path: /srv/기타/TEST/1.srt, lstat /srv/기타/TEST/1.srt: no such file or directory.

Additional context
included in the description.

How to reproduce?
After locating the movie file and subtitle file (ex: .srt) with the name that needs to be encoded, play the movie.

Files
Reproducible with any file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions