Programatically Change "Video Preview | Preview As Thumbnail" Config Setting

Features wanted...
Post Reply
robertoleonardo
Posts: 28
Joined: 17 Jun 2021 19:56

Programatically Change "Video Preview | Preview As Thumbnail" Config Setting

Post by robertoleonardo »

Hi -

1. am i correct that there is currently no way to toggle the "Video Preview|Preview As Thumbnail" config setting by script? I see the old posts about the undocumented tweak() script command -- but looks like this isn't among the limited commands for which tweak() works [and i'm not even sure tweak() still works at all -- the posts were 10-15 years old...]

2. assuming there is no way current way to do it -- i don't suppose there's any chance of that being implemented? I am loving the video quick preview feature when i need it. however, except for when i'm actively using autoplay, i prefer my icaros generated system thumbnails to the previews i can achieve with the various settings in xyplorer -- so i find myself frequently toggling 'preview as thumbnail' on and off. i would love to be able to toggle that setting with script so i can call it by keyboard shortcut. i know it might be a hyper specific use case, but if it's easy enough to implement -- i'd love to see this option in teh future. thanks!

admin
Site Admin
Posts: 65390
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Programatically Change "Video Preview | Preview As Thumbnail" Config Setting

Post by admin »

Makes sense. Next beta:

Code: Select all

conf("PreviewVideosAsThumbnail", 1);    //set
conf("PreviewVideosAsThumbnail", 0);    //unset

robertoleonardo
Posts: 28
Joined: 17 Jun 2021 19:56

Re: Programatically Change "Video Preview | Preview As Thumbnail" Config Setting

Post by robertoleonardo »

you are awesome, as always. thank you!

robertoleonardo
Posts: 28
Joined: 17 Jun 2021 19:56

Re: Programatically Change "Video Preview | Preview As Thumbnail" Config Setting

Post by robertoleonardo »

for anyone that might stumble upon this, looks like admin wisely added a third option as well as the two he specified above -- toggle. here are the three options that now work as of today's beta (26.70.0509):

Code: Select all

conf("PreviewVideosAsThumbnail", 1);    //set
conf("PreviewVideosAsThumbnail", 0);    //unset
conf("PreviewVideosAsThumbnail", "");    //toggle
thanks again!

Post Reply