diff --git a/downloader.py b/downloader.py index 810ecd2..c1e0b59 100644 --- a/downloader.py +++ b/downloader.py @@ -5,13 +5,6 @@ # TODO gather video metadata before download # -# dirpath = tempfile.mkdtemp() -# sys.path.append(dirpath) -# def import_from_pip(package): -# pip.main(['install', '--target=' + dirpath, '--upgrade', package]) -# return __import__(package) -# youtube_dl = import_from_pip('youtube_dl') - import tempfile import sys import subprocess diff --git a/radio.py b/radio.py index 6c1a049..d472ee1 100644 --- a/radio.py +++ b/radio.py @@ -3,7 +3,7 @@ import downloader def run(): downloader.download('https://www.youtube.com/watch?v=BaW_jenozKc') - # downloader.download('https://www.youtube.com/watch?v=kgBcg4uBd9Q') + downloader.download('https://www.youtube.com/watch?v=kgBcg4uBd9Q') if __name__ == "__main__": run() \ No newline at end of file