Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 【靖飒原创】视频展厅3.0721(07-22 13:15更新)

  [复制链接]
 楼主| oytktk 发表于 2011-7-26 00:04:48 | 显示全部楼层
快乐的蚂蚁 发表于 2011-7-25 23:53
1和2,无所谓了,

第3条能否说下在那个文件下的什么地方进行修改吗???盼复!!!!

vgallery.inc.php
约3478行,查找:
,'ra','mov'
改为
,'ra', 'asx','mov'
回复

使用道具 举报

快乐的蚂蚁 发表于 2011-7-26 00:10:49 | 显示全部楼层
oytktk 发表于 2011-7-26 00:04
vgallery.inc.php
约3478行,查找:
,'ra','mov'

哦,谢谢啊,老大,那么晚你都还在呢啊!~~辛苦辛苦~~~~

希望你这个作品,一定拿上头奖呢......一定支持~~~~~~~~~
回复

使用道具 举报

tjinlina2010 发表于 2011-7-26 00:16:07 | 显示全部楼层

作者十分忙,我也來幫幫手 。希望幫到大家。

本帖最后由 tjinlina2010 于 2011-7-26 00:23 编辑

Youtube自動采集

更改vgallery.inc.php

  1.        }elseif('youtube.com' == $host) {
  2.         preg_match_all("/v\=([\w\-]+)/", $link, $matches);
  3.         $geturl = $matches[1][0];
复制代码

1.換成(合適用在utf-8)

  1. }elseif('youtube.com' == $host) {
  2.         $content = file_get_contents($link);
  3.         preg_match_all("/og:image" content="(.*?)">/i",$content,$img);
  4.         preg_match_all("/title" content="(.*?)">/i",$content,$title);
  5.         $title = $title[1][0];
  6.         preg_match_all("/v\=([\w\-]+)/", $link, $matches);
  7.         if(!empty($matches[1][0])) {
  8.            $geturl = $matches[1][0];
  9.            $geturl = "http://www.youtube.com/v/".$geturl."?version=3&hl=zh_TW";
  10.         }
复制代码
2.換成(合適用在gbk)

  1. }elseif('youtube.com' == $host) {
  2.         $content = file_get_contents($link);
  3.         preg_match_all("/og:image" content="(.*?)">/i",$content,$img); //圖片
  4.         preg_match_all("/title" content="(.*?)">/i",$content,$title);
  5.         $title = iconv('UTF-8', 'GB18030', $title[1][0]);    //得到視頻標題
  6.         preg_match_all("/v\=([\w\-]+)/", $link, $matches);
  7.         if(!empty($matches[1][0])) {
  8.            $geturl = $matches[1][0];
  9.            $geturl = "http://www.youtube.com/v/".$geturl."?version=3&hl=zh_TW";
  10.         }
复制代码

需要其他可以在本貼發問..有問題也是

因為utf-8做了一個更新  修正了一些采集方式 有問題可以pm我  gbk檔會在26日下午發出




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

1

查看全部评分

回复

使用道具 举报

快乐的蚂蚁 发表于 2011-7-26 00:20:52 | 显示全部楼层
老大再请教个问题,若是前台的视频展厅内,删除了某个视频之后,那么,对应的关联版块中的帖子,是否也会自动删除的呢,还是依旧保留的???
回复

使用道具 举报

tjinlina2010 发表于 2011-7-26 00:31:21 | 显示全部楼层
本帖最后由 tjinlina2010 于 2011-7-26 00:32 编辑

qiyi.com   (必須是http://www.qiyi.com/yinyue/***/***.html)  

我不知道是否所有人都有這問題,但我有。

主要更新圖片問題

  1.     }elseif('qiyi.com' == $host){
  2.         $content = file_get_contents($link);
  3.         preg_match_all("/title[\w\W]:[\w\W]"(.*?)",/i",$content,$str2);
  4.         preg_match_all("/videoId[\w\W]:[\w\W]"(.*?)",/i",$content,$str3);
  5.         preg_match_all("/albumId[\w\W]:[\w\W]"(.*?)",/i",$content,$str4);
  6.         preg_match_all("/tvId[\w\W]:[\w\W]"(.*?)",/i",$content,$str5);
  7.         $title = iconv('UTF-8', 'GB18030', $str2[1][0]);    //得到視頻標題

  8.         $str1 = parse_url($link);
  9.         preg_match_all("/\/(.*?)\//i",$str1['path'],$str);

  10.         $vdate = $str[1][0]; //得到日期
  11.         $vcode = $str3[1][0];
  12.         $albid = $str4[1][0];  //所在專輯ID
  13.         $vinid = $str5[1][0]; //視頻ID

  14.         //生成圖片和視頻URL
  15.         $img[1][0] = "http://www.qiyipic.com/thumb/".$vdate."/a".$albid."_160_90.jpg";
  16.         $geturl = "http://player.video.qiyi.com/".$vcode;

  17.     }
  18.     $str[0] = $img[1][0];
  19.     $str[1] = $title;
  20.     $str[2] = $geturl;
  21.     $str[3] = $message;
  22.     if($str){     
  23.         return  $str;
  24.     }
  25. }
复制代码

1.換成(utf-8合適)

  1.     }elseif('qiyi.com' == $host){
  2.         $content = file_get_contents($link);
  3.         preg_match_all("/title[\w\W]:[\w\W]"(.*?)",/i",$content,$str2);
  4.         preg_match_all("/videoId[\w\W]:[\w\W]"(.*?)",/i",$content,$str3);
  5.         preg_match_all("/albumId[\w\W]:[\w\W]"(.*?)",/i",$content,$str4);
  6.         preg_match_all("/tvId[\w\W]:[\w\W]"(.*?)",/i",$content,$str5);
  7.         $title = $str2[1][0];    //得到視頻標題
  8.         //url : "http://www.qiyi.com/yinyue/20110712/4708a7bb0dbf0c0b.html",
  9.         preg_match_all("/url[\w\W]:[\w\W]"http:\/\/www.qiyi.com\/yinyue\/([\w\-]+)\/?/i",$content,$str);

  10.         $vdate = $str[1][0]; //得到日期
  11.         $vcode = $str3[1][0];
  12.         $albid = $str4[1][0];  //所在專輯ID
  13.         $vinid = $str5[1][0]; //視頻ID

  14.         //生成圖片和視頻URL
  15.         $img[1][0] = "http://www.qiyipic.com/thumb/".$vdate."/a".$albid."_160_90.jpg";   
  16.         $geturl = "http://player.video.qiyi.com/".$vcode;

  17.     }
  18.     $str[0] = $img[1][0];
  19.     $str[1] = $title;
  20.     $str[2] = $geturl;
  21.     $str[3] = $message;
  22.     if($str){     
  23.         return  $str;
  24.     }
  25. }
复制代码

2.換成(gbk)

  1.     }elseif('qiyi.com' == $host){
  2.         $content = file_get_contents($link);
  3.         preg_match_all("/title[\w\W]:[\w\W]"(.*?)",/i",$content,$str2);
  4.         preg_match_all("/videoId[\w\W]:[\w\W]"(.*?)",/i",$content,$str3);
  5.         preg_match_all("/albumId[\w\W]:[\w\W]"(.*?)",/i",$content,$str4);
  6.         preg_match_all("/tvId[\w\W]:[\w\W]"(.*?)",/i",$content,$str5);
  7.         $title = iconv('UTF-8', 'GB18030', $str2[1][0]);    //得到視頻標題
  8.         //url : "http://www.qiyi.com/yinyue/20110712/4708a7bb0dbf0c0b.html",
  9.         preg_match_all("/url[\w\W]:[\w\W]"http:\/\/www.qiyi.com\/yinyue\/([\w\-]+)\/?/i",$content,$str);

  10.         $vdate = $str[1][0]; //得到日期
  11.         $vcode = $str3[1][0];
  12.         $albid = $str4[1][0];  //所在專輯ID
  13.         $vinid = $str5[1][0]; //視頻ID

  14.         //生成圖片和視頻URL
  15.         $img[1][0] = "http://www.qiyipic.com/thumb/".$vdate."/a".$albid."_160_90.jpg";   
  16.         $geturl = "http://player.video.qiyi.com/".$vcode;

  17.     }
  18.     $str[0] = $img[1][0];
  19.     $str[1] = $title;
  20.     $str[2] = $geturl;
  21.     $str[3] = $message;
  22.     if($str){     
  23.         return  $str;
  24.     }
  25. }
复制代码





回复

使用道具 举报

subs 发表于 2011-7-26 00:32:27 | 显示全部楼层
该版本BUG超级多,目前我已经修改了很多程序,结果官方升级了。
回复

使用道具 举报

tjinlina2010 发表于 2011-7-26 00:37:13 | 显示全部楼层
本帖最后由 tjinlina2010 于 2011-7-26 00:45 编辑

56.com (用了一個傻方法^^)  有需要的拿吧

只更新有標題^^

更改vgallery.inc.php

  1.     }elseif('56.com' == $host){
  2.         //http://www.56.com/u94/v_NjE3OTg2MTE.html
  3.         preg_match_all("/\/v_(.*?)\.html/", $link, $matches);
  4.         $geturl = "http://player.56.com/cpm_".$matches[1][0].".swf";
复制代码
更換成為(utf-8合適)
  1.     }elseif('56.com' == $host){                                 
  2.         $content = file_get_contents($link);
  3.         preg_match_all("/(.*?)[\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W]<span id="mobile"><\/span>/i",$content,$title);
  4.         $title = $title[1][0];
  5.         //http://www.56.com/u94/v_NjE3OTg2MTE.html
  6.         preg_match_all("/\/v_(.*?)\.html/", $link, $matches);
  7.         $geturl = "http://player.56.com/cpm_".$matches[1][0].".swf";
复制代码

gbk更改方法

  1.    }elseif('56.com' == $host){                                 
  2.         $content = file_get_contents($link);
  3.    preg_match_all("/(.*?)[\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W][\w\W]<span
  4. id="mobile"><\/span>/i",$content,$title);
  5.         $title = iconv('UTF-8', 'GB18030', $title[1][0]);    //得到視頻標題
  6.         //http://www.56.com/u94/v_NjE3OTg2MTE.html
  7.         preg_match_all("/\/v_(.*?)\.html/", $link, $matches);
  8.         $geturl = "http://player.56.com/cpm_".$matches[1][0].".swf";
复制代码


回复

使用道具 举报

tjinlina2010 发表于 2011-7-26 00:39:35 | 显示全部楼层
本帖最后由 tjinlina2010 于 2011-7-26 00:43 编辑

有問題特別想要的采集就問吧..有能力就會幫忙^^

有什麼不正確請指正.!!!!!!

現在比較小UTF-8用戶,希望可以一齊做好這個.^^

支持oytktk
回复

使用道具 举报

tjinlina2010 发表于 2011-7-26 00:44:29 | 显示全部楼层
subs 发表于 2011-7-26 00:32
该版本BUG超级多,目前我已经修改了很多程序,结果官方升级了。

加油吧.^^
回复

使用道具 举报

 楼主| oytktk 发表于 2011-7-26 00:51:13 | 显示全部楼层
快乐的蚂蚁 发表于 2011-7-26 00:20
老大再请教个问题,若是前台的视频展厅内,删除了某个视频之后,那么,对应的关联版块中的帖子,是否也会自 ...

删除的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-25 10:36 , Processed in 0.181567 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表