How to use the ytcc.cli.Interactive.run function in ytcc

To help you get started, we’ve selected a few ytcc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github woefe / ytcc / ytcc / cli.py View on Github external
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()