Page 1 of 1
Exclude from "recent media" list
Posted: 12 Oct 2022 14:46
by BMX
Hi. I think a feature can be useful - definition of root directory whose files (incl. subfolders) are not included to Open Recent Media list (or Windows VLC - Recent menu). Something like "auto clear history" for certain folder. Why is this necessary? Imagine you download and play unsuitable videos like p*rn clips and don't want somebody to see VLC history. I think many users will find this useful.
Re: Exclude from "recent media" list
Posted: 12 Oct 2022 16:00
by chubinou
you can already do set a filter for items that will be stored in the recent section, you can set it in tools > preferences > "show settings: all" > interface > main interface > qt and set the field "List of words separated by |". this should work for folder as well
If I remember correctly, we don't control the "Windows VLC - Recent menu", this is handled by window itself
Re: Exclude from "recent media" list
Posted: 13 Oct 2022 10:46
by BMX
Unfortunately the filter cannot help because .AVI, .MPG, .MOV types are common for all video files and keywords in file name are not trustworthy solution. File location (base directory) is the best way to ignore "bad" content. About Windows Start - Recent menu, I agree it is Windows feature but it can be modified by application programs like VLC. If specific API does not exist, I guess it can be done directly in Registry.
Re: Exclude from "recent media" list
Posted: 13 Oct 2022 11:23
by chubinou
> Unfortunately the filter cannot help [....] File location (base directory) is the best way to ignore "bad" content
put your videos in a folder named "pron" or whatever, and set your filter to "pron"
Re: Exclude from "recent media" list
Posted: 13 Oct 2022 14:40
by BMX
Can I use slashes in List of words like
\pron\ ?
PS: For Windows Start menu Recent files - it seems they are links in folder:
Code: Select all
C:\Users\<current-user>\AppData\Roaming\Microsoft\Windows\Recent
Re: Exclude from "recent media" list
Posted: 13 Oct 2022 18:18
by chubinou
that's a regexp so "\" should be written as "\\", beware that vlc might transform your filepath in an url "C:\pron\pony.mkv" may become "file:///C:/pron/pony.mkv"
Re: Exclude from "recent media" list
Posted: 14 Oct 2022 18:23
by BMX
(I hope) you see that best solution is a new setting with root directory under which all videos are censored. Removing symlinks from "C:\Users\<current-user>\AppData\Roaming\Microsoft\Windows\Recent" will be good addition.
Re: Exclude from "recent media" list
Posted: 15 Oct 2022 09:50
by Lotesdelere
Removing symlinks from "C:\Users\<current-user>\AppData\Roaming\Microsoft\Windows\Recent" will be good addition.
From my own experience, you should never directly fiddle with the content of this folder.
Re: Exclude from "recent media" list
Posted: 18 Oct 2022 14:10
by BMX
From my own experience, you should never directly fiddle with the content of this folder.
No problem to do it indirectly with API - the final result is important. But even direct deletion of file/link is not such a big problem. If necessary, VLC may display warning "do it at your own risk" if you think this will crash the OS, PC, provoke fire or war. Even file/link names can be sent to configurable external application which will take the risk. BTW, I suspect there is some special exit code or other way to tell Windows not to add a file to Recent list.
Re: Exclude from "recent media" list
Posted: 18 Oct 2022 14:42
by chubinou
from what I can see in the code [1], this should already works, files are only added to vlc internal recent list *and* to windows recent list if they don't match the filter regexp. I think the issue should be on your end (maybe an error on how you defined your filter)
[1]
https://code.videolan.org/videolan/vlc/ ... ts.cpp#L84