diff --git a/README.md b/README.md index 9e1268c9..6fbdc529 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Stages (roughly in order of importance): - [x] Finally remove all images from this repo and reduce the size of repo (+ number of commits in repo) - [ ] Write a comprehensive README - [ ] Enable other countries -- [ ] Improve website +- [ ] Improve website + add protection for GCloud (because 5s per image ~= 500'000 images per month if sombody decides to leave the page open for so long xd) - [ ] Deal with integrity errors (see [TODO](#todo) below) - [ ] Update (and upload to storage) videos, if needed - [ ] Find a way to retrieve videos from Bing (identify that today's image is a video, etc.) diff --git a/src/website/scripts/homepage.js b/src/website/scripts/homepage.js index ef4a8fdf..6893c8bf 100644 --- a/src/website/scripts/homepage.js +++ b/src/website/scripts/homepage.js @@ -29,7 +29,7 @@ function waitFunc(func, callback, interval=20) { // ===================================================================================================================== const api_filepath = "api/us.json", - image_url_prefix = "https://raw.githubusercontent.com/npanuhin/bing-wallpaper-archive/master/api/US/images/"; + image_url_prefix = "https://storage.googleapis.com/npanuhin-bing-wallpaper-archive/US/images/"; const start_date = new Date(2017, 5, 10), // 2017-05-10: high resolution images start around here end_date = (d => new Date(d.setDate(d.getDate() - 1)))(new Date); // Yesterday