FAQ  •  Register  •  Login

serviidb.com

<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Apr 17, 2012 6:22 pm

Re: serviidb.com

ok I cannot test the put here at work, I can test the GET in Internet explorer.

What is the command you are using?
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
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Apr 17, 2012 6:25 pm

Re: serviidb.com

I added an echo to print out the sql statement. try it via push and post the sql statement.
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
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Apr 17, 2012 6:33 pm

Re: serviidb.com

I might have found the problem on my end, I copied the database connections information from the GET function to the PUT function.

I would bet that is the problem.
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
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Apr 17, 2012 7:12 pm

Re: serviidb.com

If someone knows how to test a restful web service PUT command please test the address below and if there is any error please post them here.

  Code:
PUT http://serviidb.com/api/update?client=generic&nid=777
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 Tue Apr 17, 2012 7:15 pm

Re: serviidb.com

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 Tue Apr 17, 2012 7:17 pm

Re: serviidb.com

INSERT INTO api_install(`client`, `nid`) values ("will", "777")
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 Tue Apr 17, 2012 7:19 pm

Re: serviidb.com

I have been looking for a link like that for weeks.

Thanks
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 Tue Apr 17, 2012 7:21 pm

Re: serviidb.com

Working now, also works from ServiiDroid now.
Time to clean that table :-)

Any reason the titleorplugin isn't working?
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 Tue Apr 17, 2012 7:22 pm

Re: serviidb.com

for what request?
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 Tue Apr 17, 2012 7:25 pm

Re: serviidb.com

I meant clean the install count table.

Using media.json?titleorplugin=the returns more than it should.

Same for video, haven't tried audio or image.
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 Tue Apr 17, 2012 7:30 pm

Re: serviidb.com

I tried

  Code:
http://serviidb.com/api/media?client=moltraTEST&titleOrPlugin=the&num=0


and got back

  Code:
{
    "resource": "media",
    "requestedSize": 8,
    "totalSize": 8,
    "items": [
        {
            "name": "Italian tomorrow weather",
            "region": "Worldwide",
            "url": "http://media.ilmeteo.it/video/domani-tg.mp4",
            "mediaType": "Video",
            "resourceType": null,
            "plugin": "None",
            "language": "Italian",
            "nid": "124"
        },
        {
            "name": "The Big C",
            "region": "UK",
            "url": "http://www.channel4.com/programmes/the-big-c/4od",
            "mediaType": "Video",
            "resourceType": "Web Resource",
            "plugin": "4oD (UK)",
            "language": "English",
            "nid": "66"
        },
        {
            "name": "The Cleveland Show",
            "region": "UK",
            "url": "http://www.channel4.com/programmes/the-cleveland-show/4od",
            "mediaType": "Video",
            "resourceType": "Web Resource",
            "plugin": "4oD (UK)",
            "language": "English",
            "nid": "52"
        },
        {
            "name": "The Good Wife",
            "region": "UK",
            "url": "http://www.channel4.com/programmes/the-good-wife/4od",
            "mediaType": "Video",
            "resourceType": "Web Resource",
            "plugin": "4oD (UK)",
            "language": "English",
            "nid": "59"
        },
        {
            "name": "The Hotel",
            "region": "UK",
            "url": "http://www.channel4.com/programmes/the-hotel/4od",
            "mediaType": "Video",
            "resourceType": "Web Resource",
            "plugin": "4oD (UK)",
            "language": "English",
            "nid": "60"
        },
        {
            "name": "The Inbetweeners",
            "region": "UK",
            "url": "http://www.channel4.com/programmes/the-inbetweeners/4od",
            "mediaType": "Video",
            "resourceType": "Web Resource",
            "plugin": "4oD (UK)",
            "language": "English",
            "nid": "65"
        },
        {
            "name": "The IT Crowd",
            "region": "UK",
            "url": "http://www.channel4.com/programmes/the-it-crowd/4od",
            "mediaType": "Video",
            "resourceType": "Web Resource",
            "plugin": "4oD (UK)",
            "language": "English",
            "nid": "84"
        },
        {
            "name": "The Joy of Teen Sex",
            "region": "UK",
            "url": "http://www.channel4.com/programmes/the-joy-of-teen-sex/4od",
            "mediaType": "Video",
            "resourceType": "Web Resource",
            "plugin": "4oD (UK)",
            "language": "English",
            "nid": "87"
        }
    ]
}


What is wrong with that response?
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 Tue Apr 17, 2012 7:34 pm

Re: serviidb.com

Ah you changed it, it was titleorplugin, now it is titleOrPlugin

I'll update the code.
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 Tue Apr 17, 2012 7:35 pm

Re: serviidb.com

will wrote:Ah you changed it, it was titleorplugin, now it is titleOrPlugin

I'll update the code.



Sorry I noticed that it was not following the variable naming we had decided on so I changed 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
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Apr 17, 2012 7:37 pm

Re: serviidb.com

do a search with client, format, title, region, language, and plugin in it, I want to make sure that the search terms are getting logged properly.
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 Tue Apr 17, 2012 7:41 pm

Re: serviidb.com

Format?
I'm on my phone so it will just be me typing it into the browser.
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 Tue Apr 17, 2012 7:42 pm

Re: serviidb.com

will wrote:Format?
I'm on my phone so it will just be me typing it into the browser.


that is ok then, I know how that is lol.
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 Tue Apr 17, 2012 7:47 pm

Re: serviidb.com

OK, I'll do a few final tests and hopefully release the update to the app tomorrow morning.
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 Tue Apr 17, 2012 7:49 pm

Re: serviidb.com

will wrote:OK, I'll do a few final tests and hopefully release the update to the app tomorrow morning.



sounds good to me, I hope that there is not to many bugs in the API.
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 Wed Apr 18, 2012 7:48 am

Re: serviidb.com

Well even if there are a few problems, most can be fixed behind the sences without changing any of the parts of the API. Worst case we will need to add things, but that won't break clients.

When submitting content what is Media ID for? Also the thumbnail is a bit strage
Files must be less than 32 MB.
Allowed file types: png gif jpg jpeg.
Images must be smaller than 160x120 pixels.

Maybe support either uploading to the site, or just providing a url.

I've uploaded the update, obviously what you work on is up to you, but my suggestion would be
1. add the missing parts to the Create Media Resource page (live stream, extra languages?) to help with getting content added
2. Work out how to do /api/regions and /api/languages so that I can fetch a list of available regions and languages
3. Add the remaining fields to the response
4. Templates
Will

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

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Apr 18, 2012 11:10 am

Re: serviidb.com

Created a news article on serviio.org and Facebook page. Hopefully we will get some traction now. Good work everyone.

BTW, do you have an API for people to cast votes on the stream quality (in terms of if it's live)?
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 10 guests

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