2021-06-03 04:43:42 -05:00
|
|
|
#!/usr/bin/env python3
|
2022-06-24 06:06:16 -05:00
|
|
|
|
2012-11-29 08:11:24 -06:00
|
|
|
# Execute with
|
2024-03-10 14:18:47 -05:00
|
|
|
# $ python3 -m yt_dlp
|
2012-11-29 08:11:24 -06:00
|
|
|
|
|
|
|
import sys
|
2025-02-14 20:30:54 -06:00
|
|
|
from pathlib import Path
|
|
|
|
|
2022-11-10 21:13:08 -06:00
|
|
|
if __package__ is None and not getattr(sys, 'frozen', False):
|
2012-12-07 17:48:07 -06:00
|
|
|
# direct call of __main__.py
|
2025-02-14 20:30:54 -06:00
|
|
|
path = Path(__file__).resolve()
|
|
|
|
sys.path.insert(0, str(path.parent.parent))
|
2012-03-24 20:07:37 -05:00
|
|
|
|
2025-02-15 05:25:12 -06:00
|
|
|
import yt_dlp
|
|
|
|
|
2012-03-24 20:07:37 -05:00
|
|
|
if __name__ == '__main__':
|
2025-02-14 20:30:54 -06:00
|
|
|
|
2021-02-24 12:45:56 -06:00
|
|
|
yt_dlp.main()
|