History

auto_profiles.lua: make profiles apply with higher priority

This increases the priority from 50 (which is neutral) to ensure that profiles are applied before other scripts. In general, applying profiles before other scripts makes sense. This was already the case for external scripts with default priority because they would load after auto_profiles. This commit primarily fixes ytdl_hook.lua to respond to profile changes. In most cases, profile conditions are triggered by external conditions, not the output from the ytdl hook, so this is fine. I acknowledge that this will change the order if a script previously had a priority lower than 50. However, injecting itself before profiles are evaluated is a very obscure use case, if there is even a valid one.

Kacper Michajłow committed 1 year ago

Commit d2e3fd91 parent dddfdf22 files · +2 −1Browse files

Showing the changes to DOCS/interface-changes (1 of 2 files). Show all

Unified · Split

DOCS/interface-changes/auto-profiles-prio.txt+1−0
@@ -0,0 +1 @@
1Change auto profiles hook priority from 50 to 5

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t