PDA

View Full Version : Plugin development question...


inercia
October 3rd, 2008, 02:34 PM
Hi guys,

I have developed a plugin for listing all the shows available in tvrss.net, then select the episode you want and download it (by using the rtorrent server). However, when selecting the episode, I get the "Play" and "Info" buttons, but I would like to show "Download" instead of "Play"...

I have used addContextMenuItems() like this:

ok = True
liz = xbmcgui.ListItem (name, iconImage = "DefaultFolder.png", thumbnailImage = thumbnail)

info = {}
info["Title"] = name
info["URL"] = url
liz.setInfo (type = "video", infoLabels = info )

try:
# set context menu items
full_url = sys.argv[0] + \
"?url=" + urllib.quote_plus (url) + \
"&mode=" + str (mode) + \
"&name=" + urllib.quote_plus (name)

down_action = "XBMC.RunPlugin(%s)" % full_url
listitem.addContextMenuItems( [ ( xbmc.getLocalizedString( 30900 ), down_action,)])
except:
pass

ok = xbmcplugin.addDirectoryItem (handle = int(sys.argv[1]), \
url = full_url, \
listitem = liz, \
isFolder = True)

...but it doesn't work. As you guys have developed the rss source plugin (?), and it does right this ("Download" instead of "Play"), maybe you could tell me how to do it...

Thanks!

vulkan
October 3rd, 2008, 06:02 PM
try giving the files a torrent:// prefix (replace the http:// with torrent://).

-vulkan.

inercia
October 5th, 2008, 02:01 PM
It works! Thanks.

inercia
October 5th, 2008, 02:10 PM
By the way, maybe you should add a "plugins" or "addons" section in the web page. I guess my plugin is specific to boxee and it will not work in a standard xbmc, and maybe this will happen the same with other plugins in the future...

avneron
October 5th, 2008, 06:50 PM
100% agree. we need to make it easy for people not only to develop plug-ins, but also to make it easy for users to find and install them.

cougar
October 6th, 2008, 09:21 AM
This plugin it's very interesting, now you only can add global feeds from tvrss but when you try to add a complex search like rss://tvrss.net/search/index.php?show_name=Anything&show_name_exact=true&mode=rss the boxee's rss reader fails :(

dyrhus
October 6th, 2008, 08:07 PM
Where can I find this plugin?

RobertBasil
October 8th, 2008, 03:46 PM
I agree, where can I find the plugin?

johninsj
October 9th, 2008, 03:41 PM
It was an interesting idea... the torrents are all hosted at various, er, interesting sites. Not sure that the content itself is 100% legal, as its all copyrighted material (ie, tv shows)

Still, I admit after seeing this post, I did set up some rss feeds myself to snag a few interesting shows that my own PVR can only capture in SD. Whoever is doing the captures is doing a nice job.

You can build your own rss feed for a show or shows via mininova

http://www.mininova.org/cat/8

If you've got several free gig, you can just let it download overnight...

RobertBasil
October 9th, 2008, 03:45 PM
You can build your own rss feed for a show or shows via mininova

http://www.mininova.org/cat/8

If you've got several free gig, you can just let it download overnight...

A MUCH better place for custom rss feeds is http://www.tvrss.net

johninsj
October 10th, 2008, 08:42 AM
But that's just where they (www.tvrss.net) pull from, unless I am mistaken.

I guess that was my point. I started there and worked backwards to the actual content, and hey presto it was mininova.

Your milage may vary.

OctopusInc
October 11th, 2008, 12:49 PM
I just fell in love with you!

inercia
October 12th, 2008, 06:10 PM
It is available here:

http://inercia.selfip.net/about/software/

but be aware that this is is a beta version...

inercia
October 19th, 2008, 07:18 AM
By the way, is there any way I could set a different view mode from the plugin?

I mean that, if the user has set the "2 colums" view mode for videos, this plugin will also show the list in 2 coulmens, but it is a bit annoying to show a huge list like this. So it would be much better if the plugin could automatically activate the "list" mode...

marcel
October 19th, 2008, 08:24 AM
currently you can not do it automatically but is in the roadmap ..so for now you have to change the view manually .

psifertex
November 16th, 2008, 11:24 AM
FYI, I tried installing this plugin in the UserData/plugins/video directory, but it didn't load.

I then moved it to /Applications/Boxee.app/Contents/Resources/Boxee/plugins/video/XBMCtvrss and it appears to be working.

jhpublic
November 16th, 2008, 01:14 PM
Just installed the plugin and am downloading a high dev XViD video; hopefully it will play! This is a cool plug-in; is there a search function?

jfox
November 18th, 2008, 05:41 PM
so was someone able to add a rss feed to auto pull the torrent so it starts downloading? like does it schedule or allow you to subscrube to a torrent rss feed? or does this just present you with the list of shows and each episode and u manually find it and download it?

agentlame
November 18th, 2008, 05:55 PM
so was someone able to add a rss feed to auto pull the torrent so it starts downloading? like does it schedule or allow you to subscrube to a torrent rss feed? or does this just present you with the list of shows and each episode and u manually find it and download it?

currently, this is not something that boxee supports... it has been requested a few times, so it's likely the developers might add it in a future release.

jfox
November 18th, 2008, 06:14 PM
so it is not possible in a plugin like this?

I went ahead and installed the plugin and got it working, but was just wondering if it had that functionality.

and i was using an app called tvshows with my appletv, just had it running the background. and i had rtorrent running to. the setup worked beautifully. I havent got around to setting it back up since I upgraded to 2.2 on my atv.

so maybe I will just get that running again since boxee already has rtorrent. I can just have it save to boxee's watch folder.

tvshows: http://tvshows.sourceforge.net/index2.html

thanks for the quick reply.

agentlame
November 19th, 2008, 01:17 AM
so it is not possible in a plugin like this?

to my knowledge: boxee/xbmc's python api does not support a level of interaction that would felicitate auto-downloads.

short: no. :(

tokabowla
January 12th, 2009, 08:00 PM
BTW, in Ubuntu, put the XBMCTVRSS folder in /home/"user"/.boxee/Userdata/apps/ folder & edit the thumbnail location in the sources.xml file accordingly.

subvertbeats
January 13th, 2009, 06:06 AM
Any chance of an update to this plugin that allows you to download the torrents to a directory of choice?
Then an external torrent client can monitor and pick up any new torrents.

atanguay
January 18th, 2009, 11:10 AM
Hi All-

Got this cool plugin going yesterday so I can download legal TV shows (!) and noticed it calls for, but doesn't have an icon, so I whipped one up for it really quickly. You can grab a copy and put it wherever would work for you.

I don't have a style guide or anything for Boxee authoring, so I just tried to copy what they're doing with their other icons. Enjoy!

http://dl.getdropbox.com/u/11023/TVrssThumbB.png

Thanks!
A

PS: Boxee rules

subvertbeats
January 18th, 2009, 02:04 PM
sweet, nice icon atanguay :)

cjmartin
January 22nd, 2009, 11:51 AM
This plugin it's very interesting, now you only can add global feeds from tvrss but when you try to add a complex search like rss://tvrss.net/search/index.php?show_name=Anything&show_name_exact=true&mode=rss the boxee's rss reader fails :(

Ok, it's a bit hackish but I've found a way to make complex feeds work (seems like boxee's code doesn't handle urls with parameters...)

What I've been doing is adding the tvrss feeds to my feedburner account, the feedburner urls are much simpler...

This tvrss url:
http://tvrss.net/search/index.php?distribution_group=combined&show_name=Lost&show_name_exact=true&mode=rss

Becomes:
http://feeds.feedburner.com/tvrss/tnBd

The feedburner feed is accepted by boxee. The title of the feed is still "tvRSS - search based" but at least you can access it. Hopefully they do some work on the feed functionality soon, I'd love to not clutter my feedburner account and have custom feed names.

Edit: thought about this a bit more and realized that bit.ly and (probably) tinyurls work as well, without having to use a feedburner account ex: http://bit.ly/lost_rss_feed

I'm also working on coding up a little something that renames tvRSS feeds. When it's done I'll post here.

atanguay
January 22nd, 2009, 12:12 PM
Brilliant!

cjmartin
January 26th, 2009, 03:39 AM
I've installed the plugin in this thread and it works really well, but I also wanted the ability to add feeds for specific shows rather than going through the list every time... so

I've created a utility that renames search based tvRSS feeds to "Show Name" - tvRSS and re-serves the feed with a url that boxee can understand.

Give it a try at http://tvrss.cjmart.in/, it's a bit raw right now but I plan on adding more data to the feeds using the same service boxee uses to identify media... let me know what you think.

atanguay, I've also used your nice icon for the feeds. You'll see that it shows up in boxee when you access any of the tvRSS feeds created at http://tvrss.cjmart.in/.

subvertbeats
January 26th, 2009, 06:02 AM
I've installed the plugin in this thread and it works really well, but I also wanted the ability to add feeds for specific shows rather than going through the list every time... so

I've created a utility that renames search based tvRSS feeds to "Show Name" - tvRSS and re-serves the feed with a url that boxee can understand.

Give it a try at http://tvrss.cjmart.in/, it's a bit raw right now but I plan on adding more data to the feeds using the same service boxee uses to identify media... let me know what you think.

atanguay, I've also used your nice icon for the feeds. You'll see that it shows up in boxee when you access any of the tvRSS feeds created at http://tvrss.cjmart.in/.

Niiiice !!

antwerx
February 9th, 2009, 09:59 PM
Hi All-

Got this cool plugin going yesterday so I can download legal TV shows (!) and noticed it calls for, but doesn't have an icon, so I whipped one up for it really quickly. You can grab a copy and put it wherever would work for you.

I don't have a style guide or anything for Boxee authoring, so I just tried to copy what they're doing with their other icons. Enjoy!

http://dl.getdropbox.com/u/11023/TVrssThumbB.png

Thanks!
A

PS: Boxee rules

Thanks for the icon. I am using it and like the design.

antwerx
February 9th, 2009, 10:00 PM
I've installed the plugin in this thread and it works really well, but I also wanted the ability to add feeds for specific shows rather than going through the list every time... so

I've created a utility that renames search based tvRSS feeds to "Show Name" - tvRSS and re-serves the feed with a url that boxee can understand.

Give it a try at http://tvrss.cjmart.in/, it's a bit raw right now but I plan on adding more data to the feeds using the same service boxee uses to identify media... let me know what you think.

atanguay, I've also used your nice icon for the feeds. You'll see that it shows up in boxee when you access any of the tvRSS feeds created at http://tvrss.cjmart.in/.

Love it! Thanks for the nice tool.

atanguay
February 9th, 2009, 10:00 PM
No problem...glad you like it.

tranceparance
February 19th, 2009, 01:16 PM
This looks really neat... good work! Have you contacted www.boxeehq.com to have them add this so others can find and download this plugin?

Peace,

Tranceparance :-)