Created
March 28, 2018 05:46
-
-
Save kkHAIKE/cfb57f9cf7f1fe046df932599688d53e to your computer and use it in GitHub Desktop.
download dorcel handsoff free movie
This file contains hidden or 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
import urllib2 | |
import json | |
import subprocess | |
import StringIO | |
movies = json.loads(urllib2.urlopen("http://dorcel-handsoff.com/json/movies.json").read()) | |
haved = ["2446", "1122", "2902", "2557", "2342", | |
"1187", "1300", "1660", "1972", "2062", "2142", "2195"] | |
for x in movies["movies"]: | |
idx = x["id"] | |
if idx in haved: | |
continue | |
token = urllib2.urlopen("http://dorcel-handsoff.com/getToken.php?idFilm=" + idx).read()[2:-3] | |
m3u8io = StringIO.StringIO(urllib2.urlopen("http://cdn.odmanaged.com/" + token).read()) | |
m3u8 = m3u8io.readlines() | |
url = "http://cdn.odmanaged.com" + m3u8[7][:-1] | |
args = ["ffmpeg", "-i", url, "-c", "copy", "-bsf:a", "aac_adtstoasc", "av{0}.mp4".format(idx)] | |
print args | |
subprocess.call(args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment