Testing Streamdrive Tv Light
#1
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.

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:



Reply
#2
Star 
the script has been posted and updated on xbmcscripts.

i've done a bunch of work to add alot more feeds for some more diversity in content. the site wil now try to get the last 24 hours of published content instead of going by the dates the items were scanned.

this should help keep content current as well as keep a single feed from taking over a playlist.

the scanner picks up new files every 6-8 hours.

the updated script removes the loop as well as the dialogs, now its start and play.
Reply

Logout Mark Read Team Forum Stats Members Help
Testing Streamdrive Tv Light0