Skip to content

Instantly share code, notes, and snippets.

@amitt001
Last active March 3, 2017 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitt001/2427a7b3c802fd150f7a57a2c434ab31 to your computer and use it in GitHub Desktop.
Save amitt001/2427a7b3c802fd150f7a57a2c434ab31 to your computer and use it in GitHub Desktop.
OpenSubtitles.org has apparently updated their servers. That uncovered latent bugs in the very dumb HTTP support of the VLSub extension.
To work around the problem (you might need administrator privileges):
Go to the VLC installation directory.
Look for the file named lua/extensions/VLSub.luac.
Open that file in a binary or hexadecimal editor. (DO NOT USE a text editor.)
Look for the character sequence "HTTP/1.1" (without quotes).
Replace the last one by a zero: "HTTP/1.0".
Repeat the procedure; there should be a second occurence in the file.
Save the file.
(Re)start VLC.
Mac Vlsub directory: /Applications/VLC.app/Contents/MacOS/share/lua/extensions/VLSub.luac
Mac Hex editor: http://ridiculousfish.com/hexfiend/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment