]> jfr.im git - yt-dlp.git/blame - youtube_dl/__main__.py
[eagleplatform] Use http scheme for thumbnail
[yt-dlp.git] / youtube_dl / __main__.py
CommitLineData
d77c3dfd 1#!/usr/bin/env python
dcddc10a 2from __future__ import unicode_literals
f1cb5bca 3
743b28ce
PH
4# Execute with
5# $ python youtube_dl/__main__.py (2.6+)
6# $ python -m youtube_dl (2.7+)
7
8import sys
9
fec89790 10if __package__ is None and not hasattr(sys, "frozen"):
5a304a76 11 # direct call of __main__.py
743b28ce 12 import os.path
87439741
AM
13 path = os.path.realpath(os.path.abspath(__file__))
14 sys.path.append(os.path.dirname(os.path.dirname(path)))
d77c3dfd 15
9e8056d5 16import youtube_dl
d77c3dfd
FV
17
18if __name__ == '__main__':
9e8056d5 19 youtube_dl.main()