msmcpeake 8 Posted November 21, 2021 Share Posted November 21, 2021 My current curl request is: # TV Library curl -X POST "http://192.168.1.249:8096/emby/Items/4ff5fdc9ac2e53dad01716d3f5c53dad/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&api_key=redacted" -d "" ...but I see no interaction in the GUI when it's sent. Is this syntax deprecated? 4ff5fdc9ac2e53dad01716d3f5c53dad was the library ID back when I was able to see the ID in the developer console of my browser, but I cannot see it anymore. I used Swagger to pull my items and see the ID is listed as 171257 which I tried subsituting and that did not work either. { "Name": "TV Shows", "ServerId": "5d9db6fe9d18455c891cf84f2ab5910b", "Id": "171257", "IsFolder": true, "Type": "Folder", "ImageTags": {}, "BackdropImageTags": [] }, Any help is appreciated, thanks. Link to comment Share on other sites More sharing options...
Happy2Play 8325 Posted November 21, 2021 Share Posted November 21, 2021 Appears to work fine here. Used parentid from url. Quote C:\Windows\System32\curl -X POST "http://192.168.151.16:8096/emby/Items/6c2a057148b4d7c20a207c789aba6d07/Refresh?Recursive=true&MetadataRefreshMode=Default&ImageRefreshMode=Default&ReplaceAllMetadata=false&ReplaceAllImages=false&api_key={API KEY}" -d "" Spoiler { "Name": "TV shows", "ServerId": "5b8c8a53cc0dXXXXXXXXXXXXXXXXXXXX", "Id": "6c2a057148b4d7c20a207c789aba6d07", "Etag": "d18425861d15476f7bd04d99fe5e461a", "DateCreated": "2021-08-25T06:38:46.0000000+00:00", "CanDelete": false, "CanDownload": false, "PresentationUniqueKey": "6c2a057148b4d7c20a207c789aba6d07", "SortName": "TV shows", "ForcedSortName": "TV shows", "ExternalUrls": [], "Path": "Y:\\Emby-Server\\programdata\\root\\default\\TV shows", "Taglines": [], "RemoteTrailers": [], "ProviderIds": {}, "IsFolder": true, "ParentId": "2", "Type": "CollectionFolder", "DisplayPreferencesId": "6c2a057148b4d7c20a207c789aba6d07", "PrimaryImageAspectRatio": 1.7777777777777777, "CollectionType": "tvshows", "ImageTags": { "Primary": "6df5ad4d4934fe78aaf272eb72649bed" }, "BackdropImageTags": [], "LockedFields": [], "LockData": false } But would appear from what you have posted there is a change in the library as it is a Folder. Link to comment Share on other sites More sharing options...
msmcpeake 8 Posted November 21, 2021 Author Share Posted November 21, 2021 50 minutes ago, Happy2Play said: Appears to work fine here. Used parentid from url. Reveal hidden contents { "Name": "TV shows", "ServerId": "5b8c8a53cc0dXXXXXXXXXXXXXXXXXXXX", "Id": "6c2a057148b4d7c20a207c789aba6d07", "Etag": "d18425861d15476f7bd04d99fe5e461a", "DateCreated": "2021-08-25T06:38:46.0000000+00:00", "CanDelete": false, "CanDownload": false, "PresentationUniqueKey": "6c2a057148b4d7c20a207c789aba6d07", "SortName": "TV shows", "ForcedSortName": "TV shows", "ExternalUrls": [], "Path": "Y:\\Emby-Server\\programdata\\root\\default\\TV shows", "Taglines": [], "RemoteTrailers": [], "ProviderIds": {}, "IsFolder": true, "ParentId": "2", "Type": "CollectionFolder", "DisplayPreferencesId": "6c2a057148b4d7c20a207c789aba6d07", "PrimaryImageAspectRatio": 1.7777777777777777, "CollectionType": "tvshows", "ImageTags": { "Primary": "6df5ad4d4934fe78aaf272eb72649bed" }, "BackdropImageTags": [], "LockedFields": [], "LockData": false } But would appear from what you have posted there is a change in the library as it is a Folder. Could you explain how you got the parentId? Link to comment Share on other sites More sharing options...
Happy2Play 8325 Posted November 21, 2021 Share Posted November 21, 2021 1 minute ago, msmcpeake said: Could you explain how you got the parentId? Clicked on the library and looked at the url. http://homeserver:8096/web/index.html#!/tv?serverId=5b8c8a53cc0d4f4fb6c048xxxxxxxxxx&parentId=6c2a057148b4d7c20a207c789aba6d07 Link to comment Share on other sites More sharing options...
horstepipe 356 Posted August 24, 2022 Share Posted August 24, 2022 @Happy2Play or anybody else I'd like to update my libraries via api - but with a specified MinPremiereDate. So basically what I want to achieve is that just new movies and shows are being updated (because of missing images and changing ratings of new things). Could you tell me whether it is possible to edit that command to the way I want it? C:\Windows\System32\curl -X POST "http://192.168.151.16:8096/emby/Items/6c2a057148b4d7c20a207c789aba6d07/Refresh?Recursive=true&MetadataRefreshMode=Default&ImageRefreshMode=Default&ReplaceAllMetadata=false&ReplaceAllImages=false&api_key={API KEY}" -d "" Best regards Link to comment Share on other sites More sharing options...
Happy2Play 8325 Posted August 24, 2022 Share Posted August 24, 2022 @horstepipe These are the only options that I am aware of. 1 Link to comment Share on other sites More sharing options...
horstepipe 356 Posted August 24, 2022 Share Posted August 24, 2022 Hmm thanks. @Luke could you assist if you have a minute? Link to comment Share on other sites More sharing options...
Luke 37155 Posted August 24, 2022 Share Posted August 24, 2022 6 hours ago, horstepipe said: by/Items/6 6 hours ago, horstepipe said: @Happy2Play or anybody else I'd like to update my libraries via api - but with a specified MinPremiereDate. So basically what I want to achieve is that just new movies and shows are being updated (because of missing images and changing ratings of new things). Could you tell me whether it is possible to edit that command to the way I want it? C:\Windows\System32\curl -X POST "http://192.168.151.16:8096/emby/Items/6c2a057148b4d7c20a207c789aba6d07/Refresh?Recursive=true&MetadataRefreshMode=Default&ImageRefreshMode=Default&ReplaceAllMetadata=false&ReplaceAllImages=false&api_key={API KEY}" -d "" Best regards You can't. You have to query for the individual items using MinPremiereDate as a filter, then refresh those items. 1 Link to comment Share on other sites More sharing options...
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