07/06/02 22:29:34 0
☆ScriptForYourFileHostの作成
IrvineでYourFileHostをダウンロードするためのスクリプトです。
YourFileHostのURL(h抜けも可)をIrvineに登録すると動画ファイルをダウンロードするようになり ます。
例えば、
URLリンク(www.yourfilehost.com)
をIrvineに登録すると"test.wmv"をダウンロードするようになります。
<設定方法>
まずIrvineを起動
①「フォルダ設定」
②「スクリプト」→「新規作成」
③「フォルダ設定」→「次へ」
④「OnStartThread」→「次へ」
⑤「ファイル名」と「キャプション」に「ScriptForYourFileHost」を入力
「同期実行を行う」→「完了」
※メモ帳でスクリプトファイルが開く
⑥メモ帳の最後の方にある「*/」と「}」の間に下記の内容をコピーして
「ファイル」→「上書き保存」「ファイル」→「メモ帳の終了」
irv = new ActiveXObject('Irvine.Api');
url = item.url;
if(!url.match(/h?ttp:\/\/(www\.)?yourfilehost\.com\/media\.php\?cat=(video|other|image)&file=.+/)){
return;
}
h = new HTTP;
text = h.get(url);
re = new RegExp("\"(URLリンク([0-9.]+)(video|other|image)/[^\"&]+)\"");
if(!re.test(text)){
return;
}
irv.Download(re.$1,3);
n = irv.ItemCount;
for(i=0;i<n;i++){
if(item.Data==irv.GetItemData(i)){
irv.DeleteItem(i);
break;
}
}
⑦「更新」→「OnStartThread」→「ScriptForYourFileHost」→「OK」