找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5449|回复: 13

广东触电(itouchtv)曲线js代理

[复制链接]
发表于 2020-8-15 09:20 | 显示全部楼层 |阅读模式
本帖最后由 guoma 于 2020-8-15 09:39 编辑

<script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
<script>
    $.ajaxPrefilter(function (options) {
       if (options.crossDomain && jQuery.support.cors) {
          var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
          options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
       }
    });
    $.get('http://play.wlds.net/play/check/ckey.asp?from=local&n=mtvkey',
      function(data){
      var regt=/'tm'.*?)'/;//此处出现的哭脸用: ' (替换(去掉空格)
      var regkey=/'key'.*?)'/;//此处出现的哭脸用: ' (替换(去掉空格)
      var t=data.match(regt)[1];
      var key=data.match(regkey)[1];
    $.get('http://y.wlds.net/ts/chudian/huazhouzonghe.js?tm='+t+'&key='+key+'&from=local',
      function(result){
        var reg=/"url":"(.*?)"/;
        token= result.match(reg)[1].split('token=')[1];
      var vid=location.href.split('html?id=')[1];
      if(vid=='hzzh'){m3u8='http://huazhou-tv-live1.itouchtv.cn/touchtv/hzzh.m3u8?token='+token};//化州综合
      if(vid=='hzgg'){m3u8='http://huazhou-tv-live1.itouchtv.cn/touchtv/hzgg.m3u8?token='+token};//化州公共
      if(vid=='ljzh'){m3u8='http://lianjiang-tv-live1.itouchtv.cn/touchtv/ljt.m3u8?token='+token};//廉江综合
      if(vid=='zjzh'){m3u8='http://zijin-tv-live1.itouchtv.cn/touchtv/zjt.m3u8?token='+token};//紫金综合
      if(vid=='cnzh'){m3u8='http://chaonan-tv-live1.itouchtv.cn/touchtv/chaonan-1.m3u8?token='+token};//潮南综合
      if(vid=='hfzh'){m3u8='http://haifeng-tv-live1.itouchtv.cn/touchtv/hft.m3u8?token='+token};//海丰综合
      if(vid=='shxwzh'){m3u8='http://sihui-tv-live1.itouchtv.cn/touchtv/shxwzh.m3u8?token='+token};//四会新闻综合
      if(vid=='shwhys'){m3u8='http://sihui-tv-live1.itouchtv.cn/touchtv/shwhys.m3u8?token='+token};//四会文化艺术
      if(vid=='yczh'){m3u8='http://yangchun-tv-live1.itouchtv.cn/touchtv/yct.m3u8?token='+token};//阳春综合
      if(vid=='fgzh'){m3u8='http://fogang-tv-live1.itouchtv.cn/touchtv/fgzh.m3u8?token='+token};//佛冈综合
      if(vid=='gnzh'){m3u8='http://guangning-tv-live1.itouchtv.cn/touchtv/gnzh.m3u8?token='+token};//广宁综合
      if(vid=='gnsh'){m3u8='http://guangning-tv-live1.itouchtv.cn/touchtv/gnsh.m3u8?token='+token};//广宁生活
      if(vid=='pnzh'){m3u8='http://puning-tv-live1.itouchtv.cn/touchtv/pnt.m3u8?token='+token};//普宁电视台
      if(vid=='ryzh'){m3u8='http://ruyuan-tv-live1.itouchtv.cn/touchtv/ryt.m3u8?token='+token};//乳源综合
      if(vid=='hdzh'){m3u8='http://huidong-tv-live1.itouchtv.cn/touchtv/hdt.m3u8?token='+token};//惠东综合
      if(vid=='hyzh'){m3u8='http://huiyang-tv-live1.itouchtv.cn/touchtv/hyt.m3u8?token='+token};//惠阳综合
      if(vid=='lzzh'){m3u8='http://lianzhou-tv-live1.itouchtv.cn/touchtv/lzzh.m3u8?token='+token};//连州综合
      if(vid=='lzsx'){m3u8='http://lianzhou-tv-live1.itouchtv.cn/touchtv/lzsx.m3u8?token='+token};//连州视讯
      if(vid=='ydzh'){m3u8='http://yingde-tv-live1.itouchtv.cn/touchtv/ydxwzh.m3u8?token='+token};//英德综合
      if(vid=='hszh'){m3u8='http://heshan-tv-live1.itouchtv.cn/touchtv/hszh.m3u8?token='+token};//鹤山综合
if(vid=='kpzh'){m3u8='http://kaiping-tv-live1.itouchtv.cn/touchtv/kpzh.m3u8?token='+token};//开平综合
      if(vid=='kpsh'){m3u8='http://kaiping-tv-live1.itouchtv.cn/touchtv/kpsh.m3u8?token='+token};//开平生活
      if(vid=='rpzh'){m3u8='http://raoping-tv-live1.itouchtv.cn/touchtv/rpt.m3u8?token='+token};//饶平综合
      if(vid=='lhzh'){m3u8='http://luhe-tv-live1.itouchtv.cn/touchtv/lht.m3u8?token='+token};//陆河综合
      if(vid=='xwzh'){m3u8='http://xuwen-tv-live1.itouchtv.cn/touchtv/xwt.m3u8?token='+token};//徐闻综合
if(vid=='gbjd'){m3u8='http://gbjd-tv-live1.itouchtv.cn/touchtv/gbjd.m3u8?token='+token};//工布江达综合

      location.href='http://cloud.liveqing.com:10080/LivePlayer.html?videoUrl='+m3u8;//可添加各种m3u8播放器

    });
    });
</script>
====================================================================
存为:itouchtv.html
调用:itouchtv.html?id=代码中的vid
广东省台、深圳台和市级台用的是官方源,故未列出。



点评

部分能看,部分打不开, 但是同一频道在touchtv app 那边是可以看的  发表于 2020-8-15 19:28
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-8-15 10:07 | 显示全部楼层
谢谢楼主的曲线方法!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-15 10:48 | 显示全部楼层
感谢分享,曲线方法好
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-15 17:28 | 显示全部楼层
大佬们  php版怎么用呢  小白求教
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-15 19:24 | 显示全部楼层
二级代理吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-15 19:25 | 显示全部楼层
      var regt=/'tm'.*?)'/;//此处出现的哭脸用: ' (替换(去掉空格)
      var regkey=/'key'.*?)'/;//此处出现的哭脸用: ' (替换(去掉空格)
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-15 20:03 | 显示全部楼层
根据楼主的方法我写了一个代理测试如下
普宁电视台,http://v.iisfu.top/live/itouchtv.php?id=pnzh

点评

大佬能分享下源码吗 感谢  详情 回复 发表于 2020-8-15 22:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-15 21:50 | 显示全部楼层
直接发现成的吧,看不懂
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-15 22:23 | 显示全部楼层
jianhua0209 发表于 2020-8-15 20:03
根据楼主的方法我写了一个代理测试如下
普宁电视台,http://v.iisfu.top/live/itouchtv.php?id=pnzh

大佬能分享下源码吗  感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本站网友
本站网友  发表于 2020-8-16 09:09
本帖最后由 匿名 于 2021-3-21 03:20 编辑

这种源码  早有了

本帖子中包含更多资源

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

×

点评

触电里有惠来综合?  详情 回复 发表于 2020-8-16 20:41
回复

使用道具 举报

发表于 2020-8-16 20:41 | 显示全部楼层
csys 发表于 2020-8-16 09:09
这种源码  早有了

触电里有惠来综合?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-26 22:38 | 显示全部楼层
小白看不懂啊,怎么弄?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-9-3 13:51 | 显示全部楼层
广东触电
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-24 17:13

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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