Giter Site home page Giter Site logo

Comments (7)

luigibrosse avatar luigibrosse commented on September 14, 2024 1

Thanks. Looks good on my end. Can be closed.

PS: great job with your documentation / FAQ.

from spotlight-downloader.

ORelio avatar ORelio commented on September 14, 2024

Well, there is a limit, but not on the amount of images you can download. The API currently returns one random image. You cannot specifically request for a different image so as you request random images, it becomes more and more likely that images returned by the API are already in the archive. SpotlightDL does not know when to stop, so there is a hard limit of 50 consecutive unsuccessful API calls (images already archived) that will cause the download operation to stop. However, you can launch download again at a later time to discover more images as I suppose that they are periodically renewed. Since I created this app, my Archive folder progressively grew to around 1000 images at the moment.

from spotlight-downloader.

luigibrosse avatar luigibrosse commented on September 14, 2024

Thanks a lot for your explanation. I dug into your code and I realized that there was this 50 hard limit. However, having launched maybe 50 times the script in the last few days, I have managed to get only one extra image. This seems very low to me, especially considering the amount of pictures you mentioned or for that matter if you go to https://spotlight.it-notes.ru, the website has roughly 1200 pictures as well. So this means that the Spotlight service has probably a lot in stock.
Even if we admit that they are rotating them periodically and / or not having all of them available, I still believe that I should get more in my archive. I tried also to connect to the endpoint directly (via webbrowser) and I am able to get many more pictures that way (that are not in my archive). For me, this is a mystery.

PS: by the way, I am not sure that discussing this in an issue in github is the right place. I wouldn't mind doing it via mail / chat (and we could do it in French as well).

from spotlight-downloader.

ORelio avatar ORelio commented on September 14, 2024

Indeed, 75 is unusually low. Just launched the download script 5 times and got respectively 303, 260, 342, 340 and 321 images, for a total of 369 unique images when counting all 5 attempts.

As per https://github.com/ORelio/Spotlight-Downloader#spotlight-api some parameters are set depending on your computer. SpotlightDL will set locale, current screen res (or fake huge res if asked to), language and country depending on what is set on your computer, so if you use the link in the Readme which has a different locale, language, date and/or country, images returned by the API may be different.

For discussing in French you may drop me your email by posting a comment on this blog post.

from spotlight-downloader.

luigibrosse avatar luigibrosse commented on September 14, 2024

I think you were spot on. On the API link you sent, everything is set as en_US. However, my computer was set on se_SW, and as a consequence, I was getting very little hits. Once the region changed, I now have an archive with more than 400+ pics. However, I need to revert to my original region. Which means that if I use the update-archive-and-lockscreen script, my archive will not increase. Would you consider exposing the locale in your API, so that it would be possible to give that as a potential parameter to SpotlightDownloader?

PS: Apologies for not contributing a PR, but I can "understand" c# but I cannot write it.

from spotlight-downloader.

ORelio avatar ORelio commented on September 14, 2024

Implemented --locale as per release 1.4.1.

from spotlight-downloader.

luigibrosse avatar luigibrosse commented on September 14, 2024

Will test and let you know.

from spotlight-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.