XBMC Community Forum
Please post all plugin request for Voinage here! - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+--- Thread: Please post all plugin request for Voinage here! (/showthread.php?tid=33620)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


- stacked - 2008-12-14 04:17

Voinage, I found your plugin tutorial useful and already made three plugins.

The only thing that my plugins are missing is the ability to download the video files instead of streaming them. I want the option to download or stream.

Do you have any code snippets that can help me with this or can you make a tutorial?

Also, how can I sort the list of videos based on the order they were originally on the plugin's site? As of now, my plugins seem to only sort alphabetically.

Thanks.


- Voinage - 2008-12-14 04:26

Just copy the Resources folder from my Ninja Video plugin and put it in your plugin folder.
Then replace your addLink function with this one.
Code:
def addLink(name,url,thumbnail):
        ok=True
        def Download(url,dest):
                dp = xbmcgui.DialogProgress()
                dp.create("Ninja Video","Downloading File",url)
                urllib.urlretrieve(url,dest,lambda nb, bs, fs, url=url: _pbhook(nb,bs,fs,url,dp))
        def _pbhook(numblocks, blocksize, filesize, url=None,dp=None):
                try:
                        percent = min((numblocks*blocksize*100)/filesize, 100)
                        print percent
                        dp.update(percent)
                except:
                        percent = 100
                        dp.update(percent)
                if dp.iscanceled():
                        dp.close()
        if xbmcplugin.getSetting("Download File") == "true":
                dialog = xbmcgui.Dialog()
                path = dialog.browse(3, 'Choose Download Directory', 'files', '', False, False, '')
                Download(url,path+name)
        liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=thumbnail)
        liz.setInfo( type="Video", infoLabels={ "Title": name } )
        ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz)
        return ok



- stacked - 2008-12-14 08:49

Thanks, I got it to work Big Grin


- gamefreaklee - 2008-12-14 09:32

Hey, Voinage I was wondering if you could make a plugin from this anime site. They are all mostly megavideo files, or if you could help me make one myself I would really appreciate it.

Thank You

http://www.dubhappy.com/


- Voinage - 2008-12-14 16:44

Read my tutorial on plugin creation it shows how to use megavideo, it`s in my sig - any questions after that i will be glad to help


- gamefreaklee - 2008-12-15 01:52

Hey, I am still having problems on where exactly to enter everything for dub happy plugin. I am completely new to this.

Thank You if you could help and if not I'll keep trying.

http://www.dubhappy.com/


- tikkiew - 2008-12-15 18:48

audio script/plugin for https://www.reciva.com/ request?

reciva.com is a website with almost every internet radio stream
in the world.you can make a profile and make your own selected favourite radio stations.also it possible to make a favourite podcast list.
+ there is a comminuty who keep the radiostreams
up to date.and the site is very user friendly.
Is it possible to make a plugin for this with a login possibility?

I also requested this in XBMC Feature Suggestions
but got no responce there


Plugin help! - gamefreaklee - 2008-12-15 21:58

Confused This is what I have so far for Dub Happy plugin that I have been trying to make. If anybody could help me I would really appreciate it because I am a newbie at it.

Thank You.

http://www.dubhappy.com/

Code:
import urllib,urllib2,re,xbmcplugin,xbmcgui

#Dub Happy

def CATEGORIES():
        addDir('Watch Anime','http://www.dubhappy.com/watch-anime/',1,'http://www.adamrose.name/main/Portfolio_files/Collage-Anime.jpg')
                      
def INDEX(url):
        req = urllib2.Request(url)
        req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        match=re.compile('href="(.+?)">.+?</a>').findall(link)
        for thumbnail,url,name in match:
                addDir(name,url,2,thumbnail)
def EPISODES(url):
        req = urllib2.Request(url)
        req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        match=re.compile('href="(.+?)">.+?</a>').findall(link)
        for name,url,thumb in match:
                if not thumb.find('http://')>0:
                        thumb='http://www.tvdash.com/'+thumb
                        addDir(name,'http://www.dubhappy.com/watch-anime/'+url,4,thumb)
Confused


- Rookie - 2008-12-17 05:31

Could you possibly add ....

http://www.fearnet.com/

Free Whole horror movies,interviews,clips,shows,news,short films,conventions........


- Voinage - 2008-12-17 05:45

I`ll take care of Dubhappy, you really need to go over the tutorial a few times , though.

It will have to wait for a while until i complete my unified field theory errr unified plugin , umm cough.;->