Jump to content

Recommended Posts

Posted
6 hours ago, kingkoopa13 said:

I tried to find it in the Plugin catalog but it's not there!

It is for me....

image.thumb.png.3799292100fc43c01e802c74b23accb2.png

For both the latest stable and beta...

scott46953
Posted

Quick question while you're on,, is scripture x compatible with all versions of emby so everybody can see it? Or is it only a plug-in for certain systems example windows emby. 

I know for a fact that some plugins are not available on the emby Android..

Posted
31 minutes ago, scott46953 said:

Quick question while you're on,, is scripture x compatible with all versions of emby so everybody can see it? Or is it only a plug-in for certain systems example windows emby. 

I know for a fact that some plugins are not available on the emby Android..

This is a server plugin, the client is irrelevant. Different server versions require different versions of this and other plugins you can select the install from the catalogue. 

NOTE! You may need to install this from a Web browser, NOT on a phone/tablet client...

  • Like 1
Anthony Musgrove
Posted

Hey guys,

I am so sorry for the delay on this. Will be working on it again very soon.  We are planning a new release shortly to address any pending issues with latest codebases.

If you've got any requests etc, please submit them as soon as possible here in the forums!

 

Kind regards,

Anthony

  • Like 1
  • Thanks 1
scott46953
Posted

I would like to start using scripture x again something easy for a daily reboot, my server does run good, and there's times where it may go a month or more without needing reboot but.. I still want mine rebooted once a day.. it clears out stuck IPTV channels and cleans up unnecessary ends I got a lot of traffic. 

Thank you 🙂

Posted
22 hours ago, scott46953 said:

something easy for a daily reboot

no need for ScripterX

Windows = scheduler 

Linux = cron

  • Like 1
Posted

I need to run script when media item is added to playlist.

scott46953
Posted

No, I don't want to force emby closed. I got way too many hard drives and SSDs, plus I don't want to take any chance on corrupting data files. I need emby to be shut down properly, I also have it selected to clean house every time "database"I'm not trying to cut streams and recordings abnormally either. Do I really want to log in remote desktop and do it manually every single time no. I wanted to sit at a remote location and take care of itself.. I don't care if it's done after heavy usage or after a certain period of time. It's still something that needs to be taken care of properly.  When windows needs rebooted I could take care of that. Are you telling me that the windows scheduler can select the shutdown and reboot in that emby code? I don't think it does... I can probably set up something that automatically move the mouse and a recording that I have selected what's that a mouse Cron? I did it years ago to play a  game when I wasn't sitting at the computer. I'd rather just use scriptrx :) no headache, I got to get back to my other daily tasks sorry about the long message, appreciate your time and hard effort

Anthony Musgrove
Posted
23 minutes ago, scott46953 said:

No, I don't want to force emby closed. I got way too many hard drives and SSDs, plus I don't want to take any chance on corrupting data files. I need emby to be shut down properly, I also have it selected to clean house every time "database"I'm not trying to cut streams and recordings abnormally either. Do I really want to log in remote desktop and do it manually every single time no. I wanted to sit at a remote location and take care of itself.. I don't care if it's done after heavy usage or after a certain period of time. It's still something that needs to be taken care of properly.  When windows needs rebooted I could take care of that. Are you telling me that the windows scheduler can select the shutdown and reboot in that emby code? I don't think it does... I can probably set up something that automatically move the mouse and a recording that I have selected what's that a mouse Cron? I did it years ago to play a  game when I wasn't sitting at the computer. I'd rather just use scriptrx :) no headache, I got to get back to my other daily tasks sorry about the long message, appreciate your time and hard effort

Hey mate, yep you could use a php script or python script or bash script to load the emby api endpoint to shut down the emby instance, then upon success, reboot the machine.  In my dev environment I have an api key setup so when I recompile the dev build, it calls the url to restart the emby server using the api and api key.  

Anthony Musgrove
Posted
Just now, Anthony Musgrove said:

Hey mate, yep you could use a php script or python script or bash script to load the emby api endpoint to shut down the emby instance, then upon success, reboot the machine.  In my dev environment I have an api key setup so when I recompile the dev build, it calls the url to restart the emby server using the api and api key.  

The URL being:

 

curl -X POST "http://[YOUR_EMBY_SERVER_IP]:8096/emby/System/Shutdown?api_key=YOURAPIKEY" -d ""

 

Posted

Hello Anthony,

First of all thank you very much for your work with Scripter-X!
It still helps me controlling my sound system with different settings for different media.

Unfortunately found some strange behavoiur and i dont know if it comes from Emby Server, Emby for Android TV Client or Scripter-X.

When starting to play whatever media (TV-Show, Movie, Music) the predefined script is executed and the desired value is send to MQTT.
But whenever I stop playing the "Stop"-Script gets executed and directly after that the "Start"-Script again so the sound system never gets an reset back to default settings.

Taking a look into the log at least one minute after the regular stop there is another "Stop"-Script execution but i think it should not take that long.

Logfile:
https://pastebin.com/wDnCqJTY

Settings:

image.thumb.png.e26daaec7a318929159d7071ec45429e.png

scott46953
Posted
7 hours ago, Anthony Musgrove said:

The URL being:

 

curl -X POST "http://[YOUR_EMBY_SERVER_IP]:8096/emby/System/Shutdown?api_key=YOURAPIKEY" -d ""

 

Thank you Anthony, that is a very good idea, Anyways, I should have thought of that, however I was busy programming some other code. Also, this is actually scripter x area so I was kind of hoping they would get that taken care of. Maybe they can just grab my my server address which should be local:8096 and since scripture x is on the same computer as a server it should know my API key.. I don't see any reason why this can't be done using scriptrx.

Posted

@Anthony Musgrove I am looking for some kind of alert that will tell me when my LiveTV Refresh Guide takes less than 1 minute to complete, which tells me there is an issue.

scott46953
Posted
22 minutes ago, griam01 said:

@Anthony Musgrove I am looking for some kind of alert that will tell me when my LiveTV Refresh Guide takes less than 1 minute to complete, which tells me there is an issue.

Not a bad idea..

I would like a way to find out if my IPTV streams are stuck open longer than normal. 

Example, somebody plays Fox News, their power goes off, there's no ending command. 

The power comes back on they decide to watch Discovery channel.. Fox News is still stuck open but it's not throwing up your dada anywhere.. stuck open never to close.. until I get the stream stop from the provider who knows when. 

Or maybe there's something that can stop all IPTV streams like a reset... But having something showing from the IPTV driver side maybe stating stream open number #1 channel name, buffer time out count, reconnect attempts count, Error count, where the stream is going, how many places example user12345 or recording. And current time how long the streams been open.

Oh God what a dream

Posted
On 11/5/2025 at 4:47 AM, abegreen said:

I need to run script when media item is added to playlist.

Hey Anthony, Is it possible to create this event? It would solve me a big problem. Thank you.

  • 1 month later...
Posted

Hi,

I’m experiencing constant buffering and stuttering during playback on my Emby Server. After checking the logs, I noticed that the EmbyScripterX plugin is throwing a System.NullReferenceException every second during transcoding.

It seems like the error occurs in ScripterXContextFactory.Transcoding. This constant error reporting is likely overwhelming the server and causing the playback issues.

Server version: 4.9.1.90 OS: Windows 11

I have attached the relevant log fragment below. Is there a fix for this, or is the plugin incompatible with this Emby version?

embyserver.txt

  • 3 weeks later...
horstepipe
Posted (edited)

Hello @Anthony Musgrove

I am seeing similar:

 

Quote

2026-01-11 17:27:03.774 Error SessionManager: Error in event handler
        *** Error Report ***
        Version: 4.9.3.0
        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.1.0-42-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP
        OS/Process: x64/x64
        Framework: .NET 8.0.22
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 12
        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)

This is spamming my log. 
I only have "onMediaItemAdded" actions. I can PM you a complete log if needed. 
Feels like this slows down the whole server. Not sure when this started, but definitely on the last stable. I am on current stable now, v4.9.3.0

BR
 

Edited by horstepipe

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...