AstroSkipper Posted Wednesday at 06:39 PM Author Posted Wednesday at 06:39 PM On 6/19/2026 at 12:36 PM, panda_zzz said: @AstroSkipper I think I'll spend the weekend doing a thorough debugging session on Windows XP because I initially tested the extension on Windows 7. Unfortunately, I can't completely avoid using BAT files, but I'll try to optimize the process. And what’s the situation on the Windows XP front? 1
AstroSkipper Posted Friday at 10:09 PM Author Posted Friday at 10:09 PM (edited) Development progress insights: The youtube.lua script by AstroSkipper I have completely reworked my youtube.lua script. Now, the title of the video stream and an English subtitle is shown in VLC if available and selected by the user. Settings of both are done in the VLC settings which is then read by my script. The complete script has been optimised for best performance under Windows XP on my old, weak P4 machine. And no JavaScript challenges, of course. Here is a short GIF file: On a computer with multi-processor technology and modern RAM, this runs at lightning starting speed, of course, compared to my single-processor computer with SD-RAM from 2000 and a stream starting time of 30 seconds. You probably won’t even see the flashing CMD window anymore or at most one nano-flash. In the process of developing, I’ve managed to reduce the number of flashing CMD windows from four to one.. In any case, VLC and YouTube are working perfectly together again, even on Windows XP. Edited 19 hours ago by AstroSkipper 1
panda_zzz Posted 12 hours ago Posted 12 hours ago (edited) On 6/24/2026 at 9:39 PM, AstroSkipper said: And what’s the situation on the Windows XP front? I rewrote part of the functionality and replaced the automatic recommendations with manual ones that can be activated by clicking a button youtube_search.lua Edited 12 hours ago by panda_zzz
AstroSkipper Posted 9 hours ago Author Posted 9 hours ago (edited) 3 hours ago, panda_zzz said: I rewrote part of the functionality and replaced the automatic recommendations with manual ones that can be activated by clicking a button youtube_search.lua 60.54 kB · 1 download Thanks! But your youtube_search.lua doesn't work under Windows XP. Entering in the subtitle form "en", the script freezes. Leaving it empty, VLC freezes. And the subtitle toggle button is broken. Sorry to say but the script, as a VLC extension, is unusable as is, at least under Windows XP. BTW, my youtube.lua script is controlled by VLC. It reads and respects the VLC settings done by the user. Edited 9 hours ago by AstroSkipper
VistaLover Posted 7 hours ago Posted 7 hours ago My own test results under Vista SP2 32-bit, Core2 Duo of 2008 era; VLC-3.0.24b1 (32-bit) "portable"; entering "Adele" as the search term and clicking the "Search" button, a cmd prompt window flickers for a fraction of a sec, then 10 search results finally appear, while at the same time I get a small pop-up window (with a rolling progress bar) informing me that the extension is NOT responsive and asks me whether I want to terminate it now: If I click "Yes" (Ναι), the pop-up disappears and I'm left with just the 10 search results; if I then click the "Load Rec" button, the search GUI hangs (Not Responding) and when trying to close the Search Window, the OS informs me that VLC is not responding and (practically) all I can do is just close it... If I don't click the "Load Rec" button but click any of the 10 search result buttons, again I soon get a GUI hang, which leads to full app hang, too ... In a nutshell, some improvement over the previous iteration of the script, but still not the desired/expected behaviour ...
AstroSkipper Posted 1 hour ago Author Posted 1 hour ago (edited) @panda_zzz Whenever I provide something I’ve programmed myself, I’ve tested it thoroughly. So I don’t understand what you’re doing here. Apart from that, your script – which was already complex – has grown by another 50% and become even more complex. My general advice: less is often more. If you’re wondering what’s so bad about complexity, the answer is quite simple: it makes the code prone to errors. And that, in turn, makes it much harder to fix things quickly and easily. You’re using far too many variables, and the code is no longer easy to follow. That aside, your script ignores the subtitle settings in VLC. The trick is to communicate with VLC and query specific internal VLC variables. Another important thing. You should always test your own toggle buttons to ensure they work properly. And if you still think that a temporary batch file is the only solution, then I’m afraid I’ll have to disappoint you. You can definitely manage without one. Anyway! That’s just my assessment, of course. Edited 11 minutes ago by AstroSkipper
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now