- Update to 0.5.4

Changes:	https://github.com/mps-youtube/pafy/releases/tag/v0.5.4
This commit is contained in:
Nicola Vitale 2018-08-15 19:23:27 +00:00
parent 7ae54937ad
commit 24511e09db
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477254
4 changed files with 13 additions and 12 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pafy
PORTVERSION= 0.5.0
PORTVERSION= 0.5.4
PORTREVISION= 0
CATEGORIES= www
MASTER_SITES= CHEESESHOP

View File

@ -1,2 +1,3 @@
SHA256 (pafy-0.5.0.tar.gz) = fc451048518e5095346c8a359ca367697e9867b915bd05ea73960c6c594bc9e0
SIZE (pafy-0.5.0.tar.gz) = 26392
TIMESTAMP = 1534350928
SHA256 (pafy-0.5.4.tar.gz) = e842dc589a339a870b5869cc3802f2e95824edf347f65128223cd5ebdff21024
SIZE (pafy-0.5.4.tar.gz) = 27393

View File

@ -1,4 +1,4 @@
--- pafy/backend_youtube_dl.py.orig 2016-03-05 21:47:16 UTC
--- pafy/backend_youtube_dl.py.orig 2018-02-11 21:15:57 UTC
+++ pafy/backend_youtube_dl.py
@@ -8,6 +8,9 @@ if sys.version_info[:2] >= (3, 0):
else:

View File

@ -1,12 +1,12 @@
--- pafy/pafy.py.orig 2016-02-28 21:11:10 UTC
--- pafy/pafy.py.orig 2018-02-11 21:15:57 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:
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: