diff --git a/svtplay-dl b/svtplay-dl index e4b8a6d..89035f9 100755 --- a/svtplay-dl +++ b/svtplay-dl @@ -1,5 +1,5 @@ #!/usr/bin/env python -import re,urllib2,urllib,os,subprocess +import re,urllib2,urllib,sys,os,subprocess def getdata(url): request = urllib2.Request(url) request.add_header = [('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')] @@ -8,7 +8,8 @@ def getdata(url): response.close(); return data -text = getdata("http://svtplay.se/t/103466/dokument_inifran") +argv = sys.argv[1] +text = getdata(argv) m = re.search('dynamicStreams=(.*)\&\;background', text) new = m.group(1) tmp = new.split("|")