Closed pmaoui closed 11 years ago
Check the pull request I submitted. You can try the lua script from my fork if you want. It seems to solve some issues with downloading subs on Linux at all, but it might not fix your specific issue. It worked when downloading at least one set of subs(it hung before, but now it worked).
Actually, I have found this plugin from the same author https://github.com/thePanz/VLCSub. It is very efficient. Thank anyway !
From version 1.2 the plugin includes Abrhams's edits :) BTW it could be nice if the two plugins could be merged into a single one!
Hey, I'm on Ubuntu 12.10 (Quantal) and I have this issue each time I try to load a subtitle. It's just hang and fail. Otherwise, thank you for this great plugin.
Here is the debug :
lua debug: Clicking '/home/pierrot/.local/share/vlc/lua/extensions/SubtitlesFinder.lua': 'Load selected subtitles' lua debug: [Subtitles] Clicked load button from "Download subtitles" dialog lua debug: [Subtitles] Selected the item 10 with the name: [en][#1] Suits.S01E01.HDTV.XviD-FQM lua debug: [Subtitles] URL: http://www.opensubtitles.org/en/http://dl.opensubtitles.org/en/download/subad/4198100 main debug: creating access 'http' location='www.opensubtitles.org/en/http://dl.opensubtitles.org/en/download/subad/4198100', path='(null)' main debug: looking for access module: 2 candidates access_http debug: asking libproxy about url 'http://www.opensubtitles.org/en/http://dl.opensubtitles.org/en/download/subad/4198100' access_http debug: libproxy suggest to use 'direct://' access_http debug: http: server='www.opensubtitles.org' port=80 file='/en/http://dl.opensubtitles.org/en/download/subad/4198100' main debug: net: connecting to www.opensubtitles.org port 80 main debug: connection succeeded (socket = 8) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Accepting Cookie: PHPSESSID=j6t7qbahh6rh088emkdd1gk7o3; path=/ access_http debug: Accepting Cookie: ts=1362958172; expires=Wed, 10-Apr-2013 22:29:32 GMT; path=/ access_http debug: Content-Type: application/zip access_http debug: Pragma: public access_http debug: Connection: close access_http debug: stream size=43303,pos=0,remaining=43303 access_http debug: this frame size=43303 main debug: using access module "access_http" main debug: TIMER module_need() : 282.394 ms - Total 282.394 ms / 1 intvls (Avg 282.394 ms) main debug: Using stream method for AStream main debug: starting pre-buffering main debug: received first data after 0 ms main debug: pre-buffering done 836 bytes in 0s - 68033 KiB/s main debug: looking for stream_filter module: 2 candidates access_http debug: trying to seek to 42275 main debug: net: connecting to www.opensubtitles.org port 80 main debug: connection succeeded (socket = 8) access_http debug: Sending Cookie PHPSESSID=j6t7qbahh6rh088emkdd1gk7o3 access_http debug: Sending Cookie ts=1362958172 access_http debug: protocol 'HTTP' answer code 206 access_http debug: Accepting Cookie: PHPSESSID=ne8d8door7v6nphm2h6eju7pa6; path=/ access_http debug: Accepting Cookie: ts=1362958172; expires=Wed, 10-Apr-2013 22:29:32 GMT; path=/ access_http debug: Content-Type: application/zip access_http debug: Pragma: public access_http debug: Connection: close access_http debug: stream size=43303,pos=42275,remaining=1028 access_http debug: this frame size=1028 main debug: using stream_filter module "zip" main debug: TIMER module_need() : 308.191 ms - Total 308.191 ms / 1 intvls (Avg 308.191 ms) lua info: [Subtitles] Type: ZIP file lua debug: Buffering... lua debug: [Subtitles] Loading en subtitle: zip://http://www.opensubtitles.org/en/http://dl.opensubtitles.org/en/download/subad/4198100!/Suits.S01E01.HDTV.XviD?2dFQM main debug: creating access 'zip' location='http://www.opensubtitles.org/en/http://dl.opensubtitles.org/en/download/subad/4198100!/Suits.S01E01.HDTV.XviD?2dFQM.srt', path='(null)' main debug: looking for access module: 1 candidate main debug: creating access 'http' location='www.opensubtitles.org/en/http://dl.opensubtitles.org/en/download/subad/4198100', path='(null)' main debug: looking for access module: 2 candidates access_http debug: asking libproxy about url 'http://www.opensubtitles.org/en/http://dl.opensubtitles.org/en/download/subad/4198100' access_http debug: libproxy suggest to use 'direct://' access_http debug: http: server='www.opensubtitles.org' port=80 file='/en/http://dl.opensubtitles.org/en/download/subad/4198100' main debug: net: connecting to www.opensubtitles.org port 80 main debug: connection succeeded (socket = 33) access_http debug: protocol 'HTTP' answer code 206 access_http debug: Accepting Cookie: PHPSESSID=eai39srqf2jhr1i3kn5a8724f1; path=/ access_http debug: Accepting Cookie: ts=1362958173; expires=Wed, 10-Apr-2013 22:29:33 GMT; path=/ access_http debug: Content-Type: application/zip access_http debug: Pragma: public access_http debug: Connection: close access_http debug: stream size=43303,pos=0,remaining=43303 access_http debug: this frame size=43303 main debug: using access module "access_http" main debug: TIMER module_need() : 282.451 ms - Total 282.451 ms / 1 intvls (Avg 282.451 ms) main debug: Using stream method for AStream main debug: starting pre-buffering main debug: received first data after 0 ms main debug: pre-buffering done 836 bytes in 0s - 136067 KiB/s access_http debug: trying to seek to 43303 access_http error: seek to far access_http debug: trying to seek to 43302 main debug: net: connecting to www.opensubtitles.org port 80 main debug: connection succeeded (socket = 33) access_http debug: Sending Cookie PHPSESSID=eai39srqf2jhr1i3kn5a8724f1 access_http debug: Sending Cookie ts=1362958173 access_http debug: protocol 'HTTP' answer code 206 access_http debug: Accepting Cookie: PHPSESSID=55ts0tb82umnu19dopv54jmkc0; path=/ access_http debug: Accepting Cookie: ts=1362958173; expires=Wed, 10-Apr-2013 22:29:33 GMT; path=/ access_http debug: Content-Type: application/zip access_http debug: Pragma: public access_http debug: Connection: close access_http debug: this frame size=1 access_http debug: trying to seek to 42275 main debug: net: connecting to www.opensubtitles.org port 80 main debug: connection succeeded (socket = 33) access_http debug: Sending Cookie PHPSESSID=eai39srqf2jhr1i3kn5a8724f1 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=55ts0tb82umnu19dopv54jmkc0 access_http debug: Sending Cookie ts=1362958173 access_http debug: protocol 'HTTP' answer code 206 access_http debug: Accepting Cookie: PHPSESSID=p7u5ptbehtor183j0lv32lhkt6; path=/ access_http debug: Accepting Cookie: ts=1362958173; expires=Wed, 10-Apr-2013 22:29:33 GMT; path=/ access_http debug: Content-Type: application/zip access_http debug: Pragma: public access_http debug: Connection: close access_http debug: stream size=43303,pos=42275,remaining=1028 access_http debug: this frame size=1028 access_http debug: trying to seek to 836 main debug: net: connecting to www.opensubtitles.org port 80 main debug: connection succeeded (socket = 33) access_http debug: Sending Cookie PHPSESSID=eai39srqf2jhr1i3kn5a8724f1 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=55ts0tb82umnu19dopv54jmkc0 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=p7u5ptbehtor183j0lv32lhkt6 access_http debug: Sending Cookie ts=1362958173 access_http debug: protocol 'HTTP' answer code 206 access_http debug: Accepting Cookie: PHPSESSID=dm3tjcraobtn4hpqofhu25ekc5; path=/ access_http debug: Accepting Cookie: ts=1362958174; expires=Wed, 10-Apr-2013 22:29:34 GMT; path=/ access_http debug: Content-Type: application/zip access_http debug: Pragma: public access_http debug: Connection: close access_http debug: stream size=43303,pos=836,remaining=42467 access_http debug: this frame size=42467 access_http debug: trying to seek to 43303 access_http error: seek to far access_http debug: trying to seek to 43302 main debug: net: connecting to www.opensubtitles.org port 80 main debug: connection succeeded (socket = 33) access_http debug: Sending Cookie PHPSESSID=eai39srqf2jhr1i3kn5a8724f1 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=55ts0tb82umnu19dopv54jmkc0 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=p7u5ptbehtor183j0lv32lhkt6 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=dm3tjcraobtn4hpqofhu25ekc5 access_http debug: Sending Cookie ts=1362958174 access_http debug: protocol 'HTTP' answer code 206 access_http debug: Accepting Cookie: PHPSESSID=t4uhf8evgdqod7fo9noam8s4m0; path=/ access_http debug: Accepting Cookie: ts=1362958174; expires=Wed, 10-Apr-2013 22:29:34 GMT; path=/ access_http debug: Content-Type: application/zip access_http debug: Pragma: public access_http debug: Connection: close access_http debug: this frame size=1 main debug: using access module "zip" main debug: TIMER module_need() : 1480.136 ms - Total 1480.136 ms / 1 intvls (Avg 1480.136 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering access_http debug: trying to seek to 1542 main debug: net: connecting to www.opensubtitles.org port 80 main debug: connection succeeded (socket = 33) access_http debug: Sending Cookie PHPSESSID=eai39srqf2jhr1i3kn5a8724f1 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=55ts0tb82umnu19dopv54jmkc0 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=p7u5ptbehtor183j0lv32lhkt6 access_http debug: Sending Cookie ts=1362958173 access_http debug: Sending Cookie PHPSESSID=dm3tjcraobtn4hpqofhu25ekc5 access_http debug: Sending Cookie ts=1362958174 access_http debug: Sending Cookie PHPSESSID=t4uhf8evgdqod7fo9noam8s4m0 access_http debug: Sending Cookie ts=1362958174 access_http debug: protocol 'HTTP' answer code 206 access_http debug: Accepting Cookie: PHPSESSID=l3m9q6g282drbr84f7iqdfqjc6; path=/ access_http debug: Accepting Cookie: ts=1362958174; expires=Wed, 10-Apr-2013 22:29:34 GMT; path=/ access_http debug: Content-Type: application/zip access_http debug: Pragma: public access_http debug: Connection: close access_http debug: stream size=43303,pos=1542,remaining=41761 access_http debug: this frame size=41761 main debug: received first data after 407 ms main debug: pre-buffering done 1024 bytes in 0s - 2 KiB/s lua info: [Subtitle-download] Buffering: zip://http://www.opensubtitles.org/en/http://dl.opensubtitles.org/en/download/subad/4198100!/Suits.S01E01.HDTV.XviD?2dFQM.srt lua info: [Subtitle-download] saving subtitle to: home/pierrot/Desktop/Suits.S01E01.Pilot.HDTV.XviD-FQM.[VTV].avi.en.srt lua warning: Error while running script /home/pierrot/.local/share/vlc/lua/extensions/SubtitlesFinder.lua, function (null)(): .../.local/share/vlc/lua/extensions/SubtitlesFinder.lua:393: home/pierrot/Desktop/Suits.S01E01.Pilot.HDTV.XviD-FQM.[VTV].avi.en.srt: No such file or directory