-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes issue #19 - add Wikimedia Image of the Day support #39
base: master
Are you sure you want to change the base?
Conversation
Hello @hecris! Thanks for updating the PR.
Comment last updated on October 02, 2018 at 16:47 Hours UTC |
Thanks for the PR. As you can see the tests have failed mainly because of PEP8 issues. If you wish you can make another commit making PEP8 changes, if not, simply tell me and I will do them. Also please change the README file accordingly. |
dwc/wikimedia_wallpaper_changer.py
Outdated
|
||
def picpath_wikimedia(saveDir, SHOW_DEBUG): | ||
photo_url = getphotourl() | ||
wikimedia_path = saveDir + 'Wikimedia:' + str(date) + str(random.randint(1, 100000)) + '.jpg' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need of random as Wikimedia uploads only one picture every day.
Really great job! @hecris Let me analyse the code and I will merge it if it works it correctly. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but, the images being scrapped are not of higher quality.
The original image has to be resized to fit the desktop. This is probably what causes the lack of quality. What do you suggest? |
Really appreciate your effort, but it seems you are scrapping the image from Wikimedia homepage but as you can see it is not of higher quality. For example today's picture from Wikimedia homepage: https://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Juvenile_Nubian_ibex_in_Mitzpe_Ramon_%2840409%29.jpg/500px-Juvenile_Nubian_ibex_in_Mitzpe_Ramon_%2840409%29.jpg, and this is real picture: https://upload.wikimedia.org/wikipedia/commons/6/64/Juvenile_Nubian_ibex_in_Mitzpe_Ramon_(40409).jpg |
Got it, I'll change it |
Don't forget to write your name in the Contributors section! As always, let me know if any help is required. |
@ayan-b I just committed a change that should get the highest quality image available. Let me know if this works! PS could you add me to the contributors section? (if the changes are successful) |
Make a commit adding yourself to the contributors section. 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please squash all the commits? Also, I guess, it is called Wikimedia Image of the Day, not Wikipedia Image of the Day.
closes #19