Giter VIP home page Giter VIP logo

Comments (6)

sal0max avatar sal0max commented on June 15, 2024

Thanks a lot for the message, @lucamp !

Looks like NG hasn't updated its RSS feed (which the app uses as source) since that date:
http://feeds.nationalgeographic.com/ng/photography/photo-of-the-day/

This happened already once before for some days, until they fixed this server-side issue. However, it seems that this time they revamped their entire web presence including an overhauled site and relying on social media like Facebook and Instagram, giving me doubt that they will provide an "old fashioned" RSS feed again.
In that case, I'd have to check if I could parse the site, instead. But what I've seen up to now that looks very hard.

from muzei-nationalgeographic.

AnthillSudoku avatar AnthillSudoku commented on June 15, 2024

I see what you mean and I found:

http://www.nationalgeographic.com/photography/photo-of-the-day points always to the latest photo of the day

If I visit that page and open firefox's page info (CTRL+I) there are some interesting fields:

og:image = link that point directly to the picture to download
og:title = photo's title
Photo's full description is only in the page content

Unfortunately I am not able to go far than this as I do not know javascript

Luca

from muzei-nationalgeographic.

sal0max avatar sal0max commented on June 15, 2024

Yes, it is indeed relatively simple to get the current photo of the day. However, displaying a random one seems much harder. But maybe the current photo is already the main purpose this Muzei plugin is used and I could reduce the functionality to that.

Good thinking, thanks! I will reflect on that.

from muzei-nationalgeographic.

AnthillSudoku avatar AnthillSudoku commented on June 15, 2024

Sure, the main goal of your program is to have the latest photo of the day.

But if you are wiling to put effort in the random mode maybe there is a
way to have it working.

NG for muzei saves a single copy of the photo of the day inside a
folder, as soon as the folder is populated the program picks up a random
one. The folder must not grow to big, so let it say only the latest 30
photos remain saved and the other are automatically removed.

According to "National Geographic Terms of Service" this will not
infringe it:

http://www.nationalgeographic.com/community/terms/ section "
Intellectual Property Issues" paragraph

Pursuant to the copyright and trademark laws of the United States, /you
agree/:

  1. That you may only download Content that National Geographic
    designates as offered for download to any single computer a single
    copy of any Content for personal and noncommercial use.

Luca

On 16/09/16 15:38, msal wrote:

Yes, it is indeed relatively simple to get the current photo of the
day. However, displaying a random one seems much harder. But maybe the
current photo is already the main purpose this Muzei plugin is used
and I could reduce the functionality to that.

Good thinking, thanks! I will reflect on that.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOYTxbNHCtawTD89Pj8yg5Js03aJvEZdks5qqpvhgaJpZM4J98gH.

from muzei-nationalgeographic.

sal0max avatar sal0max commented on June 15, 2024

Fixed with 319fbe1

from muzei-nationalgeographic.

AnthillSudoku avatar AnthillSudoku commented on June 15, 2024

Stiil waiting for the updated version to be released on F-droid, hope it do not take them too much.
Meanwhile, thanks for your efforts.

Luca

from muzei-nationalgeographic.

Related Issues (14)

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.