Jump to content

Can I call a scheduled task (Scan Library) via a PowerShell script?


Oracle

Recommended Posts

Oracle

Hello,

Is this possible, and can someone break it down for me like a toddler?

 

Thanks!

Link to comment
Share on other sites

rbjtech

One of the easiest ways is just to use curl to send a web request to the emby server.

Create an API key in emby(using the 'Advanced/API Keys' section)

Then  replace the emby IP and API key below with your values - and it will force a library scan.  use the logs in debug mode to check it works.

curl -X POST "http://<emby-server-ip>:8096/emby/Library/Refresh?api_key=<your_api_key>" -H "accept: */*"

 

  • Thanks 1
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...