blob: 3a4d2950cb75c7c705dcaf9866c435ecd31e9a78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- pafy/pafy.py.orig 2016-02-28 21:11:10 UTC
+++ pafy/pafy.py
@@ -45,6 +45,9 @@ Pafy = None
backend = "internal"
if os.environ.get("PAFY_BACKEND") != "internal":
try:
+ if sys.platform.startswith('freebsd'):
+ # FreeBSD installs youtube_dl as a zip archive
+ sys.path.insert(1, '%%LOCALBASE%%/bin/youtube-dl')
import youtube_dl
backend = "youtube-dl"
except ImportError:
|