-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (23 loc) · 755 Bytes
/
main.py
File metadata and controls
26 lines (23 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from src.ClipHandler import ClipHandler
from src.ClipCompilationCreator import ClipCompilationCreator
from src.parser import get_arg_parser
import logging
logging.getLogger().setLevel(logging.INFO)
games = {
"fortnite": "Fortnite",
"lol": "League of Legends"
}
parser = get_arg_parser()
args = parser.parse_args()
game = games.get(args.game, args.game)
ch = ClipHandler(game, args.asset_path, args.output_path)
ch.get_clips(
number_of_clips=args.number_of_clips,
timespan=args.timespan,
language=args.language,
min_length=args.min_length,
max_creator_clips=args.max_creator_clips,
min_clip_duration=args.min_clip_duration,
)
vcc = ClipCompilationCreator(game, args.asset_path, args.output_path)
vcc.create_compilation()