Jump to content

Refreshing specific Folder with curl


Lumpe86

Recommended Posts

Dear Members,

I do some monitoring and get every 15 minutes images about my current data. (see attachment to see an example)

I use curl in order to refresh this specific folder and it works very well:

curl --data '' "http://embyserver:8096/emby/Items/XXXX/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=true&ReplaceAllMetadata=true&api_key=yyyy"

XXXX: is the parentId, which is changing from time to time

Why is the folger ID changing and can I prevent changing the folder ID? 

Is there another possibility to refresh a specific folder away from curl?

Thank you for support and greetings from Germany.  🍻

01-tagesverlauf_19-12-2021_09-15.jpg

Link to comment
Share on other sites

Hi Luke,

I found my mistake. I had a daily task for refreshing the media library at midnight. At the same time, a script deleted all pictures in the specific folder and copied new pictures in it. It seems to be that it comes to an overlapping with those events. So the folder got a new parentID. After disabling the daily refreshing, it works and the parentID remains.

Merry Christmas, Simon. 💫

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