You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
I've got kind of a weird use case with an app i'm working on, and i've stumbled onto some strange behavior with the Random API Endpoint.
I've been using the Random Endpoint without any tags, and noticed a lot of the GIFs the API was generating looked similar, and seemed pretty obscure. So in order to get "higher quality" random GIFs, I added a check in my code to only use Random GIFs that had trended in the past.
I next noticed a lot of the GIFs I'd been generating had never trended in the past, so I avoided GIFs where the trending datetime is equal to "0000-00-00 00:00:00." Then I noticed my code was only getting GIFs with a trending datetime of "1970-01-01 00:00:00." Most of these seemed to be from the user "@sTEPPYPANTS", which is some obscure video game. So I added a check to filter out "1970-01-01 00:00:00" trending datetimes, and sure enough my code seems to be looping infinitely when looking for a random GIF that didn't trend at "1970-01-01 00:00:00" and "0000-00-00 00:00:00"
This is uh, pretty strange.
Let me know if you need any clarification or anything.
Thanks!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey Giphy team,
I've got kind of a weird use case with an app i'm working on, and i've stumbled onto some strange behavior with the Random API Endpoint.
I've been using the Random Endpoint without any tags, and noticed a lot of the GIFs the API was generating looked similar, and seemed pretty obscure. So in order to get "higher quality" random GIFs, I added a check in my code to only use Random GIFs that had trended in the past.
I next noticed a lot of the GIFs I'd been generating had never trended in the past, so I avoided GIFs where the trending datetime is equal to "0000-00-00 00:00:00." Then I noticed my code was only getting GIFs with a trending datetime of "1970-01-01 00:00:00." Most of these seemed to be from the user "@sTEPPYPANTS", which is some obscure video game. So I added a check to filter out "1970-01-01 00:00:00" trending datetimes, and sure enough my code seems to be looping infinitely when looking for a random GIF that didn't trend at "1970-01-01 00:00:00" and "0000-00-00 00:00:00"
This is uh, pretty strange.
Let me know if you need any clarification or anything.
Thanks!
The text was updated successfully, but these errors were encountered: