diff --git a/src/recognition/utils/twitter.js b/src/recognition/utils/twitter.js index 3029560..c5e93bf 100644 --- a/src/recognition/utils/twitter.js +++ b/src/recognition/utils/twitter.js @@ -122,8 +122,11 @@ class Twitter { if (tweet.extended_entities.media[0].video_info === undefined) return false; // Tweet sem video const mediaURL = tweet.extended_entities.media[0].video_info.variants[0].url; for (let media of tweet.extended_entities.media[0].video_info.variants) - if (media.content_type === 'video/mp4') + if (media.content_type === 'video/mp4') { + console.log('x - '+media.url) return media.url; + } + console.log('y - '+mediaURL) return mediaURL; }