Search the Community
Showing results for tags 'Api'.
-
Hi, Do we have a log over breaking changes for each release (dev and prod)? If not, we should. Either in a release log connected to the release in some way or a new post in this forum at the same time as the server update is published. It requires a little bit of extra administration, but the win for the app and plugin developers are bigger in my opinion. I just experienced this scenario: My emby application that communicates with the rest api all of a sudden started to thow exceptions. After some searching I see that the serialization of the json responses to the automatically generated entity classes, based on the json response, was broken. This means that something has changed in the json response that I receive from the server, and this time in the usersession response object. After regenerating the usersession entity class, everything works again. I rather read about all breaking changes for a release instead of testing all features in my application and see if anything breaks. Again, I know you have a lot to do, so it is undestandable if you don't want to add more things to the admin part of a release. Keep up the good work! Joggs
-
I seem to be having a weird issue with issuing API keys after a fresh install of 3.5.2.0. It seems that API keys are somehow not persistent and are only valid for one-time use. After creating an API key, I am able to successfully use it once, but if I try again it fails and the API key had disappeared from the API key list immediately after the first successful use. For some context: I'm in the process of upgrading from Warden jail plugins to iocage jails. Everything seems to be running as normal and I am just trying to connect Sonarr and a custom written web interface that use API keys. I'm currently on FreeNAS 11.2-STABLE train with a fresh 11.2-Release FreeBSD iocage jail, with Emby installed with the new FreeBSD pkg. I don't see a reason for it to be a FreeNAS/FreeBSD issue so I am posting on General topics. On my previous Warden Plugin Jail, originally created on FreeNAS train 9.10.2-U4 and running 3.4.1.0, in the context of API keys, worked perfectly fine and normal. After the fresh install of 3.5.2.0, I did do a restore of users, settings, etc. from 3.4.1.0 with the Emby backup & restore plugin. Attached is my log. Last thing I did was create an API key and use it for one http post and now it no longer shows on the API list. The http post was done through my web interface, I attempted to login via AuthenticationByName with user Guest and was successful. Log.txt
-
I need help with this
-
good afternoon, i havent found this on swagger nor by searching the forum. is there a API Command to logout a User to force him to re-authenticate? appreciate any comments jf
-
I just did a reset of my whole system and reinstalled emby 3.0.5786 and recognized that the last.fm scrobbler plugin was completely gone from the catalog. I know that they pretty much messed up their API, but are there chances that scrobbling music from emby will come back anytime?
-
Hi, I wonder whether there is a way to interface with Emby using Power Query? I current run a few Power Queries against Radarr and Sonarr to help me maintain and control my library but it would be really helpful if I could do the same with Emby. I have had a look at various topics and I have tried a number of different things but I am no further forward. Thanks
-
Hello, I'm searching for a solution to log in to the web-based client without entering credentials. Is there any possibility to login with variables in the url like an API and the userid? (Or through a POST/GET request) I've read the API wiki but I'm not getting any further.. Regards, Louis Mylle
-
Very similar to this thread and this thread which was marked complete but never really rectified... I've unfortunately got the same problem. In short: I can authenticate without a problem (with the Emby API) I can retrieve the active Sessions but when i try to post to the browser based one I have open using: http://<emby host>/Sessions/<my emby browser session>/Command/DisplayMessage It successfully posts (returns a 204) and triggers a modal popup box with none of the content i passed in with the post. I also even passed in TimeoutMs which is supposed to over-ride the Modal setting. Emby is actioning the DisplayMessage correctly but it isn't parsing the payload as part of the POST Now according to this wiki page it states: To which it also states: I am definitely posting the application/json properly in the header along with all of the other required entries (X-Emby-Authorization and X-MediaBrowser-Token). I also assume this because I can query for active sessions in addition to actioning the Message itself. { "Arguments": { "Header": "Test Header", "Text": "My Test Message Body", "TimeoutMs" : 10000, } } I tried without the Arguments too since googling seems to turn up results of people polling Emby that way. But this yields the same result (a successful post, a successful event driven popup on the browser side, but no content - see attached screenshot): { "Header": "Test Header", "Text": "My Test Message Body", "TimeoutMs" : 10000, } I was just curious what I'm doing wrong here? My goal is to integrate this with Apprise which powers my NZBGet and SABNzbd plugins. I attached a screenshot of the Emby instance I'm connected too (via the browser) and what the pop-ups look like after it spawns. I tried to highlight in the Firefox inspector where i believe the text is supposed to go. I'm using a simple docker container based on emby/embyserver:latest (documented here). I'm wondering if it's just a lack of documentation or a small over-sight on me? Any help would be fantastic!
-
I've started having a problem with my Emby 3.2.26.0 - I can't say 100% it started in 3.2.26.0 but that the version I have installed when when I first noticed I can no longer get my python sync script (source is available on GitHub) to register with Emby as a sync destination. I don't get any error messages, but when I try and use the WebUI to sync any media I just get told I have no sync providers installed and am directed to install FolderSync. I'm posting the following JSON to "http://10.1.1.1:8096/emby/Sessions/Capabilities/Full" {"PlayableMediaTypes":["Audio","Video"],"SupportsPersistentIdentifier":true,"SupportsMediaControl":false,"SupportsOfflineAccess":true,"SupportsSync":true,"SupportsContentUploading":false,"DeviceProfile":{"MaxStreamingBitrate":176551724,"MaxStaticBitrate":100000000,"MusicStreamingTranscodingBitrate":192000,"DirectPlayProfiles":[{"Container":"mp4,m4v","Type":"Video","VideoCodec":"h264","AudioCodec":"mp3,aac"},{"Container":"mkv","Type":"Video","VideoCodec":"h264","AudioCodec":"mp3,aac"},{"Container":"mov","Type":"Video","VideoCodec":"h264","AudioCodec":"mp3,aac"},{"Container":"opus","Type":"Audio"},{"Container":"mp3","Type":"Audio"},{"Container":"aac","Type":"Audio"},{"Container":"m4a","AudioCodec":"aac","Type":"Audio"},{"Container":"webma,webm","Type":"Audio"},{"Container":"wav","Type":"Audio"},{"Container":"webm","Type":"Video"},{"Container":"m4v,3gp,ts,mpegts,mov,xvid,vob,mkv,wmv,asf,ogm,ogv,m2v,avi,mpg,mpeg,mp4,webm,wtv","Type":"Video","AudioCodec":"aac,aac_latm,mp2,mp3,ac3,wma,dca,dts,pcm,PCM_S16LE,PCM_S24LE,opus,flac"},{"Container":"aac,mp3,mpa,wav,wma,mp2,ogg,oga,webma,ape,opus,flac,m4a","Type":"Audio"}],"TranscodingProfiles":[{"Container":"opus","Type":"Audio","AudioCodec":"opus","Context":"Streaming","Protocol":"http","MaxAudioChannels":"2"},{"Container":"opus","Type":"Audio","AudioCodec":"opus","Context":"Static","Protocol":"http","MaxAudioChannels":"2"},{"Container":"mp3","Type":"Audio","AudioCodec":"mp3","Context":"Streaming","Protocol":"http","MaxAudioChannels":"2"},{"Container":"mp3","Type":"Audio","AudioCodec":"mp3","Context":"Static","Protocol":"http","MaxAudioChannels":"2"},{"Container":"aac","Type":"Audio","AudioCodec":"aac","Context":"Streaming","Protocol":"http","MaxAudioChannels":"2"},{"Container":"aac","Type":"Audio","AudioCodec":"aac","Context":"Static","Protocol":"http","MaxAudioChannels":"2"},{"Container":"wav","Type":"Audio","AudioCodec":"wav","Context":"Streaming","Protocol":"http","MaxAudioChannels":"2"},{"Container":"wav","Type":"Audio","AudioCodec":"wav","Context":"Static","Protocol":"http","MaxAudioChannels":"2"},{"Container":"mkv","Type":"Video","AudioCodec":"mp3,aac,ac3","VideoCodec":"h264","Context":"Streaming","MaxAudioChannels":"2","CopyTimestamps":false},{"Container":"ts","Type":"Video","AudioCodec":"aac,mp3,ac3","VideoCodec":"h264","Context":"Streaming","Protocol":"hls","MaxAudioChannels":"2","EnableSplittingOnNonKeyFrames":false},{"Container":"webm","Type":"Video","AudioCodec":"vorbis","VideoCodec":"vpx","Context":"Streaming","Protocol":"http","MaxAudioChannels":"2"},{"Container":"mp4","Type":"Video","AudioCodec":"mp3,aac,ac3","VideoCodec":"h264","Context":"Streaming","Protocol":"http","MaxAudioChannels":"2"},{"Container":"mp4","Type":"Video","AudioCodec":"mp3,aac,ac3","VideoCodec":"h264","Context":"Static","Protocol":"http"}],"ContainerProfiles":[],"CodecProfiles":[{"Type":"Video","Container":"avi","Conditions":[{"Condition":"NotEqual","Property":"CodecTag","Value":"xvid"}]},{"Type":"Video","Codec":"h264","Conditions":[{"Condition":"EqualsAny","Property":"VideoProfile","Value":"high|main|baseline|constrained baseline"},{"Condition":"LessThanEqual","Property":"VideoLevel","Value":"41"}]},{"Type":"Audio","Conditions":[{"Condition":"LessThanEqual","Property":"AudioChannels","Value":"2"}]}],"SubtitleProfiles":[{"Format":"srt","Method":"External"},{"Format":"ssa","Method":"External"},{"Format":"ass","Method":"External"},{"Format":"srt","Method":"Embed"},{"Format":"subrip","Method":"Embed"},{"Format":"ass","Method":"Embed"},{"Format":"ssa","Method":"Embed"},{"Format":"dvb_teletext","Method":"Embed"},{"Format":"dvb_subtitle","Method":"Embed"},{"Format":"dvbsub","Method":"Embed"},{"Format":"pgs","Method":"Embed"},{"Format":"pgssub","Method":"Embed"},{"Format":"dvdsub","Method":"Embed"},{"Format":"vtt","Method":"Embed"},{"Format":"sub","Method":"Embed"},{"Format":"idx","Method":"Embed"},{"Format":"smi","Method":"Embed"}],"ResponseProfiles":[{"Type":"Video","Container":"m4v","MimeType":"video/mp4"},{"Type":"Video","Container":"mov","MimeType":"video/webm"}],"MaxStaticMusicBitrate":null}} Has there been any changes to the way syncing works in the Emby Web UI, or have I done something wrong?
-
Can i add with my plugin, a rating symbol for each provider that i have add + there rating value. Yet there is only 1 rating symbol a red star
-
Having some trouble determining the parameter I'm missing to successfully call any of the instant mix api endpoints. So far each call returns: Instant Mix endpoints I've attempted to hit: /Albums/{Id}/InstantMixExample: http://emby:8096/Albums/d317099909bb0e80e58d835c33c5fa23/InstantMix Items/{Id}/InstantMix Example:http://emby:8096/Items/d317099909bb0e80e58d835c33c5fa23/InstantMix In addition to a few others. All return the same error. I can successfully return other API requests, retrieving albums/artists and similar. I have been poking around in the swagger ui from the newest beta build but have not been able to find any specific params. Consumes/produces just state "application/json". Any help on what parameter I'm missing would be greatly appreciated.
-
Hi, My client has 5 docker running with emby server. We need to create a status page that will show the status of each docker emby and the number of concurrent users. Can anyone please let me know how i can setup this. We have already enabled API users and passwords through hiroku. I need assistance in codes that will make me to get the status of the emby server and users connected list. Thanks in advance
-
Hey, I was wondering what the proper way is to get the IsPLayed status over the Emby API? I can't figure that one out, I do have all users info and a list of ItemResultDto's where I need the Isplayed status for. Can someone help me with that? Thanks, Reggi
-
Hello everyone, iam trying to create a script which will allow me to backup the watched statuses of multiple users in my household. I have the following code to get the movies list from my current installation. The issue is when i query the movie list that is returned, i do not see the watched status of the movies. Can anyone please point me in the right direction. Thanks Jay $embyServerUrl = "http://localhost:8096" $embyUsername = "dummy" $embyPassword = "xxxxxx" $embyClientName = "PowerShellScript" $embyDeviceName = "PowerShellScriptEpisodeFiller" $embyDeviceId = "1" $embyApplicationVersion = "1.0.0"; $authUrl = "{0}/Users/AuthenticateByName?format=json" -f $embyServerUrl Function Get-StringHash([string] $String,$HashName = "MD5") { $StringBuilder = New-Object System.Text.StringBuilder [system.Security.Cryptography.HashAlgorithm]::Create($HashName).ComputeHash([system.Text.Encoding]::UTF8.GetBytes($String))|%{ [Void]$StringBuilder.Append($_.ToString("x2")) } $StringBuilder.ToString() } function Get-EmbyAccessToken { [CmdletBinding()] param ($username, $password) $authUrl = "{0}/Users/AuthenticateByName?format=json" -f $embyServerUrl $sha1Pass = Get-StringHash -String $password -HashName "SHA1" $md5Pass = Get-StringHash -String $password $postParams = (@{Username="$username";password="$sha1Pass";passwordMd5="$md5Pass"} | ConvertTo-Json) $headers = @{"Authorization"="MediaBrowser Client=`"$embyClientName`", Device=`"$embyDeviceName`", DeviceId=`"$embyDeviceId`", Version=`"$embyApplicationVersion`""} Write-Verbose ("authUrl={0},Username={1},sha1Pass={2},md5Pass={3},params={4}" -f $authUrl, $Username,$sha1Pass,$md5Pass,$postParams) return (Invoke-WebRequest -Uri $authUrl -Method POST -Body $postParams -ContentType "application/json" -Headers $headers) } function Get-EmbyMovieList { [CmdletBinding()] param ($AccessToken) $url = "{0}/Items/UserData?format=json&recursive=true&IncludeItemTypes=Movie" -f $embyServerUrl $embyHeaderWithAccessToken = @{"X-MediaBrowser-Token"=$user.AccessToken} Write-Verbose ("authUrl={0},Header={1}" -f $url, $embyHeaderWithAccessToken) return (Invoke-WebRequest -Uri $url -Method GET -ContentType "application/json" -Headers $embyHeaderWithAccessToken) } function Write-Feedback() { param ( [Parameter(Position=0,ValueFromPipeline=$true)] [string]$msg, [string]$BackgroundColor = "Yellow", [string]$ForegroundColor = "Black" ) Write-Host -BackgroundColor $BackgroundColor -ForegroundColor $ForegroundColor $msg; $msg | Out-File "c:\Users\kodi-client\Desktop\movielist.json"; # <<< or add a param to location } $authResult = Get-EmbyAccessToken -Username $embyUsername -Password $embyPassword $user = $authResult.Content | ConvertFrom-Json $userAccessToken = $user.AccessToken $movieList = Get-EmbyMovieList -AccessToken $userAccessToken Write-Feedback $movieList #Write-Host ($movieList)
-
I'm on the beta, and every time I apt-get upgrade the api changes. This is a huge annoyance as I use the Ombi requests system that relys on the api. any idea why this is?
-
Hi guys, Is there a way to get access to the Live TV EPG via the API? I couldn't see anything in the wiki, I can get information on the currently playing item via .NowPlayingItem but want to have the ability for users of my software (https://github.com/spitefulgod/EmbyVision) to find out what's coming up or search.
-
Guys I'm getting the following error when connecting into to Emby Connect and sending remote control commands to a client, the connection to the server is fine, I can pull details and query the server fine. It works if a direct connection is used (direct to the server not via emby connect) but shows the following error otherwise...... What have a missed? BTW the client is returned from the with the Sessions API with the ControllableByUserId set, so I know I should be able to control it. Sorry I don't have the code here it seemed redundant without the variables, but I connect to emby get a list of server, connect to a server, get the exchange token, get a list of client, get a full list of media, all fine, but then the play to command on the connected client (in this case Edge or Emby Theratre) and the above error occurs. Again it works if I connect to the server directly and not through emby connect.
-
Hi all, I want to get the information on a specific client via the HTTP account, I use /sessions/ to get a list of all clients but how do I just get a specific client, I've tried /Sessions/{2429....} and Sessions/?{3422...} but they don't seem to work.... Does anyone have any ideas? Is it even possible?
-
Hey guys, I'm adding support for Emby into Ombi! (Both names go quite well together). After looking at the api I think I understand it but I just want to validate with you guys. So I need to get all of the media on the server with the information, the only way I have found to do this is to get the Administrator user ( /users where Policy.IsAdministrator = true). Then call the following users/AdminUserId/items?Recursive=true&IncludeItemTypes=Movie The reason using the administrator user id is that they should always be able to see everything? Is this a good way to approach this? If there is a better way it would be excellent to know! Thanks!
-
Hi everyone, I'm updating a new Statistics plugin and needed some advice from developers. I have my configurationpage running but I would like to add a new page so a user can navigate between page A and B Probably I need the ApiClient for that, but can't figure out if there is a function for that. Also looking at other plugins didn't help me or seaching in the IApiClient in Emby.Server repo. Can someone tell me if this is possible and if so how? Thanks
-
I've learned that TMDB now uses profile configuration to choose priority and fallback of metadata language being returned, when API is used. So, I'd like to ask you to, just like seen in FanArt, allow us to choose our own TMDB api key to be used... that would be a little more help to foreign users like me. Thanks
-
Hi! I find myself having to re-create libraries quite often (I frequently re-image my server, for instance), and it's a bit painful having to add libraries manually each time. I found the (swagger) docs for api calls that I could make via (eg.) curl here (localhost): http://localhost:8096/swagger-ui/index.html but it doesn't seem to include a call to create/add a new library. Is that possible? I'm hoping for something like: curl -H "token:abcdef" -X POST -F 'name=videos' -F 'real_time_monitoring=true' http://localhost:8096/CreateLibrary but obviously happy with anything that allows me to create libraries programmatically! Thanks, Mike
-
I have a guest account which I want to block some TV shows with tags ("Parental Control/Block contents with tags"), when I do so, the user can't see the show on "TV Shows/Shows" tab, but the same user can see episodes from the restricted ones on "Home/Latest Media", "TV Shows/Latest Episodes" and "TV Shows/Upcoming" and if he clicks on one of those episodes, he can see all seasons and episodes. It happens on "app.emby.media", "tv.emby.media" and iOS. On my Android TV it seems normal... I have the server's last version (3.0.5882.0), but it was the same before this one... Actually, I think this started on the database refactor version. I don't have the same issue with movies...
- 18 replies
-
- parental control
- content
- (and 6 more)
-
HI All, I'm not sure that this is possible but I've noticed that 3rd party clients can notify Emby of new TV Episodes or Movies that need to be added to the library. This allows for the individual item to be scanned rather than a whole library refresh. This can be seen in the Sonarr application public void Update(MediaBrowserSettings settings, int tvdbId) { var path = string.Format("/Library/Series/Updated?tvdbid={0}", tvdbId); var request = BuildRequest(path, settings); ProcessRequest(request, settings); } I would like for the same to be available for music albums. Ideally having a Musicbrainz Release ID passed to the endpoint that will then only require the Album to be indexed rather than a full library update. This is currently how the beets accomplishes it: # Trigger the Update. url = api_url(host, port, '/Library/Refresh') r = requests.post(url, headers=headers) if r.status_code != 204: self._log.warning(u'Update could not be triggered') else: self._log.info(u'Update triggered.') If this is not possible, then no worries it would just save a lot of time and resources from the server point of view. Cheers, Llygoden
-
Hi all, I use flexget to download my media! I would like to force Emby to update the library every time that flexget add's a new file! Is this possible? Who can I do this? I searched for API library update but could't find any info, Thank you all