Board index   FAQ   Search  
  Login

PLEASE VISIT OUR NEW FORUMS FOR FUTURE POSTING. THIS FORUM REMAINS ONLINE FOR ARCHIVE PURPOSES ONLY.

Board index <dev>GENERAL</dev>

hawke663's API

This is or all devs of all types. For devs, by devs.

Re: hawke663's API

Postby Bstrdsmkr » Thu Feb 09, 2012 5:49 pm

Maybe a bit of a pipedream, but what about crowdsourcing the file info? Here's what I'm thinking (spur of the moment):

1. On your end, you have a callable api that addon authors can use to set information about the file in the database.
2. On the addon side, when we start streaming the file, if the file information isn't already present, we call the api and pass info back about the file (since we have to access it to stream it anyway).

That way once the first person tries that link, the database gets updated with the information and all subsequent users are sent the information and know not to bother passing the information back upstream

Like I said, haven't thought it through or anything, but figured I'd share the idea and see what people think
Bstrdsmkr
XBMC HUB TEAM
 
Posts: 1876
Joined: Mon Jan 16, 2012 10:30 pm

Re: hawke663's API

Postby hawke663 » Thu Feb 09, 2012 5:57 pm

so the first person who calls the link, will start streaming the file, but on loading it, it will send the info to tha api to be stored ion the db, i.e file type bitrate etc, when another user selects that file the addon sees it already has the results and has no need to grab the info and add it to db so it bypasses that function.
is that kinda along the lines you were thinking?
hawke663
 
Posts: 22
Joined: Sun Feb 05, 2012 7:29 pm

Re: hawke663's API

Postby rogerthis » Thu Feb 09, 2012 6:15 pm

Just can across this http://www.rapidleech.com not sure if you could use it or not
What is Rapidleech?
Rapid Leech is a free server transfer script for use on various popular upload/download sites such as megaupload.com, Rapidshare.com and more than 45 others. The famous Rapidleech script transfers files from Rapidshare, Megaupload, Depositfiles.com, Easy-share.com, etc, via your fast servers connection speed and dumps the file on your server. You may then download these files from your server anytime later.


Looks like it has streaming capabilities. Their forum has php scripts for accessing hosting sites. Should be worth a look.
User avatar
rogerthis
DEV
 
Posts: 216
Joined: Wed Jan 04, 2012 1:24 pm
Location: Connacht

Re: hawke663's API

Postby Bstrdsmkr » Thu Feb 09, 2012 6:26 pm

hawke663 wrote:so the first person who calls the link, will start streaming the file, but on loading it, it will send the info to tha api to be stored ion the db, i.e file type bitrate etc, when another user selects that file the addon sees it already has the results and has no need to grab the info and add it to db so it bypasses that function.
is that kinda along the lines you were thinking?


Exactly. The server sends the file information along with the other info if it has it. If the addon didn't receive file information (ie, the fields are blank), it sends the info back to the server. Then when the next person pulls down the link info, they receive file info (because the first person's addon contributed it) and they know there's no reason to submit it (unless the info they get from the file is different from what the server sent).

Of course, there's not a way to enforce this contribution, but I know I would.
Bstrdsmkr
XBMC HUB TEAM
 
Posts: 1876
Joined: Mon Jan 16, 2012 10:30 pm

Re: hawke663's API

Postby hawke663 » Thu Feb 09, 2012 7:26 pm

@roger not to keen on rapidleech, plus it would mean downloading the files to my server = bandwidth etc.

@Bstrdsmkr, if you can let me know what info the addon would send back i can add it to the script, i assume this would be a per "link" information and not per movie or both

hawke
hawke663
 
Posts: 22
Joined: Sun Feb 05, 2012 7:29 pm

Re: hawke663's API

Postby rogerthis » Thu Feb 09, 2012 8:05 pm

hawke663 wrote:@roger not to keen on rapidleech, plus it would mean downloading the files to my server = bandwidth etc.


Yeah, I understand about bandwidth, but would there be anyway to use services without it going through your server for bandwidth. ie use the resolvers that have been implemented into rapidleech, but put the traffic from point to point?
User avatar
rogerthis
DEV
 
Posts: 216
Joined: Wed Jan 04, 2012 1:24 pm
Location: Connacht

Re: hawke663's API

Postby hawke663 » Thu Feb 09, 2012 8:05 pm

ok have added the api for listing of links/sources, let me know if theres any other information required for it.

example for "pirates carribbean 2011" (movie id 273)
Code: Select all
http://xbmchub.streamible.co.uk/api/xml/sources/273


or json
Code: Select all
http://xbmchub.streamible.co.uk/api/json/sources/273


Ive added the providers favicon to the list as well, in case you want to show it in the dialogs.

Hawke
Last edited by hawke663 on Thu Feb 09, 2012 8:11 pm, edited 1 time in total.
hawke663
 
Posts: 22
Joined: Sun Feb 05, 2012 7:29 pm

Re: hawke663's API

Postby hawke663 » Thu Feb 09, 2012 8:07 pm

@roger most of the hosts use the ip for creating the links, so if i used the resolvers it would be based on the servers ip and not the actual user who would be streaming the file, and they would get a 404/403 sadly

Hawke
hawke663
 
Posts: 22
Joined: Sun Feb 05, 2012 7:29 pm

Re: hawke663's API

Postby Bstrdsmkr » Thu Feb 09, 2012 8:08 pm

hawke663 wrote:@roger not to keen on rapidleech, plus it would mean downloading the files to my server = bandwidth etc.

@Bstrdsmkr, if you can let me know what info the addon would send back i can add it to the script, i assume this would be a per "link" information and not per movie or both

hawke


Right, per link. It'd be cool to track as many file attributes as possible. Looking at the xbmc wiki, here's some that would be handy for video files:

File name (as opposed to complete url)
File Extension
Size
Duration
Video Codec
Video Bitrate
Resolution
Audio Codec
Audio Channels
Audio Languages
Audio Bitrate
Subtitle Languages
Bstrdsmkr
XBMC HUB TEAM
 
Posts: 1876
Joined: Mon Jan 16, 2012 10:30 pm

Re: hawke663's API

Postby hawke663 » Thu Feb 09, 2012 8:13 pm

and just to clarify, the "plugin" would send these to the api? if thats the case it shouldnt be a problem,

Hawke
hawke663
 
Posts: 22
Joined: Sun Feb 05, 2012 7:29 pm

PreviousNext

Return to <dev>GENERAL</dev>



Who is online

Users browsing this forum: No registered users and 1 guest