thumbnail of xhinako___888 2026-02-13-8.15.114.jpg
thumbnail of xhinako___888 2026-02-13-8.15.114.jpg
xhinako___... jpg
(234.83 KB, 1206x2144)
thumbnail of xhinako___888 20260213 DUscGK5ifUv.mp4
thumbnail of xhinako___888 20260213 DUscGK5ifUv.mp4
xhinako___... mp4
(2.28 MB, 1080x1920 vp9)
(defun fix-storynames ()
  (interactive)
  (exchange-point-and-mark)
  (save-excursion (while (search-forward "'s" (region-end) t)
     (replace-match " ")))
  (save-excursion
    (while (search-forward " story" (region-end) t)
      (replace-match "")))
  (save-excursion
    (while (re-search-forward "-\\([1-9]\\)-" (region-end) t)
      (replace-match "-0\\1-")
      (backward-char))))

Since IG now sends me an error 429 whenever I try downloading stories with gallery-dl, I use a browser addon instead. I wrote this little function to rename filenames to a format similar to my gallery-dl template. I call it in the minibuffer after selecting a region in Wdired.

I use yt-dlp to download video stories since it can get the full resolution, while the browser addon gets only the 1280p version.