Skip to content

Commit

Permalink
Merge pull request #4755 from kmk3/mpv-add-yt-dlp
Browse files Browse the repository at this point in the history
yt-dlp: add missing paths & mpv.profile: whitelist paths for yt-dlp
  • Loading branch information
netblue30 committed Dec 28, 2021
2 parents e984359 + d1894e6 commit 106440f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions etc/inc/disable-programs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ blacklist ${HOME}/.config/youtube-music-desktop-app
blacklist ${HOME}/.config/youtube-viewer
blacklist ${HOME}/.config/youtubemusic-nativefier-040164
blacklist ${HOME}/.config/yt-dlp
blacklist ${HOME}/.config/yt-dlp.conf
blacklist ${HOME}/.config/zathura
blacklist ${HOME}/.config/zim
blacklist ${HOME}/.config/zoomus.conf
Expand Down Expand Up @@ -1129,6 +1130,7 @@ blacklist ${HOME}/mps
blacklist ${HOME}/openstego.ini
blacklist ${HOME}/wallet.dat
blacklist ${HOME}/yt-dlp.conf
blacklist ${HOME}/yt-dlp.conf.txt
blacklist ${RUNUSER}/*firefox*
blacklist /tmp/.wine-*
blacklist /tmp/akonadi-*
Expand Down
13 changes: 10 additions & 3 deletions etc/profile-m-z/mpv.profile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ include globals.local

noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.config/youtube-dl
noblacklist ${HOME}/.config/yt-dlp
noblacklist ${HOME}/.config/yt-dlp.conf
noblacklist ${HOME}/.netrc
noblacklist ${HOME}/yt-dlp.conf
noblacklist ${HOME}/yt-dlp.conf.txt

# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc
Expand All @@ -46,16 +50,19 @@ include disable-shell.inc

read-only ${DESKTOP}
mkdir ${HOME}/.config/mpv
mkdir ${HOME}/.config/youtube-dl
mkfile ${HOME}/.netrc
whitelist ${HOME}/.config/mpv
whitelist ${HOME}/.config/youtube-dl
whitelist ${HOME}/.config/yt-dlp
whitelist ${HOME}/.config/yt-dlp.conf
whitelist ${HOME}/.netrc
include whitelist-common.inc
include whitelist-player-common.inc
whitelist ${HOME}/yt-dlp.conf
whitelist ${HOME}/yt-dlp.conf.txt
whitelist /usr/share/lua
whitelist /usr/share/lua*
whitelist /usr/share/vulkan
include whitelist-common.inc
include whitelist-player-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

Expand Down
2 changes: 2 additions & 0 deletions etc/profile-m-z/yt-dlp.profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ include yt-dlp.local

noblacklist ${HOME}/.cache/yt-dlp
noblacklist ${HOME}/.config/yt-dlp
noblacklist ${HOME}/.config/yt-dlp.conf
noblacklist ${HOME}/yt-dlp.conf
noblacklist ${HOME}/yt-dlp.conf.txt

private-bin ffprobe,yt-dlp
private-etc alternatives,ld.so.cache,ld.so.preload,yt-dlp.conf
Expand Down

0 comments on commit 106440f

Please sign in to comment.