emericg / OpenSubtitlesDownload

Automatically find and download the right subtitles for your favorite videos!
https://emeric.io/OpenSubtitlesDownload
GNU General Public License v3.0
596 stars 66 forks source link

Syntax errors while fetching subs #116

Open Cqoicebordel opened 1 month ago

Cqoicebordel commented 1 month ago

I got a couple of different syntax errors, just after selecting a sub to download. The error is sub dependent, I mean that I get the same error each time I chose a particular sub, an another if I chose another sub.

To reproduce :
$ OpenSubtitlesDownload.py My.Brilliant.Friend.S02E01.The.New.Name.ITALIAN.SUBBED.720p.WEBRip.2CH.x265.HEVC-PSA.mkv

The following popup appears : Screenshot_20240911_230331

If I chose the first or third option, the full output of the command is as follow :

x:  0   y:  0   w:  920   h:  400
/bin/sh: 1: Syntax error: Unterminated quoted string
x:  -1299055440   y:  21854   w:  920   h:  400

If I chose the second, I get :

x:  0   y:  0   w:  920   h:  400
/bin/sh: 1: Syntax error: "(" unexpected (expecting ")")
x:  1160377632   y:  21956   w:  920   h:  400

The fact it's dependent on the subtitle chosen is weird. But it still could come from my machine which is stuck on Kubuntu 20.04.

Anyway, I hope it'll help :)

emericg commented 3 days ago

Hi, I'll have a look now that I have a KDE installation, but it will be with the very latest KDE 6.2 version, so it might not translate to fix for you unfortunately :(