Open rescue plan for the gfycat demise?

WAZAAAAA

Well-Known Member
To @Matt Ponton or anyone with FSD database access: what about mass replacing the dead gfycat.com links with archive.org ones? I figured from this post you don't seem against this kind of stuff



alright so, popular video clip site gfycat.com dies on 2023-09-01 leaving a hole in the internet, including this forum
but the Archive Team comes in clutch in the last days and saves most of it into the Internet Archive, so a previously dead link can live again with some link replacements
Code:
https://gfycat.com/candidinsidiousgreatdane
->
https://web.archive.org/web/0if_/https://thumbs.gfycat.com/candidinsidiousgreatdane-mobile.mp4

I told this to the kekken frame data discord bot creator, and he put a band-aid fix, better than nothing, everyone's happy
I posted about it in the shitty /r/gfycat subreddit, pretty useful for surfing the web in general, everyone's happy
now what about FSD

dealing with all the types of gfycat links is a convoluted mess considering these were all valid for the same clip:
Code:
https://gfycat.com/candidinsidiousgreatdane regular
https://giant.gfycat.com/CandidInsidiousGreatdane.webm direct video HQ
https://giant.gfycat.com/CandidInsidiousGreatdane.mp4 direct video HQ
https://thumbs.gfycat.com/CandidInsidiousGreatdane-mobile.mp4 direct video LQ
https://gfycat.com/ifr/candidinsidiousgreatdane minimal, but does not embed on Discord
https://gfycat.com/candidinsidiousgreatdane.gif no controls
https://thumbs.gfycat.com/CandidInsidiousGreatdane-size_restricted.gif GIF
https://thumbs.gfycat.com/CandidInsidiousGreatdane-mobile.jpg thumbnail
https://thumbs.gfycat.com/CandidInsidiousGreatdane.webp animated thumbnail?
https://thumbs.gfycat.com/CandidInsidiousGreatdane-max-1mb.gif old no longer used
https://thumbs.gfycat.com/CandidInsidiousGreatdane-max-14mb.gif old no longer used

here's the abhorrent regex I came up with to auto-fix dead links
Code:
	REGEX FLAVOR:
dunno it's the one from Notepad++, case insensitive, ". matches newline" OFF


	SEARCH 1: (replace gfycat.com with archive.org links)
([^/])https?:\/\/(?:[^/]*\.)?gfycat.com\/(?:ifr\/)?([A-z]*)([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
	REPLACE 1:
\1https://web.archive.org/web/0if_/https://thumbs.gfycat.com/\2-mobile.mp4


	SEARCH 2: (remove [IMG][/IMG] tags from replaced gif links to turn them into clickable links instead. Not thoroughly tested, unexpected consequences DANGER)
\[IMG\](.+?)\/web\/0if_(.+?)\[\/IMG\]
	REPLACE 2:
\1/web/0if_\2
The idea is to apply that quick 'n dirty Search&Replace to the whole ass forum database to fix dead links. I'm not even sure how the db looks like, that regex is just my guess based on BBcode. And I mean, dead gifs still won't preview, but at least they'll be clickable.
Just... I don't want to be responsible if things explode lmao please make backups if it's getting attempted
 

Matt Ponton

Founder
Staff member
Administrator
Standard Donor
The site is backed up each day, but also it'd have to involve a heavy job use for the MySQL database that is the database. It's not impossible, but not something I'd be looking to be doing any time soon.
 
ALL DOA6 DOA5 DOA4 DOA3 DOA2U DOAD
Top