LunaticXJ 1 Posted June 14, 2025 Posted June 14, 2025 I also encountered this issue, I only configured the onMediaItemRemoved event. This log appears every minute. 2025-06-13 00:21:09.749 Error SessionManager: Error in event handler *** Error Report *** Version: 4.8.11.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 6.12.18-trim (root@MiuMiuPC) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #5 SMP PREEMPT_DYNAMIC Thu Mar 27 10 Framework: .NET 6.0.36 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 4 Data path: /config Application path: /system System.InvalidOperationException: System.InvalidOperationException: Nullable object must have a value. at System.Nullable`1.get_Value() at EmbyScripterX.EventManagers.ScripterXSessionManager._sessionManager_PlaybackProgress(Object sender, PlaybackProgressEventArgs e) at MediaBrowser.Common.Events.EventHelper.TriggerAll[T](EventHandler`1 mainHandler, Object sender, T args, ILogger logger) Source: System.Private.CoreLib TargetSite: Void ThrowInvalidOperationException_InvalidOperation_NoValue() 2025-06-13 00:21:10.750 Error SessionManager: Error in event handler *** Error Report *** Version: 4.8.11.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 6.12.18-trim (root@MiuMiuPC) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #5 SMP PREEMPT_DYNAMIC Thu Mar 27 10 Framework: .NET 6.0.36 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 4 Data path: /config Application path: /system System.InvalidOperationException: System.InvalidOperationException: Nullable object must have a value. at System.Nullable`1.get_Value() at EmbyScripterX.EventManagers.ScripterXSessionManager._sessionManager_PlaybackProgress(Object sender, PlaybackProgressEventArgs e) at MediaBrowser.Common.Events.EventHelper.TriggerAll[T](EventHandler`1 mainHandler, Object sender, T args, ILogger logger) Source: System.Private.CoreLib TargetSite: Void ThrowInvalidOperationException_InvalidOperation_NoValue()
Anthony Musgrove 220 Posted June 16, 2025 Author Posted June 16, 2025 Good evening guys! Thank you so much for reporting this issue, it's a simple one to rectify - I'll let you guys know when the next version is released! Kind regards
Anthony Musgrove 220 Posted June 16, 2025 Author Posted June 16, 2025 On 11/05/2025 at 01:41, Apotropaic said: Hi @Anthony Musgrove, any idea what is causing this to appear in the EmbyServer log? 2025-05-10 16:35:36.847 Info Emby ScripterX: Waiting maximum 600000ms to call MediaItemAddedComplete for Item ID 2450645 I only have one script running on a scheduled task that has nothing to do with media scans or library updates. I did notice all the plugin Actions were enabled so I've gone through and disabled them all except the 'onScheduledTask' action which I use, but I still see these appearing in the log. Just worried this is impacting the speed at which my libraries scan as I've noticed them take longer and longer recently and just trying to discount this. Hey mate, this one is no problems and it doesn't impact the speed of the scans! This is simply a notification that Emby Scripter-X will wait a maximum of 600000 milliseconds (600 seconds, or 10 minutes) to call the MediaItemAddedComplete event. This doesn't block the server at all, it simply is a timer that watches for the MediaItemAddedComplete event, if it doesn't complete within 10 minutes, it will call the event to ensure it actually occurs 1
Anthony Musgrove 220 Posted June 16, 2025 Author Posted June 16, 2025 Please update to v6.0.0.8 (latest on Emby Catalog) and let me know if any further issues occur Warmest regards! Anthony
quickmic 1703 Posted June 25, 2025 Posted June 25, 2025 Session issues while playback via hls, but has no impact to the playback itself. 2025-06-24 20:36:36.528 Info DynamicHlsService-0HNDHE1R9CE3E:00000016: http/1.1 Response 200 to 192.168.0.25. Time: 266ms. GET http://192.168.0.207:80/videos/7225020/hls1/main/368.ts?PlaySessionId=6f0bbbbd7a164d12bed4870858a3bc89. Headers: Content-Type=video/mp2t, Date=Tue, 24 Jun 2025 18:36:35 GMT, Server=UPnP/1.0 DLNADOC/1.50, Cache-Control=private, no-transform, ETag="272882c7ded1003a1889c25161ee3367", Content-Length=4559376, Cross-Origin-Resource-Policy=cross-origin, Private-Network-Access-Name=video, Private-Network-Access-Id=2a38697ffc1b428b943aa1b6014e2263 2025-06-24 20:36:37.268 Error SessionManager: Error in event handler *** Error Report *** Version: 4.9.1.1 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Linux version 6.8.12-11-pve (build@proxmox) (gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX OS/Process: x64/x64 Framework: .NET 8.0.11 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 38 Data path: /var/lib/emby Application path: /opt/emby-server/system System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object. at EmbyScripterX.Core.ScripterXContextFactory.Transcoding(PlayMethod playMethod, TranscodingInfo transcodingInfo) at EmbyScripterX.EventManagers.ScripterXSessionManager._sessionManager_PlaybackProgress(Object sender, PlaybackProgressEventArgs e) at MediaBrowser.Common.Events.EventHelper.TriggerAll[T](EventHandler`1 mainHandler, Object sender, T args, ILogger logger) Source: EmbyScripterX TargetSite: EmbyScripterX.Core.ScripterXEventContext Transcoding(MediaBrowser.Model.Session.PlayMethod, MediaBrowser.Model.Session.TranscodingInfo) 2025-06-24 20:36:38.268 Error SessionManager: Error in event handler *** Error Report *** Version: 4.9.1.1 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Linux version 6.8.12-11-pve (build@proxmox) (gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX OS/Process: x64/x64 Framework: .NET 8.0.11 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 38 Data path: /var/lib/emby Application path: /opt/emby-server/system System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object. at EmbyScripterX.Core.ScripterXContextFactory.Transcoding(PlayMethod playMethod, TranscodingInfo transcodingInfo) at EmbyScripterX.EventManagers.ScripterXSessionManager._sessionManager_PlaybackProgress(Object sender, PlaybackProgressEventArgs e) at MediaBrowser.Common.Events.EventHelper.TriggerAll[T](EventHandler`1 mainHandler, Object sender, T args, ILogger logger) Source: EmbyScripterX TargetSite: EmbyScripterX.Core.ScripterXEventContext Transcoding(MediaBrowser.Model.Session.PlayMethod, MediaBrowser.Model.Session.TranscodingInfo)
grzes2411 3 Posted July 3, 2025 Posted July 3, 2025 How to trigger script only for Series, Season, and Episode item types in ScripterX? Hello everyone, I'm trying to configure ScripterX to trigger my external Python script (emby_auto_resumer_main.py) only for specific item types: Series, Season, and Episode. My current ScripterX configuration is set up to run an external script. The command I use is: python "D:\EMBY\Programy\Emby Auto Resumer\emby_auto_resumer_main.py" "%item.type%" "%series.name%" My script checks the %item.type% argument to determine if it's an Episode, Season, or Series. If it's not one of these types, the script exits early. However, I want to prevent ScripterX from even calling the script for other item types (like Movie or Other) in the first place. I've attempted to use filters within ScripterX's. For example, I tried to specify that the Item Type should include only Series, Season, or Episode. But whenever I apply any filters, ScripterX stops sending any events to my script. The script is not called at all, even for the item types that should normally pass the filter. Could someone please show me how to correctly set up these filters in the ScripterX UI? Screenshots of the pane would be extremely helpful if possible. I need the script to be triggered ONLY when the item.type argument is Series, Season, or Episode. Thank you for your help.
arooni 2 Posted July 9, 2025 Posted July 9, 2025 (edited) Have comskip installed, have scripter-x installed. The post processing script seems to be running fine, but if emby won't send the trigger correctly, I cannot get live tv commercial skipping going: here's my config below yet my log [I] ✘ MacMiniArooni.local /V/F/E/Fine Point With Chanel Rion tail -f ~/.config/emby-server/logs/sx_probe.txt 2025-07-09 12:58:27 >>> Scripter-X FIRED with [/Volumes/FilesArooni/EmbyTV/Sportsday (2014)/Sportsday 2025_07_09_12_30_00 - 3.ts] 2025-07-09 13:02:39 >>> Scripter-X FIRED with [/Volumes/FilesArooni/EmbyTV/Sportsday (2014)/Sportsday 2025_07_09_12_30_00 - 3.ts] shows it fires SOMETIMES, but not say on the CNN or Fox news channel I manually started recording after firwst watching with live TV. Only way I've gotten it working is to uninstall and reinstall. Can I do anything to make this more consistent? added a bug report to the plugin author with more detail: https://github.com/AnthonyMusgrove/Emby-ScripterX/issues/79 Edited July 9, 2025 by arooni
sapycola 4 Posted July 10, 2025 Posted July 10, 2025 hi its possible play a "custom video" before the movie? ex: the user select media, play custom video and after see the movie. similary "Cinema intros"
Greg Prz 1 Posted August 31, 2025 Posted August 31, 2025 Hello, I was wondering if there is a way in ScripterX to automate cleanup of device data. Something like: Run once a (week/month/year) , auto delete any device data for firefox windows (or other criteria) that is older than x months/weeks/years/etc. Thanks, Greg
DarKni8 41 Posted September 13, 2025 Posted September 13, 2025 Hi , i am running Hosting by design shared app box and trying to trigger an event web postjson ,, even though i have correctly put the file to some path , can anyone confirm whats the relative path , I am getting below error , how does this plugin search for paths do i need to grant some permission to template json ? I am not able to find any documentation also as all the links are dead end Error Emby ScripterX: onPlaybackStart: Error processing web POST JSON: Template file does not exist: /home/.emby/config/<<>>><<>>
horstepipe 422 Posted September 13, 2025 Posted September 13, 2025 (edited) Hello has anybody some tip how to exclude the new "Webstream" plugin m3u sources from ScripterX triggers? At the moment this kills my server as too many scripts start when I import some m3u in the webstream addon. https://emby.media/community/index.php?/topic/142334-new-webstreams-plugin/page/3/#comment-1469380 item.isvirtual = false does not do the trick here unfortunately Edited September 13, 2025 by horstepipe
Anthony Musgrove 220 Posted September 13, 2025 Author Posted September 13, 2025 51 minutes ago, horstepipe said: Hello has anybody some tip how to exclude the new "Webstream" plugin m3u sources from ScripterX triggers? At the moment this kills my server as too many scripts start when I import some m3u in the webstream addon. https://emby.media/community/index.php?/topic/142334-new-webstreams-plugin/page/3/#comment-1469380 item.isvirtual = false does not do the trick here unfortunately Hi mate, Will look into this today for you. 1
horstepipe 422 Posted September 13, 2025 Posted September 13, 2025 1 hour ago, Anthony Musgrove said: Hi mate, Will look into this today for you. Thank you very much!
horstepipe 422 Posted October 1, 2025 Posted October 1, 2025 On 9/14/2025 at 12:02 AM, Anthony Musgrove said: Hi mate, Will look into this today for you. Hey, any news?
kingkoopa13 0 Posted November 2, 2025 Posted November 2, 2025 Hello. I'm looking to get started with Scripter-x but have fallen at the first hurdle. I tried to find it in the Plugin catalog but it's not there! Happy to install manually, but saw that this was the recommended way.
scott46953 30 Posted November 2, 2025 Posted November 2, 2025 What exactly are you trying to do? If it's missing it's for a reason, any good reason to use scripture x But I believe you have to side load it now. Insert the I believe it's ini file to it's respect to directory. It's been awhile though so I could be wrong.. Maybe somebody with more knowledge will get back to you a bit later... Bump bump
kingkoopa13 0 Posted November 2, 2025 Posted November 2, 2025 My reason for wanting to use scripting is to run a script on Windows to start spinning up HDDs when a user opens emby (on TV/phone etc.) My media is on a different drive to my emby installation+cache folders, so they power down after a while, so there is sometimes a long delay when going to play media while discs spin up. There may be another way of doing this but I have a script working, but no way yet to connect this to activity in emby.
scott46953 30 Posted November 2, 2025 Posted November 2, 2025 (edited) That's something Windows automatically does when something's called for on the hhd. The question is why is it not doing it now? I have 8 hhd and 4 ssds and I've never had any problems accessing anything... Edited November 2, 2025 by scott46953
kingkoopa13 0 Posted November 2, 2025 Posted November 2, 2025 Actually I think windows is behaving as expected - media is not on the same drive as emby or it's cache, so the main folder is active (it's actually an SSD) but the media folders don't become active until the user hits "play". I have a script which wakes up the media drives by writing a temporary file to them - but not a way to run it when an emby user opens the app.
scott46953 30 Posted November 2, 2025 Posted November 2, 2025 So let me get this right, you want the hhds to sleep, when nobody's using emby, when somebody logs in you want everything to wake up even though the person's probably not going to use it... I think you're only saving about one or two seconds, I don't think it's worth your time.. 10% of the time or less people access hhds.. the DVR SSD runs 24/7 temp SSD runs 24/7. When somebody accesses a movie that has been sitting there for months.. takes 2 seconds before the movie loads. I think you're working on something that is going to take more of your time than what it's worth...
scott46953 30 Posted November 2, 2025 Posted November 2, 2025 If it takes more time than one or two seconds for the hard drive to spin up and start playing on your emby player, maybe you should look into something else to speed it up. Maybe faster internet, I use a 1G line fiber. 50 plus connections on a G-Force 3050 or maybe it's a 3060 can't remember anymore.. the only time I've seen it take long time, is in the beginning when I had it 10 MB upload.. or I had crappy Wi-Fi signal on my fire stick. Since then, I've moved up to Nvidia stream, I called the Cadillac box.. I'm very impressed with the upscaling that most other boxes don't have. Good luck on your journey, maybe somebody will read some of these messages and get you going but I wouldn't guarantee that for something so small. Sorry I couldn't be of more help
kingkoopa13 0 Posted November 2, 2025 Posted November 2, 2025 I’m using a fairly fast PC connected via Ethernet to router, on an LG (WebOS) TV also connected by Ethernet: I’m aware that the LG Ethernet port is slow so may compare with a USB-Ethernet adaptor. However, I’m pretty sure it’s just the spin up time. Yes, its a only few seconds, but I’m in the process of convincing my household to switch from streaming to physical media+emby and every little helps with improving the user experience!
scott46953 30 Posted November 2, 2025 Posted November 2, 2025 The speed of the PC does not matter too much, once transcoding takes place.. You need to make sure you definitely have a good graphics card and I would recommend G-Force all the way If you don't have a good graphics card and you depend on everything to be done with your cpu, God be with you. But it sounds like you're only doing yourself or one person at a time so I don't think that you're going to have much trouble with that. Might work, I remember in the very beginning I used a Moto g 4 Android phone as my emby server, any more than one person and sometimes depending on what the person is wanting to watch even though it was eight core octa core, didn't matter sometimes it would buffer just with one person... Transcoding is definitely rough on CPU..
kingkoopa13 0 Posted November 2, 2025 Posted November 2, 2025 Thanks for the tips! Defo looking at my options for the day I decide to upgrade the setup
scott46953 30 Posted November 2, 2025 Posted November 2, 2025 Not trying to clog it up anymore with this topic but I run all mine with a laptop with the g-force 3050, I don't have any problems. Once in awhile that IPTV stream might stop but I haven't found one provider that doesn't have an issue once in awhile. Good luck, I hope I answered and helped you on your way. Have a good rest of your day. If you're in the usa, Walmart has a good selection of G-Force good deal price
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