lfranchi / libechonest Goto Github PK
View Code? Open in Web Editor NEWA C++/Qt wrapper around the wonderful echo nest api
License: Other
A C++/Qt wrapper around the wonderful echo nest api
License: Other
Example of queries sent from Tomahawk for station with artists similar to "Turmion Kätilöt"
http://paste.ee/p/vGOcC
2:04 PM <•lfranchi> in which context?
2:05 PM <theli_ua> because of your "convert spaces to plus signs" (which actually is not relevant anymore, echonest works just fine with spaces) ... you convert part of query to percent encoding, then you pass that to addurlqueryparam, later qUrl does percent encoding again
2:06 PM <theli_ua> so, non ascii things gets percent encoded, later QUrl percent encodes that again, percent encoding percent signs
Hi,
I'm preparing a new debian package. While testing the package I found one little spelling mistake
$ codespell --quiet-level=3
./libechonest-2.3.1/tests/PlaylistTest.cpp:585: usefull ==> useful
Cheers,
Justin-Time
Fails with Qt4:
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Track.h:21,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Song.h:22,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Artist.h:26,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Artist.cpp:17:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/AudioSummary.h:139:56: error: ISO C++17 does not allow dynamic exception specifications
139 | void parseFullAnalysis( QNetworkReply* reply ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Track.h:216:47: error: ISO C++17 does not allow dynamic exception specifications
216 | static Track parseProfile( QNetworkReply* ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Song.h:229:58: error: ISO C++17 does not allow dynamic exception specifications
229 | static QVector< Song > parseIdentify( QNetworkReply* ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Song.h:236:49: error: ISO C++17 does not allow dynamic exception specifications
236 | void parseInformation( QNetworkReply* reply ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Song.h:241:60: error: ISO C++17 does not allow dynamic exception specifications
241 | static QVector<Song> parseSearch( QNetworkReply* reply ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Artist.h:303:44: error: ISO C++17 does not allow dynamic exception specifications
303 | int parseProfile( QNetworkReply* ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Artist.h:371:55: error: ISO C++17 does not allow dynamic exception specifications
371 | static Artists parseSimilar( QNetworkReply* ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Artist.h:376:54: error: ISO C++17 does not allow dynamic exception specifications
376 | static Artists parseSearch( QNetworkReply* ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Artist.h:381:56: error: ISO C++17 does not allow dynamic exception specifications
381 | static Artists parseTopHottt( QNetworkReply* ) throw( ParseError );
| ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_libechonest/libechonest/work/libechonest-2.3.1/src/Artist.h:386:57: error: ISO C++17 does not allow dynamic exception specifications
386 | static TermList parseTopTerms( QNetworkReply* ) throw( ParseError );
| ^~~~~
. . .
I'm not sure if this is within the scope of a repo issue (is it?) but I'm having problems linking the QtCore and QtNetwork libraries when I compile. Specifically:
alexcannon$ gcc -g -Wall -o geoEchoNest geoEchoNest.c -lechonest -lQtCore -lQtNetwork
In file included from geoEchoNest.c:6:
In file included from /usr/local/include/echonest/Artist.h:22:
In file included from /usr/local/include/echonest/ArtistTypes.h:21:
/usr/local/include/echonest/Util.h:22:10: fatal error: 'QDebug' file not found
#include <QDebug>
^
1 error generated.
I even tried adding -L/usr/local/lib/QtCore.framework/
in case QtCore wasn't in the "standard path" (whatever that means):
alexcannon$ gcc -g -Wall -o geoEchoNest geoEchoNest.c -lechonest -L/usr/local/lib/QtCore.framework/ -lQtCore -lQtNetwork
...with the same results. What am I doing wrong here? I installed Qt in /usr/local/ as well as QJSON before installing libechonest via the instructions in the README.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.