Fix info command

This commit is contained in:
Ivan Habunek 2022-03-12 08:16:19 +01:00
parent 45821ceb0e
commit d848826ec3
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -6,7 +6,7 @@ from twitchdl.output import print_video, print_clip, print_json, print_out, prin
def info(args):
video_id = utils.parse_video_identifier(args.identifier)
video_id = utils.parse_video_identifier(args.video)
if video_id:
print_log("Fetching video...")
video = twitch.get_video(video_id)
@ -27,7 +27,7 @@ def info(args):
video_info(video, playlists)
return
clip_slug = utils.parse_clip_identifier(args.identifier)
clip_slug = utils.parse_clip_identifier(args.video)
if clip_slug:
print_log("Fetching clip...")
clip = twitch.get_clip(clip_slug)
@ -40,7 +40,7 @@ def info(args):
clip_info(clip)
return
raise ConsoleError("Invalid input: {}".format(args.identifier))
raise ConsoleError("Invalid input: {}".format(args.video))
def video_info(video, playlists):