Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Test logging mediaurl
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusAquino committed Dec 31, 2020
1 parent bb3720f commit 5a9edc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/recognition/utils/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5a9edc4

Please sign in to comment.