FAQ  •  Register  •  Login

serviidb.com

<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Thu Apr 12, 2012 4:18 pm

Re: serviidb.com

OK I will setup another response type with those fields.
what should we call it?
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Apr 12, 2012 4:22 pm

Re: serviidb.com

Something like /api/templates or /api/url-templates should be fine for now.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Thu Apr 12, 2012 4:25 pm

Re: serviidb.com

will wrote:Something like /api/templates or /api/url-templates should be fine for now.


will go with the api/templates

I am starting on the API documentation now, so I can put it all in there. I am also thinking about setting up a version control on the api, so I can make changes and the clients can pick what version they want to use, but I will probably only maintain the latest version.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Apr 12, 2012 5:00 pm

Re: serviidb.com

Could you also add a 'name' which will be used for displaying the available templates in a list e.g. 4oD, YouTube search term, Picasa etc...

Versioning could work, if it is not too much of a pain, although there probably won't be too many changes after release.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Apr 13, 2012 9:24 am

Re: serviidb.com

One other thing, would it be a pain to have a /api/media (or similar) that searches images, audio and video?
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Fri Apr 13, 2012 10:58 am

Re: serviidb.com

no, it would not be a problem.

Sent from my DROID RAZR using Tapatalk 2
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Apr 13, 2012 11:12 am

Re: serviidb.com

Ok thanks, I want to have a 'simple mode' which searchs for any media type with any region against the plugin name or the media title, and then advanced mode which allows you to refine by media type, region, and search just title or just plugin name.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Fri Apr 13, 2012 3:45 pm

Re: serviidb.com

I understand and will call it "media".

I will try and get media and template resources setup tonight.

In the future if I add a variable being returned by the API will that affect your code, or will it be ignored until you decide to start using it.

Also on the feedback to serviidb on what is "Installed into serviio" besides client, and nid (unique id of item) do you think anything else would be beneficial to send back to serviidb.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Apr 13, 2012 3:55 pm

Re: serviidb.com

If you add something to the response, I just won't see it, so it is fine for you to add stuff. The only thing to look out for is you expecting additional parameters for me sending stuff back, as they won't be present.

Re-installed I cannot think of anything else. Although if you want to make serviidb use ratings and installs, then you could always add that to the api, so you get title, url, plugin, resourceType, installCount, rating.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Fri Apr 13, 2012 4:06 pm

Re: serviidb.com

I am currently just thinking about a way we can see what client is installing what items. That lets me make sure I can support the load in the future, and allows me to show the installCount of the media resouces.

Plus I will be able to give you and the other Dev's how often and how their clients are being used to add plugins, and media resources.

The information back would be in a restful put format.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Apr 13, 2012 5:38 pm

Re: serviidb.com

Remember, you will need to add an extra filed to the item response called mediaType=[video|audio|image] so that you can have the combined /api/media, but proably best to add it to /video etc.. for consistancy as well. Also I assume there will need to be a thumbnailUrl for live streams?

The bandwidth required won't be that much from the API so you shouldn't have a problem for a while.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Fri Apr 13, 2012 6:18 pm

Re: serviidb.com

Extra filed? Sorry short on phone

Sent from my DROID RAZR using Tapatalk 2
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Apr 13, 2012 6:21 pm

Re: serviidb.com

At the moment /api/video gives {"resource":"video".......,"items":[...]}, for each item, there is no mention that it is a video, which is fine for /video /image /audio, but won't be fine for a combined /media.

E.g. you will need {"show":"Blip TV Photoshop Users TV","region":"UK","url":"http:\/\/blip.tv\/photoshop-user-tv\/rss","resourceType":"RSS Atom feed","plugin":"Blip TV", "mediaType":"video"}
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Fri Apr 13, 2012 6:40 pm

Re: serviidb.com

ok easy to add

Sent from my DROID RAZR using Tapatalk 2
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Apr 14, 2012 1:16 pm

Re: serviidb.com

Made some good progress this morning. The API seems pretty responsive (much more than when loading the website). I guess the items are comming out in the order they were added in to the databaase, if it is easier to do it at your end, then it might be nice to sort them a bit first.

I think you should definately add installCount and rating to the response, maybe even add the extra info such as resolution, category and langues as well. If you later extend the API, i can let people rate a show via the app.

This is what I have so far, obviously the UI needs sorting out properly (missing text and sizing in general), and I need buttons to add to library, but I think it should work really well.
Attachments
serviidb.png
serviidb.png (36.58 KiB) Viewed 12015 times
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Apr 14, 2012 3:10 pm

Re: serviidb.com

The API gives a Task XXX not found error if you run a search which doesn't match any items e.g. http://serviidb.com/apidev/video.json?title=hello Can you fix that please?
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Sat Apr 14, 2012 4:47 pm

Re: serviidb.com

will wrote:The API gives a Task XXX not found error if you run a search which doesn't match any items e.g. http://serviidb.com/apidev/video.json?title=hello Can you fix that please?



Yes, I can do you want it to send an empty list or just a completion code?

Right now I am not sending the ratings from serviidb via the API do you want me to add that field?

I did not read your full post was looking at the graphics on how you had it set up. I will return everything, about the media resource. Resolution, language, both ratings,
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Apr 14, 2012 4:59 pm

Re: serviidb.com

moltra wrote:Yes, I can do you want it to send an empty list or just a completion code?

Right now I am not sending the ratings from serviidb via the API do you want me to add that field?

I did not read your full post was looking at the graphics on how you had it set up. I will return everything, about the media resource. Resolution, language, both ratings,


It should be a propper response, with totalSize set to 0 and an empty items list.

Yes I think you might as well send it all, it isn't very bandwith heavy, and its easy enough to parse. You can always remove it later as long as you give me a bit of warning to update the app.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Sat Apr 14, 2012 5:02 pm

Re: serviidb.com

I can also return these codes.

    OK = 200,
    CREATED = 201,
    NOCONTENT = 204,
    MOVEDPERMANENTLY = 301,
    FOUND = 302,
    SEEOTHER = 303,
    NOTMODIFIED = 304,
    TEMPORARYREDIRECT = 307,
    BADREQUEST = 400,
    UNAUTHORIZED = 401,
    FORBIDDEN = 403,
    NOTFOUND = 404,
    METHODNOTALLOWED = 405,
    NOTACCEPTABLE = 406,
    GONE = 410,
    LENGTHREQUIRED = 411,
    PRECONDITIONFAILED = 412,
    UNSUPPORTEDMEDIATYPE = 415,
    INTERNALSERVERERROR = 500;
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Apr 14, 2012 7:10 pm

Re: serviidb.com

moltra wrote:I can also return these codes.

    OK = 200,
    CREATED = 201,
    NOCONTENT = 204,
    MOVEDPERMANENTLY = 301,
    FOUND = 302,
    SEEOTHER = 303,
    NOTMODIFIED = 304,
    TEMPORARYREDIRECT = 307,
    BADREQUEST = 400,
    UNAUTHORIZED = 401,
    FORBIDDEN = 403,
    NOTFOUND = 404,
    METHODNOTALLOWED = 405,
    NOTACCEPTABLE = 406,
    GONE = 410,
    LENGTHREQUIRED = 411,
    PRECONDITIONFAILED = 412,
    UNSUPPORTEDMEDIATYPE = 415,
    INTERNALSERVERERROR = 500;

Those should be used for the HTTP response status codes. usually 200 for any OK response, 400 if the API call is not valid and possibly 404 if you have API call to retrieve something by its ID.
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 11 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.