From 5a9edc462b95474ece4049ba74b0998a8270551e Mon Sep 17 00:00:00 2001 From: MateusAquino Date: Thu, 31 Dec 2020 12:39:15 -0300 Subject: [PATCH] Test logging mediaurl --- src/recognition/utils/twitter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }