diff --git a/JellyfinPlugin/Api/BlackBarService.cs b/JellyfinPlugin/Api/BlackBarService.cs index 4eefd8c..1d9defb 100644 --- a/JellyfinPlugin/Api/BlackBarService.cs +++ b/JellyfinPlugin/Api/BlackBarService.cs @@ -100,8 +100,8 @@ namespace JellyfinPlugin.Api const video = document.querySelector('video'); if (video && video !== currentVideoElement) { currentVideoElement = video; - const params = new URLSearchParams(window.location.hash.split('?')[1]); - const itemId = params.get('id') || params.get('itemId'); + const match = window.location.href.match(/[?&](id|itemId)=([^&#]+)/i); + const itemId = match ? match[2] : null; if (itemId) { fetch('/BlackBarRemover/CropById?itemId=' + itemId)