- UID
- 10253
- 帖子
- 3334
- 精华
- 0
- 贡献
- 20
- 推广
- 0
- 有效BUG
- 0
- 来自
- 江门·中国
- 注册时间
- 2006-4-28
|
60#
发表于 2006-11-7 19:39
| 只看该作者
11月7日增加 对 www.uume.com的支持
11.8 日发现 vlog.mop.com 跟 uume的完全一样..就整合到一块里面了
增加对 www.tvix.cn
www.ku6.com
dv.ouou.com
www.happy3G.com
www.mocasting.com 的支持 .
- /* code bY kkf @ 2006 .11.8
- kkf009@gmail.com
- */
- function happy3GMedia()
- {
- strUrl=twSaveObjUrl%%s;
- if(-1!=strUrl.search(/http:\/\/www\.happy3g\.com\/.*\.swf/i)){
- strUrl=document.getElementById(twObjectUID%%s).innerHTML;
-
- strID = strUrl.replace(/([^>]|>)*?id=(\d*).*/,"$2");
- strTemp = "http:\/\/61.137.90.102\/FLV\/streams\/_definst_\/"+strID+".flv"
- external.twMediaPath( window, strTemp );
- }
- }
- function uumemopMedia()
- {
- strUrl=twSaveObjUrl%%s;
- if(-1!=strUrl.search(/http:\/\/(?:www\.uume|vlog\.mop)\.com\/.*\.swf/i)){
- if (window.fileUrls && window.fileZone){
- strUrl ="http:\/\/0.videosource.cacheus.com\/uume0\/"+window.fileZone+"\/"+window.fileUrls
- external.twMediaPath( window, strUrl );
- }
- }
- }
- function tvixMedia(){
- strUrl=twSaveObjUrl%%s;
- if(-1!=strUrl.search(/http:\/\/www\.tvix\.cn\/.*\.swf\?.*/i)){
- strID = strUrl.replace(/.*\?(.*)/,"$1")
- strBuffer = GetBufferInPost("http://www.tvix.cn/find_video.php",strID)
- strUrl = strBuffer.replace("&filename=","")
- external.twMediaPath( window, strUrl );
- }
- }
- function ku6Media(){
- strUrl=twSaveObjUrl%%s;
- if(-1!=strUrl.search(/http:\/\/blog\.ku6\.com\/.*swf\?.*/i)){
- strID = strUrl.replace(/.*\?id=(.*)/,"$1");
- strTempUrl = "http://www.ku6.com/video_cache/" + strID.substr(0,3)+"\/"+strID+ "\.xml";
- strBuffer = external.twQueryHistory( strTempUrl, true );
- if( strBuffer.length <= 0 )
- {
- strBuffer = GetBufferFromUrl( strTempUrl );
- }
- if( strBuffer.length > 0 )
- {
- strRet = strBuffer.replace( /\s/g,"").replace(/.*<url>(.*)<\/url>.*/,"$1");
- external.twMediaPath( window, strRet );
- }
- }
- }
- function ououMedia(){
- strUrl=twSaveObjUrl%%s;
- if(-1!=strUrl.search(/http:\/\/dv\.ouou\.com\/.*swf.*/i)){
- strID = /id=/.test(strUrl)? strUrl.replace(/.*\?id=(.*)/,"$1") : document.location.href.replace(/.*v_(.*)\.html/,"$1");
- strTempUrl = "http://stat.ouou.com/playservlet?id="+strID
- strBuffer = external.twQueryHistory( strTempUrl, true );
- if( strBuffer.length <= 0 )
- {
- strBuffer = GetBufferFromUrl( strTempUrl );
- }
- if( strBuffer.length > 0 )
- {
- strRet = strBuffer.replace( /\s/g,"").replace(/.*<file>(.*)<\/file>.*/,"$1");
- external.twMediaPath( window, strRet );
- }
- }
- }
- function mocastingMedia(){
- strUrl=twSaveObjUrl%%s;
- if(-1!=strUrl.search(/http:\/\/www\.mocasting\.com\/.*\.swf\?file.*/i)){
- strUrl = strUrl.replace(/.*file=(.*)&.*/,"$1")
- external.twMediaPath( window, strUrl );
- }
- }
- happy3GMedia();
- uumemopMedia();
- tvixMedia();
- ku6Media();
- ououMedia();
- mocastingMedia();
复制代码
[ 本帖最后由 needed 于 2006-11-8 13:13 编辑 ] |
|