Jump to content

[TR] Baker River to Ross Lake in Technicolor - Mystery-N.Despair-Pioneer-Swiss-Spectre-Challenger 7/25/2017


Recommended Posts

  • Replies 29
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted (edited)

Edit: Don't want to hijack this thread so I'm moving this to cc.news.

 

 

 

 

 

The workaround

I'm flying to Seatac tomorrow for a few weeks of Cascades fun, so this issue has been bugging me while I've been trying to research various routes. I developed a workaround that will at least allow you to download the photos for any TR that has broken images. If you have have a Unix-based environment with GNU Parallel installed and know how to use Bash or another terminal, I wrote a short script that takes as input a cascadeclimbers.com TR URL and transforms the broken links into ones that work. Then, it saves the images into your working directory. I've tried it with this TR and a few other ones with broken images and it appears to work as advertised.

get_tr_pics.sh

Example usage:

5d080b024346b_ScreenShot2019-06-17at5_49_23PM.thumb.png.ef223e4502fc4a09247af3fc03d19d0a.png5d080b03cb2cc_ScreenShot2019-06-17at5_49_32PM.png.2aac591035c0d95e07d113d2dd000c0c.png

The issue

The issue appears to involve the "image proxy" of Invision, the software that runs the forum. As I understand it, the "image proxy" takes the URL of an image and fetches it through the server (rather than having your computer connect directly to the website), then forwards the image on to the user. It appears that a large subset of URLs for images that are hosted on cascadeclimbers.com, but nevertheless get routed through the proxy, either don't work anymore (are "dead links"), aren't compatible with the URL format the proxy expects, (http vs. https, www vs. no www, etc.), or both. I think all of the images are still living on the server, but they're not accessible through the forum's image proxy, which means you have to get the original, un-proxied URL yourself, and request that directly from the site.

 

To see this in action yourself, instead of using my script, take a broken URL like the following:

Quote

Extract the original URL, pre-proxy:

Quote

Replace http with https, and remove the www.:

Quote

And you will be able to get the pretty photo.

Edited by Marcus Russi
Moving to cc.news
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...