forked from akukerang/StudySurfer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudySurfer.py
More file actions
24 lines (19 loc) · 722 Bytes
/
studySurfer.py
File metadata and controls
24 lines (19 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import sys, getopt
from classes.movieMaker import getVideo
def main():
try:
opts, values = getopt.getopt(sys.argv[1:], 'm:')
for currArr, currVal in opts:
if currArr in ('-m'):
if currVal == 'csgo':
getVideo('./resources/gameplay/csgo.mp4')
elif currVal == 'subway':
getVideo('./resources/gameplay/ssgameplay.mp4')
elif currVal == 'mc':
getVideo('./resources/gameplay/minecraft.mp4')
else:
print('Invalid option')
except getopt.error as err:
print(str(err))
if __name__ == "__main__":
main()