Created
December 29, 2012 15:03
-
-
Save scturtle/4407387 to your computer and use it in GitHub Desktop.
get subtitles on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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