AlttiRi / twitter-click-and-save

[userscript] Adds buttons to save images and videos in Twitter, also does some other enhancements. (Twitter image and video downloader)
https://greasyfork.org/en/scripts/430132
GNU General Public License v3.0
104 stars 9 forks source link

Live tweet has original resolution missing #23

Closed biggestsonicfan closed 1 year ago

biggestsonicfan commented 1 year ago

Greetings, I feel like there might be a better way to handle this edge case.

The tweet is live, and opening the image takes you to the large or 900x900 version of the image. While the white background button with caution sign correctly indicates there was an issue, I believe there should be a better way of differentiating between "this tweet was probably deleted" and "original image couldn't be grabbed but the tweet is still live so you might wanna try again later".

It might just be a site issue as Twitter can't even generate the media thumbnail for the media preview second on the user page: Screenshot_20230317_161805

AlttiRi commented 1 year ago

The tweet is alive, but the orig, or 4096x4096 image is not available: https://pbs.twimg.com/media/FraXJ1caAAA8a7I?format=jpg&name=orig https://pbs.twimg.com/media/FraXJ1caAAA8a7I?format=jpg&name=4096x4096

So, it correctly indicates the issue ([warning] Original images are not available.): image

Even if I will try to open the image, Twitter's UI shows the warning too: image


Well, at least I will add a note in the readme file for this.

AlttiRi commented 1 year ago

BTW, yes, seems it's a temporal issue. I have checked the my "old" [twitter][sample] images, they are downloaded fine now.

AlttiRi commented 1 year ago

To check is the tweet is deleted... well, technically, it's possible. Maybe just to try to fetch the tweet's page and check the status code (is it 404).

Although, this is very rare case to face it.