#!/bin/python
import os
from libinstall import FileInstaller, PackageInstaller
dir = os.path.dirname(__file__)

PackageInstaller.try_install('youtube-dl')

FileInstaller.create_symlink(os.path.join(dir, 'config'), '~/.config/youtube-dl/config')
#!/bin/python
import os
from libinstall import FileInstaller, PackageInstaller
dir = os.path.dirname(__file__)

PackageInstaller.try_install('youtube-dl', 'pip')

FileInstaller.create_symlink(os.path.join(dir, 'config'), '~/.config/youtube-dl/config')
fix youtube-dl install via pip