acuter
Advanced tools
Comparing version 1.0.1 to 1.0.2
12
index.js
@@ -53,4 +53,3 @@ 'use strict'; | ||
} | ||
var url = mediaURL; | ||
return got(url).then(function (res) { | ||
return got(mediaURL).then(function (res) { | ||
var $ = cheerio.load(res.body); | ||
@@ -69,4 +68,3 @@ return $('.AdaptiveMedia-singlePhoto .AdaptiveMedia-photoContainer img').attr('src') || null; | ||
} | ||
var url = getURL; | ||
return got(url).then(function (res) { | ||
return got(getURL).then(function (res) { | ||
var $ = cheerio.load(res.body); | ||
@@ -85,4 +83,3 @@ return matchRegEx(($('.PlayableMedia-player').attr('style'))) || null; | ||
} | ||
var url = getURL; | ||
return got(url).then(function (res) { | ||
return got(getURL).then(function (res) { | ||
var $ = cheerio.load(res.body); | ||
@@ -103,4 +100,3 @@ var getMediaLink = matchRegEx(($('.PlayableMedia-player').attr('style'))) || null; | ||
} | ||
var url = tweetURL; | ||
return got(url).then(function (res) { | ||
return got(tweetURL).then(function (res) { | ||
var $ = cheerio.load(res.body); | ||
@@ -107,0 +103,0 @@ var getMediaLink = matchRegEx(($('.PlayableMedia-player').attr('style'))) || null; |
{ | ||
"name": "acuter", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "NodeJS API for Twitter media", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,2 +27,3 @@ <h1 align="center"> | ||
__Options :__ <br><code>__profile__ : username</code> <br> <code>__cover__ : username</code> <br> <code>__single__ : tweet's link</code> <br> <code>__preview__ : tweet's link</code> <br> <code>__gif__ : tweet's link</code> | ||
<br> <code>__vidPrev__ : tweet's link</code> | ||
@@ -29,0 +30,0 @@ ## Usage |
Sorry, the diff of this file is not supported yet
64599
172
117