Jump to content

Disable Updates EMBY Plugins


Santrex

Recommended Posts

Santrex

Good afternoon, colleagues.

I have a problem. It happened today after a server restart. I have updated one of the plugins, which is currently not compatible with my version of EMBY.

Unfortunately, now there is no way to update all EMBY servers that are involved in Production (there are a lot of scripts working with the API - they need to be tested for new builds).

Automatic updating leads to the "inoperability" of one of the pieces responsible for the statistics of views.

I need to disable automatic plugin updates.
I'm thinking about the ability to block access to the update site? Then it won't let him do it.
Can you tell me what addresses it takes to view the "Catalogue" of plugins?

I have Emby Premiere.

  • Like 1
Link to comment
Share on other sites

Happy2Play

Not recommended but you can disable the hidden scheduled task in the api.

  {
    "Name": "Check for plugin updates",
    "State": "Idle",
    "Id": "c27fda37dfb6e39be141191aaa1c3060",
    "LastExecutionResult": {
      "StartTimeUtc": "2022-07-03T08:51:33.2256919Z",
      "EndTimeUtc": "2022-07-03T08:51:34.0958206Z",
      "Status": "Completed",
      "Name": "Check for plugin updates",
      "Key": "PluginUpdates",
      "Id": "c27fda37dfb6e39be141191aaa1c3060"
    },
    "Triggers": [
      {
        "Type": "StartupTrigger"
      },
      {
        "Type": "IntervalTrigger",
        "IntervalTicks": 108000000000
      }

 

Link to comment
Share on other sites

Santrex

I found this task by the ID you provided.
Will the DELETE method help in this matter? I not see method for Disabled. 

image.png.197be5043f123ab3541e6ccf6204fd10.png
Or is it somehow possible to do this through the EMBY Config?

Link to comment
Share on other sites

Happy2Play
3 minutes ago, Santrex said:

I found this task by the ID you provided.
Will the DELETE method help in this matter? I not see method for Disabled. 

image.png.197be5043f123ab3541e6ccf6204fd10.png
Or is it somehow possible to do this through the EMBY Config?

No you need to remove the triggers.

Link to comment
Share on other sites

Santrex
1 minute ago, Happy2Play said:

No you need to remove the triggers.

/ScheduledTasks/{Id}/Triggers

Is there an example?

Link to comment
Share on other sites

Happy2Play
2 minutes ago, Santrex said:

/ScheduledTasks/{Id}/Triggers

Is there an example?

image.thumb.png.636560bd0053784cf3ad178dfc9189c1.png

This will create a custom scheduled task in /config/scheduledtasks folder.  So to reenable you would update via api or delete this custom task.

  • Thanks 1
Link to comment
Share on other sites

Most plugin updates are compatibility updates. If you don't get those you're just going to cause yourself more problems. That's why it's not optional.

Link to comment
Share on other sites

Santrex
18 hours ago, Luke said:

Most plugin updates are compatibility updates. If you don't get those you're just going to cause yourself more problems. That's why it's not optional.

I understand. This is temporary. We suggest time to update the server.

Link to comment
Share on other sites

Santrex

I tried to do as you said. I created ScheduledTasks and it appeared in my folder as you said.
image.png.908fa7658b35bed1040e384168f10a04.png
But updates are still going on. I restarted the server and checked the status of this Tasks via the API and it returned me: 

{"Name":"Check for plugin updates","State":"Idle","Id":"c27fda37dfb6e39be141191aaa1c3060","LastExecutionResult":{"StartTimeUtc":"2022-07-04T09:33:14.4668172Z","EndTimeUtc":"2022-07-04T09:33:16.1046764Z","Status":"Completed","Name":"Check for plugin updates","Key":"PluginUpdates","Id":"c27fda37dfb6e39be141191aaa1c3060"},"Triggers":[{"Type":"StartupTrigger"},{"Type":"IntervalTrigger","IntervalTicks":108000000000}],"Description":"Downloads and installs updates for plugins that are configured to update automatically.","Category":"Application","IsHidden":true,"Key":"PluginUpdates"}
Link to comment
Share on other sites

Santrex

I am using this construct on Powershell

-------------------------------
$url_task_triggered="http://"+$ServerEmby+":8096/ScheduledTasks/c27fda37dfb6e39be141191aaa1c3060/Triggers?api_key=$api_key";
$result_task_triggered=Invoke-WebRequest -Uri $url_task_triggered -Method POST -ContentType "application/json;charset=utf-8;"
$result_task_triggered.StatusCode

Link to comment
Share on other sites

Santrex

It is possible if this is done using the SQLLite database or through some EMBY configuration file?

Link to comment
Share on other sites

Santrex

I know there are files with Tasks in the folder.

C:\Emby\programdata\data\ScheduledTasks

I found it there c27fda37-dfb6-e39b-e141-191aaa1c3060.js
and deleted. BUT it was created after restarting the server.
I tried removing the "permissions" ACL from it and that didn't help either...

Link to comment
Share on other sites

Santrex

I still think that it would be possible to "temporarily" block the address from which he downloads the Plugin update.
The main thing is that this does not affect Emby Premiere.
Do you have the address they install them from? Or get a list of new versions?

@Luke

Edited by Santrex
Link to comment
Share on other sites

3 hours ago, Santrex said:

This link?

https://www.mb3admin.com/admin/service/EmbyPackages.json

That's the list of updates, yes.

  • Like 1
Link to comment
Share on other sites

Happy2Play
7 hours ago, Santrex said:

I know there are files with Tasks in the folder.

C:\Emby\programdata\data\ScheduledTasks

I found it there c27fda37-dfb6-e39b-e141-191aaa1c3060.js
and deleted. BUT it was created after restarting the server.
I tried removing the "permissions" ACL from it and that didn't help either...

Data task will always regenerate themselves, that is why the custom tasks folder is created in config.

If there is content beside [] in the config custom task you did not do it right.

content of the custom task.js

image.png.e76e48e580418185ae4681099f757581.png

Edited by Happy2Play
  • Like 1
Link to comment
Share on other sites

Santrex
15 hours ago, Happy2Play said:

Data task will always regenerate themselves, that is why the custom tasks folder is created in config.

If there is content beside [] in the config custom task you did not do it right.

content of the custom task.js

image.png.e76e48e580418185ae4681099f757581.png

All right. I did as you saw and as you showed. I restarted the Service several times, but it always made the Plugin update back ;(
Maybe my software version is too old.
So far, I have stopped at a temporary blocking of the update through a link.
I will test the option with Task, a little later.

Link to comment
Share on other sites

Santrex


So far I've solved the problem...
Not very beautiful, and errors in the logs, but I have no option.
image.png.d3e63e8f5ca89fd2da3941195801e109.png

Link to comment
Share on other sites

Happy2Play

Honestly have no idea as all I do is remove the triggers and have never had a plugin update since and have to run the task manually 

Same as all other tasks that I have removed triggers from.

  {
    "Name": "Check for plugin updates",
    "State": "Idle",
    "Id": "c27fda37dfb6e39be141191aaa1c3060",
    "LastExecutionResult": {
      "StartTimeUtc": "2022-07-07T03:12:07.7685251Z",
      "EndTimeUtc": "2022-07-07T03:12:08.6219540Z",
      "Status": "Completed",
      "Name": "Check for plugin updates",
      "Key": "PluginUpdates",
      "Id": "c27fda37dfb6e39be141191aaa1c3060"
    },
    "Triggers": [],
    "Description": "Downloads and installs updates for plugins that are configured to update automatically.",
    "Category": "Application",
    "IsHidden": true,
    "Key": "PluginUpdates"
  }

 

Link to comment
Share on other sites

1 hour ago, nahtay said:

Having the same issue.

HI there, what issue do you think you're having?

Link to comment
Share on other sites

nahtay

Emby playback plugin keeps updating and it won't work presumably because I can't update to most current emby server version due to my mac being old.

Link to comment
Share on other sites

4 minutes ago, nahtay said:

Emby playback plugin keeps updating and it won't work presumably because I can't update to most current emby server version due to my mac being old.

HI, what playback plugin? You don't need to worry about hacking this. It will only update you to a version of the plugin that is appropriate for your server version.

Link to comment
Share on other sites

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...