exebetche / vlsub

VLC extension to download subtitles from opensubtitles.org
1.34k stars 345 forks source link

Fetches seemingly correct srt.gz file, fails to decompress #229

Closed EricViala closed 4 years ago

EricViala commented 4 years ago

Been using VLSub for some times, quite satisfactory. However, since a couple of weeks, it fails.

(Most recent Ubuntu, most recent VLC package, reinstalled most recent VLSub, relevant log below)

Download progresses normaly, but once the download is apparently complete, VLSub stays there, nothing more happens, the subtitle is not loaded.

In the folder where my movie resides, I find movie.srt.gz with a size of 37.3 KiB Openning it with Engrampa shows the content as movie.srt with a size of zero bytes, which seems consistant with the log :

Error (...) attempt to index local 'stream' (a nil value)

Manually downloading, expanding and loading the subtitle works fine.

I find a similar bug on videolan.org that was closed 18 months ago although without resolution, apparently.


debug log :

lua debug: Clicking '/usr/share/vlc/lua/extensions/vlsub.lua': 'Search by hash'
lua debug: [VLSub] Video URI: file:///home/user/Downloads/movie/movie.mp4
lua debug: [VLSub] file info Waking Life 2001 1080p BluRay H264 AAC-RARBG movie.mp4 /home/user/Downloads/movie/ mp4 true false movie /home/user/Downloads/movie/movie.mp4 file 1568225696 1567790625 1000 33188 1567790625 2063279593 file 1000 file:///home/user/Downloads/movie/movie.mp4
lua debug: [VLSub] Read hash data from file
lua debug: [VLSub] Video hash: ec653483536d0313
lua debug: [VLSub] Video bytesize: 2063279593
main debug: net: connecting to api.opensubtitles.org port 80
main debug: connection succeeded (socket = 73)
main debug: net: connecting to api.opensubtitles.org port 80
main debug: connection succeeded (socket = 74)
lua debug: Clicking '/usr/share/vlc/lua/extensions/vlsub.lua': 'Download selection'
main debug: net: connecting to dl.opensubtitles.org port 80
main debug: connection succeeded (socket = 75)
lua debug: [VLsub] tmpFileName: /home/user/Downloads/movie/movie.srt.gz
lua debug: [VLsub] Subtitles files: /home/user/Downloads/movie/movie.srt
main debug: creating access: zip://file:///home/user/Downloads/movie/movie.srt.gz!/movie.srt
main debug: looking for access module matching "zip": 28 candidates
main debug: no access modules matched
main error: no suitable access module for `zip://file:///home/user/Downloads/movie/movie.srt.gz!/movie.srt'
lua warning: Error while running script /usr/share/vlc/lua/extensions/vlsub.lua, function (null)(): /usr/share/vlc/lua/extensions/vlsub.lua:1784: attempt to index local 'stream' (a nil value)
EricViala commented 4 years ago

Never mind the above. Fumbling around, I noticed that the vlsub_conf.xml did not open correctly in the browser. Deleted it, launched VLC then VLSub, works fine, problem solved, issue closed.