mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-08 07:11:06 +00:00
fixed yt
This commit is contained in:
parent
914f6b46c3
commit
8c0bfc9e95
@ -16,7 +16,7 @@ def get_video_id(url):
|
||||
return match.group(1) if match else None
|
||||
|
||||
|
||||
def main(url, options):
|
||||
def main_function(url, options):
|
||||
# Load environment variables from .env file
|
||||
load_dotenv(os.path.expanduser('~/.config/fabric/.env'))
|
||||
|
||||
@ -84,7 +84,7 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.url:
|
||||
main(args.url, args)
|
||||
main_function(args.url, args)
|
||||
else:
|
||||
parser.print_help()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user