Fix bug in videos command saying there are more videos when there aren’t

When listing videos, if --pager was not specified and all of the videos
for a channel were listed, a message would still print out saying
“There are more videos. Increase the --limit or use --pager to see the
rest."

This checks to see if there are actually more videos before printing
that error message.
This commit is contained in:
Scotty Allen 2021-01-10 16:44:57 -07:00 committed by Ivan Habunek
parent 838611b834
commit a7340f178f

View File

@ -122,7 +122,7 @@ def videos(args):
for video in videos["edges"]:
print_video(video["node"])
if not args.pager:
if not args.pager and has_more:
print_out(
"\n<dim>There are more videos. "
"Increase the --limit or use --pager to see the rest.</dim>"