优酷视频mplayer自动连播脚本

上网、浏览、聊天、下载等
回复
bobby_winon
帖子: 236
注册时间: 2008-01-31 12:39

Re: 优酷视频mplayer自动连播脚本

#106

帖子 bobby_winon » 2012-09-29 8:53

我想问问9月20日的更新,是否一定需要安装dragit扩展?
头像
到处看看
论坛版主
帖子: 8486
注册时间: 2010-01-17 13:05
系统: ubuntu

Re: 优酷视频mplayer自动连播脚本

#107

帖子 到处看看 » 2012-09-29 13:06

菜鸟表示变复杂不会用了 :em06
求指点
提示 ./vsplay: 行 102: urlencode: 未找到命令
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: 优酷视频mplayer自动连播脚本

#108

帖子 funicorn » 2012-09-29 14:51

安装gridsite-clients
头像
到处看看
论坛版主
帖子: 8486
注册时间: 2010-01-17 13:05
系统: ubuntu

Re: 优酷视频mplayer自动连播脚本

#109

帖子 到处看看 » 2012-09-29 18:27

OK了 感谢
fengzheng081212
帖子: 210
注册时间: 2012-01-08 11:27

Re: 优酷视频mplayer自动连播脚本

#110

帖子 fengzheng081212 » 2012-10-21 7:40

有点复杂,有没更简单的mplayer自动连接脚本呢!
363333413
帖子: 58
注册时间: 2009-02-27 14:31

Re: 优酷视频mplayer自动连播脚本

#111

帖子 363333413 » 2012-11-04 22:40

moon@moon:~$ ~/vsplay play http://v.youku.com/v_show/id_XNDMzMDkwMDM2.html
bash: /home/moon/vsplay: 没有那个文件或目录


没有反应阿 10.04

菜鸟求指导
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: 优酷视频mplayer自动连播脚本

#112

帖子 funicorn » 2012-11-04 22:59

Day_by_Day.png
363333413 写了:moon@moon:~$ ~/vsplay play http://v.youku.com/v_show/id_XNDMzMDkwMDM2.html
bash: /home/moon/vsplay: 没有那个文件或目录


没有反应阿 10.04

菜鸟求指导
头像
wean
帖子: 686
注册时间: 2007-04-23 14:47
系统: Gentoo
来自: 常熟
联系:

Re: 优酷视频mplayer自动连播脚本

#113

帖子 wean » 2012-11-14 22:03

:em20 想到一个。。。。既然mplayer能播放,那mplayer的npapi插件能不能播放,能播放的话,能不能写脚本/插件,用mplayer的npapi插件替换掉网页上的flash插件呢,恩,有空研究一下
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 优酷视频mplayer自动连播脚本

#114

帖子 eexpress » 2012-11-14 23:13

USAGE: flash-down.pl [--view] [--decoder] [--help] url

播放,压片,下载 一条龙的。赶紧用。抢生意。http://eexpress.github.com/
● 鸣学
头像
wean
帖子: 686
注册时间: 2007-04-23 14:47
系统: Gentoo
来自: 常熟
联系:

Re: 优酷视频mplayer自动连播脚本

#115

帖子 wean » 2012-11-22 18:37

:em05 写了一个opera的userjs, :em04 大致可以看youku了,还有很多不严谨的地方,基本思路和lz差不多,也是通过flvcd来解析

代码: 全选

// ==UserScript==  
// @name flvcd  
// @namespace gm.weans.info  
// @include http://v.youku.com/v_show/*
// ==/UserScript==  

var op_jq = document.createElement("script");

op_jq.src = "http://code.jquery.com/jquery-1.7.1.js"; //jquery code source
op_jq.type = "text/javascript";
document.getElementsByTagName("head")[0].appendChild(op_jq);

window.addEventListener('load',function (e){

    var player = document.getElementById('player');
    player.innerHTML = '';

    var vlc = document.createElement('embed');
    vlc.type = 'application/x-vlc-plugin';
    vlc.name = 'vlcflash';
    vlc.name = 'vlcflash';
    vlc.setAttribute('autoplay', 'yes');
    vlc.setAttribute('loop', 'no');
    vlc.height = '100%';
    vlc.width = '100%';
    player.appendChild(vlc);

    function op_wait()
    {
        if(typeof window.jQuery == "undefined") { window.setTimeout(op_wait,100); }
        else { $ = window.jQuery; appJQuery(); }
    }
    op_wait();

    var getCrossDomain = function (url, callback, maxage) {
        if (typeof (url) !== 'undefined') {
            var yql = 'http://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent('select * from html where url="' + url + '"') + '&diagnostics=false&format=xml&callback=?&_maxage=';
            if (typeof (maxage) === 'undefined') {
                yql += '10000'; // Value is in ms
            }
            $.getJSON(yql, function (data) {
                if (typeof (callback) === 'function') {
                    callback(data.results[0]);
                }
            }).fail(function (jqXHR, textStatus, errorThrown) {
                // Some code here to handle a failed request
            });
        }
    };
    
    function appJQuery()
    {
        getCrossDomain("http://www.flvcd.com/parse.php?flag=&format=&kw=" + encodeURIComponent(document.location) +  "&sbt=%BF%AA%CA%BCGO%21", function(html){

            $(html).find('td').each(function(){
                var al = $(this);
                if (al.length > 0 && al[0].className == 'mn STYLE4'){
                    if (al[0].innerHTML.indexOf("下载地址") >= 0){

                        // 找到下载地址啦 ^ - ^

                        var downList = $(al[0].innerHTML).find('a');
                        var linkList = [];
                        for (var i=0; i<downList.length; i++){
                            linkList.push(downList[i].href);
                        }

                        for (var i=0; i<linkList.length; i++){
                            vlc.playlist.add(linkList[i]);
                        }
                        vlc.playlist.playItem(0);

                        return false;
                    }
                }
            });

        }, null);
    }
},false);
头像
youzhiyili
帖子: 2422
注册时间: 2012-03-22 20:42
系统: ubuntu22.04

Re: 优酷视频mplayer自动连播脚本

#116

帖子 youzhiyili » 2012-11-22 19:10

eexpress 写了:USAGE: flash-down.pl [--view] [--decoder] [--help] url

播放,压片,下载 一条龙的。赶紧用。抢生意。http://eexpress.github.com/
mark
ps:神的鼠标指甲好长 :em04
@自由建客 @qy117121 @枫叶饭团 @cikekid @YeLee @jtshs256 @eexpress @ljj_jjl2008 @zhw2101024 @TeliuTe @月下叹逍遥 @leeaman @懒蜗牛Gentoo @灰色小狼 @photor @adagio @JiangHui @phoenixlzx @oneleaf
头像
hakie
帖子: 270
注册时间: 2008-04-30 12:14

Re: 优酷视频mplayer自动连播脚本

#117

帖子 hakie » 2012-11-28 19:24

archlinux 提示 ./vsplay: 行 102: urlencode: 未找到命令
也没有gridsite-clients
Archlinux+FVWM

虽然没技术折腾,但一直在默默折腾。
sandylaw
帖子: 123
注册时间: 2007-01-09 9:17
联系:

Re: 优酷视频mplayer自动连播脚本

#118

帖子 sandylaw » 2012-11-30 15:55

firefox17
已提示插件代码损坏,不能添加了!
Archlinux
BenQ Joybook R47
Blog: http://sandy.is-programmer.com/
HI: http://hi.baidu.com/new/sandylaw
QQ:154047521
gtalk:xinsongliu@gmail.com
头像
rapistor
帖子: 1983
注册时间: 2009-01-19 15:09

Re: 优酷视频mplayer自动连播脚本

#119

帖子 rapistor » 2013-02-05 21:39

guyanqiu 写了:关于VLC的脚本,
显示报错:
notify-send: command not found。
然后我安装了
libnotify-bin
就不再报这个错误了。
但是还有,打开视频的时候,提示:
u_length and t_length not match ,generated with no titles

哪位知道为啥,解决一下,谢谢!

奇怪啊,使用mplayer的脚本,也报
u_length and t_length not match ,generated with no titles
但是,还是会继续播放。
而使用VLC的脚本,就不会播放了。Why?
最近老是提示这个错误,vlc无法播放,电影的标题无法获得,请哪位大神指点修复下,不胜感激 。
坚守在linux的天堂!
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 优酷视频mplayer自动连播脚本

#120

帖子 YeLee » 2013-02-05 21:59

[bash]
#!/bin/bash
tvid=73868
iformat=high
ipart=76

i=$(ls *.flv.st|sed 's/\([0-9]*\).flv.st/\1/g')
[ -z $i ] && i=1

while [ $i -le $ipart ]
do
echo "Start the download Episode $i ..."
wget -q --user-agent="Mozilla/5.0" "http://www.flvcd.com/parse.php?kw=http: ... t=$iformat" -O - |grep clipurl |grep -o 'http[^"]*' |axel - --user-agent="Mozilla/5.0" -o $i.flv
let "i+=1"
done
[/bash]
貌似flvcd最近更新了吧,旧的脚本早就不能用了。这是前一段时间弄的一个用来下载letv的连续剧的脚本,谁想要的自己去修改一下吧。 :em01 :em01 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
回复