From 2e1b1fc29a735c0c08d793cc456bf1918b3e1863 Mon Sep 17 00:00:00 2001 From: Peter Lyons Date: Mon, 10 Nov 2025 21:20:38 -0700 Subject: [PATCH] Add all missing photo URL size suffixes to Photo struct This commit adds support for all photo size suffixes documented in the Flickr API documentation (https://www.flickr.com/services/api/misc.urls.html): Added size suffixes: - url_b: large 1024px - url_w: small 400px - url_h: large 1600px (has unique secret) - url_k: large 2048px (has unique secret) - url_3k: extra large 3072px (has unique secret) - url_4k: extra large 4096px (has unique secret) - url_f: extra large 4096px (2:1 aspect ratio only, has unique secret) - url_5k: extra large 5120px (has unique secret) - url_6k: extra large 6144px (has unique secret) Also updated comments for existing fields to include dimensions and marked url_l as deprecated in favor of the more standard url_b suffix. --- people/people.go | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/people/people.go b/people/people.go index c464836..4b47851 100644 --- a/people/people.go +++ b/people/people.go @@ -28,16 +28,25 @@ type Photo struct { Server string `xml:"server,attr"` Tags string `xml:"tags,attr"` Title string `xml:"title,attr"` - URLC string `xml:"url_c,attr"` // medium 800 - URLL string `xml:"url_l,attr"` // large - URLM string `xml:"url_m,attr"` // medium 500 - URLN string `xml:"url_n,attr"` // small - URLO string `xml:"url_o,attr"` // URL of original size image - URLQ string `xml:"url_q,attr"` // large square - URLS string `xml:"url_s,attr"` // square - URLSQ string `xml:"url_sq,attr"` // square - URLT string `xml:"url_t,attr"` // thumbnail - URLZ string `xml:"url_z,attr"` // medium 640 + URLB string `xml:"url_b,attr"` // large 1024 + URLC string `xml:"url_c,attr"` // medium 800 + URLF string `xml:"url_f,attr"` // extra large 4096 (2:1 aspect ratio only) + URLH string `xml:"url_h,attr"` // large 1600 + URLK string `xml:"url_k,attr"` // large 2048 + URL3K string `xml:"url_3k,attr"` // extra large 3072 + URL4K string `xml:"url_4k,attr"` // extra large 4096 + URL5K string `xml:"url_5k,attr"` // extra large 5120 + URL6K string `xml:"url_6k,attr"` // extra large 6144 + URLL string `xml:"url_l,attr"` // large (deprecated, use URLB) + URLM string `xml:"url_m,attr"` // medium 500 + URLN string `xml:"url_n,attr"` // small 320 + URLO string `xml:"url_o,attr"` // original + URLQ string `xml:"url_q,attr"` // large square 150 + URLS string `xml:"url_s,attr"` // small square 75 + URLSQ string `xml:"url_sq,attr"` // small square 75 (duplicate of URLS) + URLT string `xml:"url_t,attr"` // thumbnail 100 + URLW string `xml:"url_w,attr"` // small 400 + URLZ string `xml:"url_z,attr"` // medium 640 Views string `xml:"views,attr"` }