yt-dpl: fix missing dependencies and patching cookies usage.

This commit is contained in:
Ark74 2026-02-07 15:28:37 -06:00 committed by Luis Guzmán
parent a2799b7649
commit d995093c15
4 changed files with 69 additions and 10 deletions

View file

@ -86,12 +86,15 @@ index 5675445a..7afd324b 100644
if sys.platform in ('cygwin', 'win32'):
yield from map(os.path.expandvars, (
R'%APPDATA%\Mozilla\Firefox\Profiles',
@@ -205,7 +205,7 @@ def _firefox_browser_dirs():
else:
@@ -214,9 +214,9 @@ def _firefox_browser_dirs(browser_name='firefox'):
yield from map(os.path.expanduser, (
# New installations of FF147+ respect the XDG base directory specification
# Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=259356
- os.path.join(_config_home(), 'mozilla/firefox'),
+ os.path.join(_config_home(), 'mozilla/{browser_name}'),
# Existing FF version<=146 installations
- '~/.mozilla/firefox',
+ f'~/.mozilla/{browser_name}',
'~/snap/firefox/common/.mozilla/firefox',
+ '~/.mozilla/{browser_name}',
# Flatpak XDG: https://docs.flatpak.org/en/latest/conventions.html#xdg-base-directories
'~/.var/app/org.mozilla.firefox/config/mozilla/firefox',
'~/.var/app/org.mozilla.firefox/.mozilla/firefox',
))

30
helpers/make-hatchling Normal file
View file

@ -0,0 +1,30 @@
#!/bin/sh
#
# Copyright (C) 2026 Luis Guzman <ark@switnet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
VERSION=1
EXTERNAL='deb-src http://deb.debian.org/debian trixie main'
REPOKEY=6ED0E7B82643E131
BACKPORTS=true
BUILD_UNTIL=12.0
. ./config
changelog "Backport dependency for newer yt-dlp"
package

View file

@ -0,0 +1,29 @@
#!/bin/sh
#
# Copyright (C) 2026 Luis Guzman <ark@switnet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
VERSION=1
EXTERNAL='deb-src http://deb.debian.org/debian trixie main'
REPOKEY=6ED0E7B82643E131
BACKPORTS=true
BUILD_UNTIL=12.0
. ./config
changelog "Backport dependency for newer yt-dlp"
package

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2025 Luis Guzman <ark@switnet.org>
# Copyright (C) 2026 Luis Guzman <ark@switnet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -34,9 +34,6 @@ sed -i "/Currently supported/s|are:|are at:|" debian/control
apply_patch_changes
echo "> Freeze build until there is new info for javascript dependency."
exit 1
changelog "Remove explicit site listing, redirecting to website author."
package