mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
Main function.. no global variables
This commit is contained in:
parent
a2229b17e8
commit
090fa40ba6
@ -52,6 +52,7 @@ def gethttp(url, output):
|
||||
|
||||
fd.close()
|
||||
|
||||
def main():
|
||||
argv = sys.argv[1]
|
||||
DATA = getdata(argv)
|
||||
MATCH = re.search('dynamicStreams=(.*)\&\;background', DATA)
|
||||
@ -72,3 +73,6 @@ if STREAM[0:4] == "rtmp":
|
||||
getrtmp(STREAM, OUTPUT)
|
||||
else:
|
||||
gethttp(STREAM, OUTPUT)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user