1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

www/yt-dlp: Fix error: Unsupported platform: freebsd13

This commit is contained in:
Saul Newman 2022-05-14 20:47:05 -07:00 committed by Yuri Victorovich
parent 9b7025946f
commit 9e821db340
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= yt-dlp
DISTVERSION= 2022.04.08
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= yuri@FreeBSD.org

View File

@ -0,0 +1,11 @@
--- yt_dlp/cookies.py.orig 2022-05-14 11:34:22.365323000 -0400
+++ yt_dlp/cookies.py 2022-05-14 11:34:52.544340000 -0400
@@ -140,7 +140,7 @@
def _firefox_browser_dir():
- if sys.platform in ('linux', 'linux2'):
+ if sys.platform in ('linux', 'linux2','freebsd13','freebsd14'):
return os.path.expanduser('~/.mozilla/firefox')
elif sys.platform == 'win32':
return os.path.expandvars(r'%APPDATA%\Mozilla\Firefox\Profiles')