print("Error: Failed to access YouTube API. Please check your YOUTUBE_API_KEY and ensure it is valid.")
print("Error: Failed to access YouTube API. Please check your YOUTUBE_API_KEY and ensure it is valid.")
if __name__ == '__main__':
if __name__ == '__main__':
parser = argparse.ArgumentParser(
parser = argparse.ArgumentParser(description='vm (video meta) extracts metadata about a video, such as the transcript and the video\'s duration. By Daniel Miessler.')
description='vm (video meta) extracts metadata about a video, such as the transcript and the video\'s duration. By Daniel Miessler',
formatter_class=CustomHelpFormatter
)
parser.add_argument('url', nargs='?', help='YouTube video URL')
parser.add_argument('url', nargs='?', help='YouTube video URL')
parser.add_argument('--duration', action='store_true', help='Output only the duration')
parser.add_argument('--duration', action='store_true', help='Output only the duration')
parser.add_argument('--transcript', action='store_true', help='Output only the transcript')
parser.add_argument('--transcript', action='store_true', help='Output only the transcript')