Hello everyone, first post. Nickspoon & python people, any ideas ?
I have been tinkering with the PowerFlv plugin Myself and was dismayed to see the M*gavid*o links would not not register. After a bit of messing i thought that the plugin would not resolve the true path to the flv`s ( I may be wrong here. ) so i wrote this ammendment to the script : -
Code:
import urllib,re,sys,socket,webbrowser,urllib2,webbrowser
res=[]
#f=urllib.urlopen("http://mojo.hostsnake.com/play2.htm")
#a=f.read()
#f.close()
p=re.compile(r'<iframe src=\"(http\://.+?\.megavideo\.com/v/(.+?))"')
match=p.findall(a)
for a in match:
a=a[-1]
a=a[:-45]
link = 'http://www.megaupload.net/keepvid.php'
data = "url="+"http://www.megavideo.com/?v="+a+"&site=aa"
req = urllib2.Request(link, data)
response = urllib2.urlopen(req)
results = response.read()
p=re.compile(r'<br /><a href="(http://.+?)"')
flv=p.findall(results)
for link in flv:
res.append(link)
#webbrowser.open(b)
The hashed out lines are for pc testing. If you run that script it gets the m*gavid*o url then shortens it to the correct size and sends a post, reads back the reply recompiles it then gives the link. As this script uses a certain online flv resolver it can resolve just about any link give to the true path. So it`s handy anyway. It can resolve :-
56.com, 5min, 9you, Bofunk, Break, ClipFish.de, ClipLife.jp, ClipJunkie, ClipShack, CollegeHumor, CrunchyRoll, Dailymotion, DingTV, DoubleAgent, eSnips, ExpertVillage, Flurl, FunnyJunk, FunnyorDie, Glumbert, GoFish, Google Video, Hallpass, HowCast, IndiaFM, iShare.Rediff, Izlesene, Jokeroo, Jumpcut, ku6, LiveVideo, LiveLeak, lulu.tv, Megavideo, Metacafe, MilkandCookies, MonkeySee, MusicMaza, Myspace, MyVideo.de, PokerTube, Putfile, SantaBanta, Sharkle, Shoutfile, Spike, StupidVideos, SuperNovaTube, TeacherTube, Tudou, Twango, Veoh, Videa.hu, Vidiac, Vidivodo, Viddyou, Vimeo, Yahoo Videos, Yikers, Youku, Youtube, ZippyVideos
and quite a few more.
But my problem is that when i run the code in the powerflv plugin it will not display the links for megavideo. if i just use the code : -
p=re.compile(r'<iframe src=\"(http\://.+?\.megavideo\.com/v/(.+?))"')
match=p.findall(a)
for a in match:
a=a[-1]
a=a[:-45]
res.append(a)
it displays the links with the un resolved path. ie
www.m*gavid*o.com/?v=(8-digits)
when the resolution code is in place it finds the true path and appends res with -
e.g
http://www17.m*gavid*o.com/files/8786f08..._video.flv
I`m very frustrated.
I also updated the veoh links again as it wasn`t displaying all the embedded links for everything listed. just add :-
&player=.+?&videoAutoPlay=.+? after ?permalinkId=(.+?) in both Veoh and veoh embedded.
Help would be appreciated. Thanks Voinage.