VeeHD

Valhalla Streams

New member
Nov 17, 2014
3
0
0
Kodiland
Can anyone use this and maybe test if it's working???


def resolve_veehd(url):
name = "veeHD"
cookie_file = os.path.join(datapath, '%s.cookies' % name)
user_agent='Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
from random import choice
userName = ['******1', '******3', '******4', '******5', '******6', '******7']
try:
dialog = xbmcgui.DialogProgress()
dialog.create('Resolving', 'Resolving Mash Up VeeHD Link...')
dialog.update(0)
loginurl = 'http://veehd.com/login'
ref = 'http://veehd.com/'
submit = 'Login'
terms = 'on'
remember_me = 'on'
data = {'ref': ref, 'uname': choice(userName), 'pword': 'xbmcisk00l', 'submit': submit, 'terms': terms, 'remember_me': remember_me}
html = net(user_agent).http_POST(loginurl, data).content
if dialog.iscanceled(): return False
dialog.update(33)
net().save_cookies(cookie_file)
headers = {}
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13+ (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2'}
net().set_cookies(cookie_file)
print 'Mash Up VeeHD - Requesting GET URL: %s' % url
html = net().http_GET(url, headers).content
if dialog.iscanceled(): return False
dialog.update(66)
fragment = re.findall('playeriframe".+?attr.+?src : "(.+?)"', html)
frag = 'http://%s%s'%('veehd.com',fragment[1])
net().set_cookies(cookie_file)
html = net().http_GET(frag, headers).content
r = re.search('"video/divx" src="(.+?)"', html)
if r:
stream_url = r.group(1)
if not r:
print name + '- 1st attempt at finding the stream_url failed probably an Mp4, finding Mp4'
a = re.search('"url":"(.+?)"', html)
if a:
r=urllib.unquote(a.group(1))
if r:
stream_url = r
else:
logerror('***** VeeHD - File Not Found')
xbmc.executebuiltin("XBMC.Notification(File Not Found,VeeHD,2000)")
return False
if not a:
a = re.findall('href="(.+?)">', html)
stream_url = a[1]
if dialog.iscanceled(): return False
dialog.update(100)
return stream_url
except Exception, e:
logerror('**** Mash Up VeeHD Error occured: %s' % e)
raise ResolverError(str(e),"VeeHD")
 

tknorris

New member
Feb 18, 2014
201
0
0
Your formatting got all screwed up, you probably want to put that inside code tags.

Also, I'm pretty sure that doesn't work. I've looked at VeeHD a few times and their site is kinda screwed. 99% of the time I access that site, it tells me I need some kind of VeeHD addon. That code looks for a divx iframe in the page which happens only rarely.
 
Thread starter Similar threads Forum Replies Date
V Addon Development 21
Similar threads
Fixed VeeHD :)