2021-06-03 12:43:42 +03:00
|
|
|
#!/usr/bin/env python3
|
2022-06-24 14:06:16 +03:00
|
|
|
|
2012-11-29 16:11:24 +02:00
|
|
|
# Execute with
|
2021-12-30 14:23:36 +02:00
|
|
|
# $ python -m yt_dlp
|
2012-11-29 16:11:24 +02:00
|
|
|
|
|
|
|
import sys
|
|
|
|
|
2022-11-11 05:13:08 +02:00
|
|
|
if __package__ is None and not getattr(sys, 'frozen', False):
|
2012-12-08 01:48:07 +02:00
|
|
|
# direct call of __main__.py
|
2012-11-29 16:11:24 +02:00
|
|
|
import os.path
|
2013-04-11 07:33:18 +03:00
|
|
|
path = os.path.realpath(os.path.abspath(__file__))
|
2015-09-15 16:30:24 +03:00
|
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
|
2012-03-25 04:07:37 +03:00
|
|
|
|
2021-02-24 20:45:56 +02:00
|
|
|
import yt_dlp
|
2012-03-25 04:07:37 +03:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2021-02-24 20:45:56 +02:00
|
|
|
yt_dlp.main()
|