a | b | |
---|
| 0 | + | //Dorothy2 |
---|
| 0 | + | //caption=TokyoPornTube |
---|
| 0 | + | //version=0.00 |
---|
| 0 | + | //match=http://www.tokyo-porn-tube.com/video/\d+/ |
---|
| 0 | + | //author= |
---|
| 0 | + | //path=program |
---|
| 0 | + | //priority=500 |
---|
| 0 | + | //end |
---|
| 0 | + | |
---|
| 0 | + | function(){ |
---|
| 0 | + | common_load('download', 'character_references'); |
---|
| 0 | + | |
---|
| 0 | + | var id = urlinfo.url.match(/\/video\/(\d+)\//) ? RegExp.$1 : '0'; |
---|
| 0 | + | |
---|
| 0 | + | var http = download(urlinfo.url); |
---|
| 0 | + | if(http.responseHeader.code != 200) { println("error---> page " + http.responseHeader.code); exit(); } |
---|
| 0 | + | |
---|
| 0 | + | var title = http.data.match(/<h2>([^<>]+)</) ? character_references(RegExp.$1.fromUTF8toSJIS()).trim() : '?'; |
---|
| 0 | + | println("title = " + title); |
---|
| 0 | + | |
---|
| 0 | + | http = download('http://www.tokyo-porn-tube.com/media/player/config.php?vkey=' + id); |
---|
| 0 | + | if(http.responseHeader.code != 200) { println("error---> xml " + http.responseHeader.code); exit(); } |
---|
| 0 | + | |
---|
| 0 | + | var url = http.data.match(/<src>(http[^<>]+)<\/src>/) ? RegExp.$1.replace(/&/g,'&') : null; |
---|
| 0 | + | if(http.data.match(/<hd>(http[^<>]+)<\/hd>/)) { |
---|
| 0 | + | url = RegExp.$1.replace(/&/g,'&'); |
---|
| 0 | + | println("HD"); |
---|
| 0 | + | } |
---|
| 0 | + | if(!url) { println("error---> url not found"); exit(); } |
---|
| 0 | + | |
---|
| 0 | + | urlinfo.url = (new URL(url)).url; |
---|
| 0 | + | headers['Host'] = (new URL(urlinfo.url)).host; |
---|
| 0 | + | headers['Referer'] = ''; |
---|
| 0 | + | Dorothy.fileName = changeFileName(title + ' tpt=' + id + '.flv'); |
---|
| 0 | + | } |
---|
... | |
---|