Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def watch(video_ids: Iterable[int]) -> None:
ytcc_core.set_video_id_filter(video_ids)
videos = ytcc_core.list_videos()
if not videos:
print(_("No videos to watch. No videos match the given criteria."))
elif not INTERACTIVE_ENABLED:
for video in videos:
play(video, NO_VIDEO)
else:
Interactive(videos).run()