Comments (2)
@daviszerro Hey! Thank you for the suggestion, this could be a good addition, however, currently, the way venus pulls images is using https://source.unsplash.com/
, and the URLs returned by that request look like this:
https://images.unsplash.com/photo-1602452605960-c46e781e1ecf?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=1080&ixlib=rb-1.2.1&q=80&w=1920
As far as I can tell, there is no image identifier there, which can point back to the original image source like the URL example you gave.
https://unsplash.com/photos/1602452605960
https://unsplash.com/photos/c46e781e1ecf
https://unsplash.com/photos/1602452605960-c46e781e1ecf
The above links, for example, don't point to anything regarding the original image source.
I also took a quick look at the HTML and network requests, and there does not seem to be any more information that could help there. So in order to get that feature to work, it would require changing the way images are fetched. I'm open to hearing any suggestions.
from venus.
I took a look at the browser plugin tabliss I used, which also has feature to fetch photos from Unsplash and has a refer link, they get the refer link like this
. It's not hard to read thanks for their code quailty.
Then I found the unsplash API they used, originally written here, do will return JSON info like this:
"links": {
"self": "https://api.unsplash.com/photos/Dwu85P9SOIk",
"html": "https://unsplash.com/photos/Dwu85P9SOIk",
"download": "https://unsplash.com/photos/Dwu85P9SOIk/download"
"download_location": "https://api.unsplash.com/photos/Dwu85P9SOIk/download"
},
I guess this is what we looking for?
from venus.
Related Issues (16)
- Permanently save images HOT 2
- Support for Linux Xfce4 HOT 5
- Support Unsplash collections HOT 2
- Cant find a config file HOT 1
- Support Multiple Monitors HOT 2
- Consider outsourcing venus_demo.gif HOT 3
- pywal not implemeted for Darwin HOT 1
- malformatted images from unsplash
- Resolution Settings should filter images and not resize images
- hangs when running on Windows 11 with Python 3.12
- Windows 10 HOT 3
- Baking in a scheduler HOT 4
- Verified working in Gentoo HOT 7
- freebsd support HOT 1
- Not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from venus.