Exclude from "recent media" list

Feature requests for VLC.
BMX
New Cone
New Cone
Posts: 5
Joined: 12 Oct 2022 14:37

Exclude from "recent media" list

Postby BMX » 12 Oct 2022 14:46

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.

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: Exclude from "recent media" list

Postby chubinou » 12 Oct 2022 16:00

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

BMX
New Cone
New Cone
Posts: 5
Joined: 12 Oct 2022 14:37

Re: Exclude from "recent media" list

Postby BMX » 13 Oct 2022 10:46

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.

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: Exclude from "recent media" list

Postby chubinou » 13 Oct 2022 11:23

> 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"

BMX
New Cone
New Cone
Posts: 5
Joined: 12 Oct 2022 14:37

Re: Exclude from "recent media" list

Postby BMX » 13 Oct 2022 14:40

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

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: Exclude from "recent media" list

Postby chubinou » 13 Oct 2022 18:18

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"

BMX
New Cone
New Cone
Posts: 5
Joined: 12 Oct 2022 14:37

Re: Exclude from "recent media" list

Postby BMX » 14 Oct 2022 18:23

(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.

Lotesdelere
Cone Master
Cone Master
Posts: 9943
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Exclude from "recent media" list

Postby Lotesdelere » 15 Oct 2022 09:50

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.

BMX
New Cone
New Cone
Posts: 5
Joined: 12 Oct 2022 14:37

Re: Exclude from "recent media" list

Postby BMX » 18 Oct 2022 14:10

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.

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: Exclude from "recent media" list

Postby chubinou » 18 Oct 2022 14:42

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


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 2 guests