Jump to content

[4.7.0.18] Single Library Refresh API deprecated?


msmcpeake

Recommended Posts

msmcpeake

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

Happy2Play

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

 

image.png.b866fbdf32501b7c7986ef28893f7e57.png

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

msmcpeake
50 minutes ago, Happy2Play said:

Appears to work fine here.

Used parentid from url.

 

image.png.b866fbdf32501b7c7986ef28893f7e57.png

  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

Happy2Play
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

  • 9 months later...
horstepipe

@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

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.

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