Jump to content


Photo

Emby Beta Releases Github API Path


  • Please log in to reply
13 replies to this topic

#1 ssg99si OFFLINE  

ssg99si

    Member

  • Members
  • 18 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 12:35 PM

Hello,

 

So there's an API path on Github for Emby stable releases:

 

https://api.github.c...releases/latest

 

However there isn't one for the beta releases, only this page:

 

https://github.com/M...leases/releases

 

Can we get the same sort of API for beta releases?

 

Thanks



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 12:39 PM

Yes you can use the same api for beta releases.



#3 ssg99si OFFLINE  

ssg99si

    Member

  • Members
  • 18 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 12:45 PM

Hmm.. I do not see how. Is there any documentation or could you point me in the right direction?



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 01:14 PM

Have you explored the prerelease property?



#5 ssg99si OFFLINE  

ssg99si

    Member

  • Members
  • 18 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 01:21 PM

I am not sure how to do that, could you link me to it please?



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 01:23 PM

https://developer.gi...repos/releases/



#7 ssg99si OFFLINE  

ssg99si

    Member

  • Members
  • 18 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 01:28 PM

I'm not sure that help me much. I am looking for a link similar to this:

 

https://api.github.c...releases/latest

 

But for the beta/pre-releases



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 01:29 PM

There is no such thing.



#9 ssg99si OFFLINE  

ssg99si

    Member

  • Members
  • 18 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 01:32 PM

Would something like that be possible to add? Or do you know if an auto-update for emby beta is coming?



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 01:33 PM

There's nothing to add because we use the github api. We use whatever that has available.

 

We currently only have auto-update on windows, but may investigate it for other platforms in the future. thanks.



#11 samuelqwe OFFLINE  

samuelqwe

    Advanced Member

  • Members
  • 122 posts
  • Local time: 09:11 PM
  • LocationEarth, Milky Way

Posted 07 December 2018 - 02:11 PM

Something like this?

 

https://api.github.c...leases/releases

 

This one should have all the releases, not just the stable versions


Edited by samuelqwe, 07 December 2018 - 02:12 PM.


#12 ssg99si OFFLINE  

ssg99si

    Member

  • Members
  • 18 posts
  • Local time: 10:11 PM

Posted 07 December 2018 - 02:13 PM

Yes that is perfect, thanks!



#13 doonze OFFLINE  

doonze

    Advanced Member

  • Members
  • 119 posts
  • Local time: 09:11 PM
  • LocationArkansas

Posted 07 December 2018 - 04:07 PM

Yes, that works for getting beta. Just a word to the wise, that json is nestled on it's root layer. With python at least, that causes it's json reader to make the results a list of objects instead of a true dictionary. A list of dictionaries. So you have to access the nestled parts like a list, then access the data like a dictionary. Took me forever to figure out what it was doing.

I'll have beta added to my linux autoupdater tonight, my brain is melted from list of dictionaries and I need sleep before coding anything! LOL

#14 doonze OFFLINE  

doonze

    Advanced Member

  • Members
  • 119 posts
  • Local time: 09:11 PM
  • LocationArkansas

Posted 08 December 2018 - 05:38 AM

EmbyUpdate v1.1 released with beta installing options.

 

Github json isn't my favorite. On the linked /release API path above it puts whatever the most recent release is (beta or stable) into index 0, and moves the last release to index 1. So I had to create logic to run through the json (array in python) to find the most recent beta or stable release, and use that according to what the user specified they wanted.

 

There is some weirdness where the newest beta releases are showing up in the API, however they are not listed as releases on Github. I'll have to ask Luke about that in my own thread. 

 

Just passing this on for anyone who finds this thread later and wants to save some time figuring out the Github API.  






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users