mirror of https://github.com/blackjack4494/yt-dlc
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
451 B
Python
20 lines
451 B
Python
13 years ago
|
#!/usr/bin/env python
|
||
10 years ago
|
from __future__ import unicode_literals
|
||
12 years ago
|
|
||
12 years ago
|
# Execute with
|
||
4 years ago
|
# $ python yt_dlp/__main__.py (2.6+)
|
||
|
# $ python -m yt_dlp (2.7+)
|
||
12 years ago
|
|
||
|
import sys
|
||
|
|
||
9 years ago
|
if __package__ is None and not hasattr(sys, 'frozen'):
|
||
12 years ago
|
# direct call of __main__.py
|
||
12 years ago
|
import os.path
|
||
12 years ago
|
path = os.path.realpath(os.path.abspath(__file__))
|
||
9 years ago
|
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
|
||
13 years ago
|
|
||
4 years ago
|
import yt_dlp
|
||
13 years ago
|
|
||
|
if __name__ == '__main__':
|
||
4 years ago
|
yt_dlp.main()
|