Skip to content

Instantly share code, notes, and snippets.

@scturtle
Created December 29, 2012 15:03
Show Gist options
  • Save scturtle/4407387 to your computer and use it in GitHub Desktop.
Save scturtle/4407387 to your computer and use it in GitHub Desktop.
get subtitles on Mac
#!/usr/bin/env python
import os
import sys
# sscl from http://hg.splayer.org/splayerx/raw/0b9e84441210/binaries/x86_64/sscl
mv = sys.argv[1]
out = os.popen('sscl --pull --video-file "{}"'.format(mv)).read()
print out
for sf in out.splitlines():
os.system('cp "{}" .'.format(sf))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment