Skip to content

Commit

Permalink
fix(twitter): Get GIF URLs correctly (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
klausi committed Feb 18, 2023
1 parent f3cdd19 commit 0eb4bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ pub fn tweet_get_attachments(tweet: &Tweet) -> Vec<NewMedia> {
// Use the video variant with the highest bitrate.
for variant in &video_info.variants {
if let Some(video_bitrate) = variant.bitrate {
if video_bitrate > bitrate {
if video_bitrate >= bitrate {
bitrate = video_bitrate;
media_url = variant.url.clone();
}
Expand Down

0 comments on commit 0eb4bf5

Please sign in to comment.