Hey there, thanks to
@dr0nk for the detailed bug reports! I've identified and fixed two critical issues that were preventing proper playlist tracking, especially on Windows.
Before the update I want to tell to whoever reads this, Happy New Years 2025
May you have a better and more prosperous new year, and hopefully good health for you and your loved ones. This year is been a bit of a journey for me (I know right? this guy is making a personal diary here xD) aaand I got to chase my dream, better job and got myself a girlfriend. I don't know what next year has in store for me, but if I get
good luck I would like to share it with other people. Maybe this project could help someone, in its own small and insignificant way, to reach their dreams... or just achieve their satisfaction through my shit peace of code lol.
Well enough of this, love ya'll and see you next year : 3
Issues Fixed:
1. VLC Source Check Being Bypassed
- The script was checking the platform first on Windows and returning early, completely skipping the VLC source detection method
- This meant the most reliable cross-platform method wasn't being used
- Fixed: Now checks VLC source first on all platforms before falling back to platform-specific file monitoring
2. Playlist Only Shows First Song
- The
get_vlc_current_file() function was iterating through the playlist and breaking immediately upon finding the first valid audio file, ignoring which one is actually playing
- This caused the text source to display the same song even as playback progressed through the playlist
- Fixed: Now attempts to detect the current playing index from the VLC source settings and retrieves only the currently playing file
Technical Details:
The fixes include:
- Reordered detection logic to prioritize VLC source on all platforms
- Enhanced playlist index detection with multiple fallback property names
- Comprehensive debug logging to help diagnose any remaining issues
- Graceful fallback to file monitoring if VLC source position cannot be determined
Testing & Feedback:
If you're experiencing playlist tracking issues, please test this version and check your OBS script log for debug messages. The logging will help me identify if alternative property names are needed for the VLC plugin in different OBS versions.
Special thanks again to
@dr0nk for the thorough analysis and suggested fixes!