xaizek / pms (License: GPLv3+) (since 2018-12-07)
Older version of Practical Music Search written in C++.
Commit 138bc778e804795153bb636b124f672a0330fff2

ArtistSort and AlbumArtistSort support will be implemented in future libmpdclient versions
Author: Kim Tore Jensen
Author date (UTC): 2015-08-21 14:59
Committer name: Kim Tore Jensen
Committer date (UTC): 2015-08-21 14:59
Parent(s): 422454591e942eedce55e210aaf8175f1356383d
Signing key:
Tree: 98fa4b90902d2b281d66f090e72f1717d96cede5
File Lines added Lines deleted
configure.ac 1 1
src/song.cpp 2 5
File configure.ac changed (mode: 100644) (index 7993b87..69aab8b)
... ... AC_PROG_MAKE_SET
23 23 AX_WITH_CURSES AX_WITH_CURSES
24 24 PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.0],, [AC_MSG_ERROR([glib 2.0 or newer is required])]) PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.0],, [AC_MSG_ERROR([glib 2.0 or newer is required])])
25 25 PKG_CHECK_MODULES([libzmq], [libzmq >= 3.0],, [AC_MSG_ERROR([ZeroMQ 3.x or newer is required])]) PKG_CHECK_MODULES([libzmq], [libzmq >= 3.0],, [AC_MSG_ERROR([ZeroMQ 3.x or newer is required])])
26 PKG_CHECK_MODULES([libmpdclient], [libmpdclient >= 2.9],, [AC_MSG_ERROR([libmpdclient 2.9 or newer is required])])
26 PKG_CHECK_MODULES([libmpdclient], [libmpdclient >= 2.11],, [AC_MSG_ERROR([libmpdclient 2.11 or newer is required])])
27 27
28 28 # Checks for header files. # Checks for header files.
29 29 AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h]) AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h])
File src/song.cpp changed (mode: 100644) (index 428f191..2807e09)
... ... Song::Song(const mpd_song * song)
38 38 file = Pms::tostring(mpd_song_get_uri(song)); file = Pms::tostring(mpd_song_get_uri(song));
39 39 artist = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_ARTIST, 0)); artist = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_ARTIST, 0));
40 40 albumartist = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_ALBUM_ARTIST, 0)); albumartist = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_ALBUM_ARTIST, 0));
41 /* FIXME: libmpdclient support for .*sort? */
42 //artistsort = Pms::tostring(mpd_song_get_tag(ARTISTSORT));
43 //albumartistsort = Pms::tostring(mpd_song_get_tag(ALBUMARTISTSORT));
44 artistsort = artist;
45 albumartistsort = albumartist;
41 artistsort = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_ARTIST_SORT, 0));
42 albumartistsort = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_ALBUM_ARTIST_SORT, 0));
46 43
47 44 title = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_TITLE, 0)); title = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_TITLE, 0));
48 45 album = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_ALBUM, 0)); album = Pms::tostring(mpd_song_get_tag(song, MPD_TAG_ALBUM, 0));
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/pms

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/pms

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master