diff --git a/docs/commands/videos.md b/docs/commands/videos.md index b016316..718a760 100644 --- a/docs/commands/videos.md +++ b/docs/commands/videos.md @@ -52,7 +52,7 @@ twitch-dl videos [FLAGS] [OPTIONS] -l, --limit - Number of videos to fetch. Defaults to 10. + Number of videos to fetch. Defaults to 40 in copmpact mode, 10 otherwise. diff --git a/twitchdl/commands/videos.py b/twitchdl/commands/videos.py index 228a270..bbe1121 100644 --- a/twitchdl/commands/videos.py +++ b/twitchdl/commands/videos.py @@ -7,8 +7,12 @@ from twitchdl.output import print_out, print_paged_videos, print_video, print_js def videos(args): game_ids = _get_game_ids(args.game) + + # Set different defaults for limit for compact display + limit = args.limit or (40 if args.compact else 10) + # Ignore --limit if --pager or --all are given - max_videos = sys.maxsize if args.all or args.pager else args.limit + max_videos = sys.maxsize if args.all or args.pager else limit total_count, generator = twitch.channel_videos_generator( args.channel_name, max_videos, args.sort, args.type, game_ids=game_ids) diff --git a/twitchdl/console.py b/twitchdl/console.py index daea340..88e93c3 100644 --- a/twitchdl/console.py +++ b/twitchdl/console.py @@ -80,9 +80,8 @@ COMMANDS = [ "type": str, }), (["-l", "--limit"], { - "help": "Number of videos to fetch. Defaults to 10.", + "help": "Number of videos to fetch. Defaults to 40 in copmpact mode, 10 otherwise.", "type": pos_integer, - "default": 10, }), (["-a", "--all"], { "help": "Fetch all videos, overrides --limit",