Comments (2)
The main development branch is 1.0.0, and I’ve recently overcome one of the major issues I had with implementing these kind of things. It is very possible to make this in the 1.0.0 branch!
Images can only be loaded by providing an image_id
(which is a series of bytes, a string if you wish). This image_id
can be stored, but to get it initially you need either an Album
or an Artist
object, this means it’s not enough for me to just code the image implementation since you need another implementation just to use it!
So what needs to be in place is first the Session
handling (working on this right now), and after that a way to retrieve either an Album
or an Artist
. Once this is done, you can fetch the image for the Album
or Artist
. So, how is this to be done, you ask? Well, the absolutely quickest way to an image is implementing links, which can be used to retrieve an Album
or Artist
(or other objects such as playlists and tracks) directly!
However, depending on how you want to use this you might not want the quickest implementation. You can also convert a Link
to a Track
which will give you an Album
or Artist
. You can also convert a Link
to a Playlist
, which can give you tracks. Finally, you can retrieve a Playlist
from your PlaylistContainer
which is connected to your currently logged in user!
So, to give me a perspective, how would you want to use this? :)
PS: I can’t give you any promises of when it will be done. I’m a student and I work on Hallon only when I have time and motivation. What I can promise you is that I’ll work on image support earlier than I had intended before you posted this issue ;)
from hallon.
Spotify added support for directly linking to images with Spotify URIs in libspotify v0.0.8
that was released about ~3 weeks ago, and this functionality is now added to Hallon.
As for the test, I actually retrieved the image URI using the raw API. Support for other ways of retrieving the image is in the queue.
Callbacks aren’t supported yet (don’t need them), but I’ll create a separate issue for them.
from hallon.
Related Issues (20)
- Abort trap 6 and Segmentation fault issues when switching users HOT 3
- Friend listens HOT 3
- Facebook Logins to Spotify HOT 2
- Non Premium user error HOT 1
- Lock in Hallon::Session.initialize HOT 4
- Getting a playlist's id/href HOT 1
- Getting the number of subscribers of a playlist doesn't seems to work HOT 5
- High CPU usage during audio playback on Raspberry Pi 512MB HOT 6
- connected to facebook HOT 1
- Deadlock when loading search results HOT 2
- Release a new version of Hallon with FFI dependency locked down HOT 3
- Hallon on Heroku's Cedar Stack HOT 4
- Unable to load some images since upgrade to spotify v12.5.1 HOT 2
- Hallon Player always crashes on some songs HOT 1
- Can't run in Windows: 'sp_build_id' does not exist HOT 4
- Use plaything for audio playback in Hallon::Player instead of hallon-openal
- Artist won't load (even after a long time) HOT 1
- Playlist removal HOT 3
- New playlists don't appear on the desktop client HOT 1
- Hallon::Session.initialize IO.read('./spotify_appkey.key') causes server to crash every time it's run HOT 3
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 hallon.