Modular video URL resolving addon?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
anarchintosh Offline
Senior Member
Posts: 279
Joined: Jul 2010
Reputation: 4
Post: #16
ah ok, i was thinking what we were working on was the master handler...
that makes a bit more sense.
find quote
anarchintosh Offline
Senior Member
Posts: 279
Joined: Jul 2010
Reputation: 4
Post: #17
update: wrote the init.py

https://github.com/icefilms-xbmc/videour..._init__.py

is it possible you could move your coding to github? they also have a webinterface for editing text documents like the .py files.
if you have a way to chat (skype or jabber or irc or something) please pm me
(This post was last modified: 2011-03-01 13:05 by anarchintosh.)
find quote
Temhil Offline
Skilled Python Coder
Posts: 397
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #18
Unbehagen Wrote:Hi all,
recently there have been a lot of video streaming plugins that all have to deal with resolving the streamable video URL individually. The most annoying things here are probably one-click-hosting services and youtube-like streaming websites that are a pain to program and debug. If we created one modular addon just for unifying these efforts, it would be much easier to create content plugins for websites distributing their media files using these services.

It should work something like in the youtube plugin:
Code:
url = "plugin://plugin.video.youtube/?path=/root/search&action=play_video&videoid=SOMEID"
, but support a variety of services along with user/premium accounts.

The services that are currently working in other plugins that I know of are: Hotfile, Rapidshare, Megaupload, Youtube, Filesonic. There are probably many more. What do you think?

Just to be sure i fully undertsand your idea: you want to create a library allowing to resolve video URL from main well knowed video hosting websites such as Rapidshare, megavideo, megashare, hotfile, youtube, etc.

Correct?

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
anarchintosh Offline
Senior Member
Posts: 279
Joined: Jul 2010
Reputation: 4
Post: #19
@temhil

thats the plan Wink

we've made a fair bit of progress.
https://github.com/icefilms-xbmc/videour...ver-module


its being written as a module and so that all the stuff to do with one hoster is contained within a single .py , to make it easy for people to add more resolvers.

want to help out?
(This post was last modified: 2011-03-02 23:22 by anarchintosh.)
find quote
anarchintosh Offline
Senior Member
Posts: 279
Joined: Jul 2010
Reputation: 4
Post: #20
new stuff:
added nice new megaup and megavid resolvers, that also work for their adult equivalents.

sorry to keep bumping this thread
find quote
queeup Offline
Posting Freak
Posts: 765
Joined: Feb 2009
Reputation: 16
Post: #21
Bump it Smile I am follow your progress... I am thinking about write greasemonkey script for this resolver. We can add play with xbmc button for websites. Like this youtube button on my download list: http://code.google.com/p/queeup/downloads/list
(This post was last modified: 2011-03-04 09:20 by queeup.)
find quote
anarchintosh Offline
Senior Member
Posts: 279
Joined: Jul 2010
Reputation: 4
Post: #22
sounds like a neat idea queeup.

i've also discovered that http://pyload.org/ and http://www.tucaneando.com/ have python url resolving routines that it might be possible to rip from their source code to expand this module (unless their code has mad dependencies). its also feasible to attempt porting some stuff from jd source.

i suppose what we are going to focus on is getting the structure of the plugin neatly done and well written, so that its as easy as possible for people to add their own resolver to it. then people won't depend on us for maintaining the resolvers.
find quote
daledude Offline
Member
Posts: 67
Joined: Oct 2009
Reputation: 0
Post: #23
This is an awesome idea. I hope to use it, and contribute, for my greader streamer.

I think the public interface (FileHostModule) is a bit confusing as it is now. Filter, resolve, valid, isonline seem a bit redundant. I'll post something more meaningful later.

Excellent stuff.
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 347
Joined: Jul 2007
Reputation: 4
Location: Bremen, Germany
Post: #24
the idea is that isValid checks if the link "looks" like a URL for that file host - this doesn't take any time or bandwidth as it just checks agains the RE pattern. This method can be used by the master handler to determine the plugin to use to resolve that URL. FilterValidURLs can be used to do this for multiple URLs. Resolve actually spits out a streamable URL. I think all the methods are useful, maybe it's just the names that are a bit confusing.

Edit: That said, I didn't want to scare you into thinking you can't come up with something that is a lot smarter. I never wrote python interfaces before, so feel free to contribute anything you like! Just wanted to explain why I did what I did there.
(This post was last modified: 2011-03-08 04:17 by Unbehagen.)
find quote
kalel90 Offline
Junior Member
Posts: 16
Joined: Mar 2011
Reputation: 0
Post: #25
You guys should definitely start on fileserve and filesonic support after you get megavideo/megaupload working. By just supporting those 3 you will have 90% of the video on the web supported for streaming which would be pretty amazing.

Also i may not be able to code but if you guys would like me to whip up some improved filehost icons for i can do that.
(This post was last modified: 2011-03-13 07:42 by kalel90.)
find quote
kalel90 Offline
Junior Member
Posts: 16
Joined: Mar 2011
Reputation: 0
Post: #26
I went ahead and made some logos up for you guys to use if you want but you don't have to. I tried to keep them minimal and all similar looking but still retain their original colors so people could easily differentiate them from one another.

Megaupload-
[Image: 11wdoog.jpg]

Hotfile-
[Image: 2qdbcki.jpg]

Fileserve-
[Image: 5nnl1c.jpg]

Filesonic-
[Image: etteaf.jpg]
find quote
Unbehagen Offline
Skilled Python Coder
Posts: 347
Joined: Jul 2007
Reputation: 4
Location: Bremen, Germany
Post: #27
oh hey, thanks for the logos. Unfortunately I won't have time to work on the add-on during the next two weeks. I will put them in when I return.
find quote
anarchintosh Offline
Senior Member
Posts: 279
Joined: Jul 2010
Reputation: 4
Post: #28
kalel90 Wrote:I went ahead and made some logos up for you guys to use if you want but you don't have to. I tried to keep them minimal and all similar looking but still retain their original colors so people could easily differentiate them from one another.

nice, could you make some more to replace the ones i made originally?
they are in https://github.com/icefilms-xbmc/videour...lver_icons
find quote
kalel90 Offline
Junior Member
Posts: 16
Joined: Mar 2011
Reputation: 0
Post: #29
Ok these should round off the ones your already have in the repo.

Megavideo-
[Image: 2z826hu.jpg]

Megaporn-
[Image: 2ivbb61.jpg]

Megaporn videos-
[Image: 2w3ro7b.jpg]

2shared-
[Image: 2lw0fa.jpg]
find quote
Robotica Offline
Posting Freak
Posts: 1,202
Joined: Aug 2010
Reputation: 5
Post: #30
This would be great for XBMC!

Some clear thoughts about this: http://forum.xbmc.org/showpost.php?p=752417&postcount=3
find quote