mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-29 21:32:32 -05:00
47ab66db0f
Closes #8355, #8944 Authored by: bashonly, Grub4k, Arthurszzz, seproDev, pukkandan Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: Arthurszzz <minecraftgamerarthur@gmail.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz> Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
17 lines
367 B
Python
17 lines
367 B
Python
#!/usr/bin/env python3
|
|
|
|
# Execute with
|
|
# $ python3 -m yt_dlp
|
|
|
|
import sys
|
|
|
|
if __package__ is None and not getattr(sys, 'frozen', False):
|
|
# direct call of __main__.py
|
|
import os.path
|
|
path = os.path.realpath(os.path.abspath(__file__))
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
|
|
|
|
import yt_dlp
|
|
|
|
if __name__ == '__main__':
|
|
yt_dlp.main()
|