2006-05-30, 09:02
hello everyone,
i've put together a site which spiders a number of podcast feeds, about 2100 right now. it grabs all the new items and throws them into a database for me to find a way to watch it all.
anyways i've been messing with making something like a tv station with the content for xbmc.
i'd like to test this little script to get some feedback of how things are working on other boxes.
it grabs the latest files from x number of hours, creates and playlist, and starts to play.
currently i have had a blackscreen problem during fullscreen playback in any builds prior to the cvs_2006-05-28-t3ch release. so please try testing with that build or later.
warning
the content may be explicit, and the views may be different than yours, i do not censor or choose whats played, watch at your own risk. i have tried to keep porn feeds off the list as much as possible
note:
if you do not have an f: drive, make sure to change the save path at the top of the script.
:nuts:
i've put together a site which spiders a number of podcast feeds, about 2100 right now. it grabs all the new items and throws them into a database for me to find a way to watch it all.
anyways i've been messing with making something like a tv station with the content for xbmc.
i'd like to test this little script to get some feedback of how things are working on other boxes.
it grabs the latest files from x number of hours, creates and playlist, and starts to play.
currently i have had a blackscreen problem during fullscreen playback in any builds prior to the cvs_2006-05-28-t3ch release. so please try testing with that build or later.
warning
the content may be explicit, and the views may be different than yours, i do not censor or choose whats played, watch at your own risk. i have tried to keep porn feeds off the list as much as possible
note:
if you do not have an f: drive, make sure to change the save path at the top of the script.
Quote:import urllib, os, re, urllib2, xbmc, xbmcgui, time
save = "z:\\streamdrive.m3u"
def downloaderclass(url,dest):
dp = xbmcgui.dialogprogress()
dp.create("my script","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)
dp.update(percent)
except:
percent = 100
dp.update(percent)
dialog = xbmcgui.dialog()
def loadem():
downloaderclass("http://streamdrive.com/last.php?m3u=true",save)
plist = xbmc.playlist(3)
plist.load(save)
xbmc.player().play(plist)
loadem()
:nuts: