Skip to content

Commit

Permalink
Mini FIXes
Browse files Browse the repository at this point in the history
  • Loading branch information
luceole committed Oct 16, 2017
1 parent 77d51fb commit 1af4f50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions routes/vim.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ exports.download = function (req, res) { // TODO
function magic_url(idVideo, cb) {
var url = "https://player.vimeo.com/video/" + idVideo;
request({
"url": url
// "headers": {
// 'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5'
//}
"url": url,
"headers": {
'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5'
}
}, function (error, reponse, body) {
if (error) {
console.log("stream " + error.message);
Expand Down
10 changes: 5 additions & 5 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ <h3>For testing ... </h3>
<h2> Internet Videos </h2>
<p>
<br> Viméo :
<a href="/vimeo/info/80871338"> Infos </a>&nbsp;
<a href="/vimeo/play/80871338"> Play </a>&nbsp;
<a href="/vimeo/download/80871338"> Download </a>&nbsp;
<a href="/vimeo/geturl/80871338"> getUrl </a>&nbsp;
<a href="/vimeo/info/80994084"> Infos </a>&nbsp;
<a href="/vimeo/play/80994084"> Play </a>&nbsp;
<a href="/vimeo/download/80994084"> Download </a>&nbsp;
<a href="/vimeo/geturl/80994084"> getUrl </a>&nbsp;
</p>
<p>
<br> YouTube :
Expand All @@ -20,7 +20,7 @@ <h2> Internet Videos </h2>
<a href="/yt/download/iNJdPyoqt8U"> Download </a>&nbsp;
<a href="/yt/geturl/iNJdPyoqt8U"> getUrl </a>&nbsp;
</p>
<br> DailyMotione :
<br> DailyMotion :
<a href="/dlm/info/x55xe20"> Infos </a>&nbsp;
<a href="/dlm/play/x55xe20"> Play </a>&nbsp;
<a href="/dlm/Download/x55xe20"> Download </a>&nbsp;
Expand Down

0 comments on commit 1af4f50

Please sign in to comment.