Jump to content

api changes from emby-server 4.8.10.0 to 4.9.1.80 ?


Recommended Posts

Termin8or
Posted

In the old 4.8.10.0 I used to send path specific library updates to api instead of scanning the whole specific library as that takes time if you have alot of subfolders

example when script archives a new episode it sends api request to update the path of the show

curl -X POST "http://192.168.10.199:8096/Library/Media/Updated?api_key=bestkey" -H "accept: */*" -H "Content-Type: application/json" -d "{\"Updates\":[{\"Path\":\"/some/cool/path/RAR2FS/TV/${show_name_dir}/${show_season_dir}/${relname}\",\"UpdateType\":\"\"}]}"
this  path specific not valid in 4.9 api ?

Posted

Hello Termin8or,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

adminExitium
Posted

It's been working fine for me on both versions. If you are facing issues, logs are needed to identify the problem.

Termin8or
Posted

ok was getting Response 204 for those specific api requests after the upgrade but will try a reboot of the server just to make sure its not a bug.

tried sending library update with id and that worked ok so thats when I suspected some api changes.

Need to minimize disk IO and go for those path specific updates :)

adminExitium
Posted

204 is a perfectly valid response and indicates Success without any response data. This has not changed between the versions. Are you facing any issues?

Termin8or
Posted

Only that the specific path update do nothing, if sending request for updating the whole tv library by id it starts running full scan.

on the old version the path would go one folder up scanning the season dir for new episodes.

adminExitium
Posted

Again, logs. It's working fine for me.

Termin8or
Posted

fresh log from recent startup and as you can see for the 2025-10-30 22:01:04.346 Info LibraryService-0HNGNUR0H4L5S:00000001: http/1.1 POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. Source Ip: 192.168.10.199, UserAgent: curl/8.5.0
2025-10-30 22:01:04.353 Info LibraryService-0HNGNUR0H4L5S:00000001: http/1.1 Response 204 to 192.168.10.199. Time: 8ms. POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. 
nothing happens..., on previous version that triggered an update for that specific show that got a new episode

embyserver (1).txt

adminExitium
Posted

Logs with Debug enabled please. And you also need to wait a few mins for the scan to be processed. This is a buffer maintained by Emby for repeated scans to the same path. I have seen it take around 5-10 mins for the scan to actually run after receiving the request.

Termin8or
Posted

Could wait forever it does not start with the path update command used in the earlier version

do you have a valid curl path example for update I can try?

2025-10-31 11:40:35.731 Info LibraryService-0HNGNUR0H4L83:00000001: http/1.1 POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. Source Ip: 192.168.10.199, UserAgent: curl/8.5.0
2025-10-31 11:40:35.731 Info LibraryService-0HNGNUR0H4L83:00000001: http/1.1 Response 204 to 192.168.10.199. Time: 0ms. POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. 
2025-10-31 11:41:00.532 Debug UserService-0HNGNUR0H4L7N:00000061: http/1.1 GET http://192.168.10.199:8096/emby/Users/9e91f336c43d4806bfd078f5af42282f?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. Source Ip: host2, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
2025-10-31 11:41:00.533 Debug UserService-0HNGNUR0H4L7N:00000061: http/1.1 Response 200 to host2. Time: 1ms. GET http://192.168.10.199:8096/emby/Users/9e91f336c43d4806bfd078f5af42282f?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. 
2025-10-31 11:41:00.574 Debug SystemService-0HNGNUR0H4L7N:00000067: http/1.1 GET http://192.168.10.199:8096/emby/System/Logs/Query?IncludeItemTypes=Log&Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,DateModified,Size&StartIndex=0&Recursive=true&Limit=30&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. Source Ip: host2, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
2025-10-31 11:41:00.575 Debug SystemService-0HNGNUR0H4L7N:00000067: http/1.1 Response 200 to host2. Time: 1ms. GET http://192.168.10.199:8096/emby/System/Logs/Query?IncludeItemTypes=Log&Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,DateModified,Size&StartIndex=0&Recursive=true&Limit=30&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. 
2025-10-31 11:41:02.680 Debug SystemService-0HNGNUR0H4L7N:0000006C: http/1.1 GET http://192.168.10.199:8096/emby/System/Logs/Query?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. Source Ip: host2, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
2025-10-31 11:41:02.681 Debug SystemService-0HNGNUR0H4L7N:0000006C: http/1.1 Response 200 to host2. Time: 1ms. GET http://192.168.10.199:8096/emby/System/Logs/Query?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. 
2025-10-31 11:41:02.693 Debug SystemService-0HNGNUR0H4L7N:0000006D: http/1.1 GET http://192.168.10.199:8096/emby/System/Logs/embyserver.txt/Lines?IncludeItemTypes=LogLine&Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=0&SortBy=SortName&SortOrder=Ascending&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Sanitize=true&Limit=100&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. Source Ip: host2, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
2025-10-31 11:41:02.695 Debug SystemService-0HNGNUR0H4L7N:0000006D: http/1.1 Response 200 to host2. Time: 2ms. GET http://192.168.10.199:8096/emby/System/Logs/embyserver.txt/Lines?IncludeItemTypes=LogLine&Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=0&SortBy=SortName&SortOrder=Ascending&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Sanitize=true&Limit=100&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. 
2025-10-31 11:41:13.438 Debug SystemService-0HNGNUR0H4L7N:0000006E: http/1.1 GET http://192.168.10.199:8096/emby/System/Logs/embyserver.txt/Lines?IncludeItemTypes=LogLine&Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=100&SortBy=SortName&SortOrder=Ascending&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Sanitize=true&Limit=100&EnableTotalRecordCount=false&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. Source Ip: host2, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
2025-10-31 11:41:13.442 Debug SystemService-0HNGNUR0H4L7N:0000006E: http/1.1 Response 200 to host2. Time: 4ms. GET http://192.168.10.199:8096/emby/System/Logs/embyserver.txt/Lines?IncludeItemTypes=LogLine&Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=100&SortBy=SortName&SortOrder=Ascending&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Sanitize=true&Limit=100&EnableTotalRecordCount=false&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. 
2025-10-31 11:41:34.916 Debug SystemService-0HNGNUR0H4L7N:0000006F: http/1.1 GET http://192.168.10.199:8096/emby/System/Logs/embyserver.txt/Lines?IncludeItemTypes=LogLine&Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=200&SortBy=SortName&SortOrder=Ascending&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Sanitize=true&Limit=100&EnableTotalRecordCount=false&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. Source Ip: host2, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
2025-10-31 11:41:34.918 Debug SystemService-0HNGNUR0H4L7N:0000006F: http/1.1 Response 200 to host2. Time: 2ms. GET http://192.168.10.199:8096/emby/System/Logs/embyserver.txt/Lines?IncludeItemTypes=LogLine&Fields=BasicSyncInfo,CanDelete,CanDownload,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=200&SortBy=SortName&SortOrder=Ascending&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Sanitize=true&Limit=100&EnableTotalRecordCount=false&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=c7ab13a5-0069-44e1-a9c4-29af45a8e170&X-Emby-Client-Version=4.9.1.80&X-Emby-Token=x_secret3_x&X-Emby-Language=en-us. 
2025-10-31 12:00:13.173 Info LibraryService-0HNGNUR0H4L84:00000001: http/1.1 POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. Source Ip: 192.168.10.199, UserAgent: curl/8.5.0
2025-10-31 12:00:13.173 Info LibraryService-0HNGNUR0H4L84:00000001: http/1.1 Response 204 to 192.168.10.199. Time: 1ms. POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. 
2025-10-31 12:00:14.298 Info LibraryService-0HNGNUR0H4L85:00000001: http/1.1 POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. Source Ip: 192.168.10.199, UserAgent: curl/8.5.0
2025-10-31 12:00:14.299 Info LibraryService-0HNGNUR0H4L85:00000001: http/1.1 Response 204 to 192.168.10.199. Time: 1ms. POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. 
2025-10-31 12:00:19.005 Info LibraryService-0HNGNUR0H4L86:00000001: http/1.1 POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. Source Ip: 192.168.10.199, UserAgent: curl/8.5.0
2025-10-31 12:00:19.006 Info LibraryService-0HNGNUR0H4L86:00000001: http/1.1 Response 204 to 192.168.10.199. Time: 1ms. POST http://192.168.10.199:8096/Library/Media/Updated?api_key=x_secret2_x. 
2025-10-31 12:12:57.901 Debug SystemService-0HNGNUR0H4L87:00000001: http/1.1 GET http://192.168.10.199:8096/emby/system/info/public. Source Ip: host6, UserAgent: Emby/7 CFNetwork/3826.500.131 Darwin/24.5.0
2025-10-31 12:12:57.902 Debug SystemService-0HNGNUR0H4L87:00000001: http/1.1 Response 200 to host6. Time: 0ms. GET http://192.168.10.199:8096/emby/system/info/public. 
2025-10-31 12:12:57.905 Debug ItemsService-0HNGNUR0H4L87:00000002: http/1.1 GET http://192.168.10.199:8096/emby/Users/c920de00e7a2474fa65502085cffae7a/Items/Resume?Fields=PrimaryImageAspectRatio&IncludeItemTypes=Episode,Movie&Limit=8&EnableImageTypes=Primary,Thumb,Backdrop&EnableTotalRecordCount=false&Recursive=true&X-Emby-Client=Emby for Apple TV&X-Emby-Device-Name=Apple TV&X-Emby-Device-Id=90A5EED4-92ED-4DB8-A90F-B7AE2DAE0A50&X-Emby-Client-Version=2.0.1 (7)&X-Emby-Token=x_secret5_x. Source Ip: host6, UserAgent: Emby/7 CFNetwork/3826.500.131 Darwin/24.5.0
2025-10-31 12:12:57.906 Debug AuthenticationRepository: GetCapabilities id: 20
2025-10-31 12:12:57.911 Debug SessionManager: Creating new FirebaseSessionController
2025-10-31 12:12:57.912 Debug SessionManager: Creating new WebSocketController
2025-10-31 12:12:57.944 Debug App: Sqlite: 284 - automatic index on LastWatchedEpisodes(SeriesPresentationUniqueKey)

adminExitium
Posted

The API seems correct apart from the UpdateType being empty. I usually set it to "Created" always.

Termin8or
Posted

very strange, added /*.mkv and that triggers change detected. could be some ubuntu bug then as it was never needed before. 

will update script variables and monitor changes.

Termin8or
Posted

confirmed ok now with /*.mkv added at the end of the path, library monitor detects the change and triggers refresh for path specified.

Posted

What exactly did you pass in before?

Termin8or
Posted

curl command from first post.. just the path to the new directory

Posted
20 minutes ago, Termin8or said:

curl command from first post.. just the path to the new directory

I only see a general example where we have to use our imagination, not an exact example.

Termin8or
Posted

yeah its a copy / paste from archive script so did not replace the variables 

curl -X POST "http://192.168.10.199:8096/Library/Media/Updated?api_key=bestkey" -H "accept: */*" -H "Content-Type: application/json" -d "{\"Updates\":[{\"Path\":\"/some/cool/path/RAR2FS/TV/${show_name_dir}/${show_season_dir}/${relname}\",\"UpdateType\":\"\"}]}"

you could use /TV/The.Simpsons/S37.1080p.WEB/The.Simpsons.S37E04.1080p.WEB.h264-NOGRP and that would trigger the library update in 4.8.10.0

Posted

We'll have to add more logging to learn why. Thanks.

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