Skip to content

Commit

Permalink
Merge branch 'subsonic'
Browse files Browse the repository at this point in the history
Conflicts:
	data/data.qrc
  • Loading branch information
hatstand committed Jan 24, 2013
2 parents f27cf7b + a5f6356 commit fe2fb78
Show file tree
Hide file tree
Showing 16 changed files with 937 additions and 2 deletions.
5 changes: 4 additions & 1 deletion data/data.qrc
@@ -1,6 +1,7 @@
<RCC>
<qresource prefix="/">
<file>blank.ttf</file>
<file>clementine_remote_qr.png</file>
<file>clementine-spotify-public.pem</file>
<file>currenttrack_bar_left.png</file>
<file>currenttrack_bar_mid.png</file>
Expand Down Expand Up @@ -296,6 +297,8 @@
<file>providers/somafm.png</file>
<file>providers/songkick.png</file>
<file>providers/soundcloud.png</file>
<file>providers/subsonic-32.png</file>
<file>providers/subsonic.png</file>
<file>providers/ubuntuone.png</file>
<file>providers/wikipedia.png</file>
<file>sample.mood</file>
Expand Down Expand Up @@ -337,6 +340,7 @@
<file>schema/schema-40.sql</file>
<file>schema/schema-41.sql</file>
<file>schema/schema-42.sql</file>
<file>schema/schema-43.sql</file>
<file>schema/schema-4.sql</file>
<file>schema/schema-5.sql</file>
<file>schema/schema-6.sql</file>
Expand All @@ -358,6 +362,5 @@
<file>volumeslider-handle_glow.png</file>
<file>volumeslider-handle.png</file>
<file>volumeslider-inset.png</file>
<file>clementine_remote_qr.png</file>
</qresource>
</RCC>
Binary file added data/providers/subsonic-32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/providers/subsonic.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions data/schema/schema-43.sql
@@ -0,0 +1,48 @@
CREATE TABLE subsonic_songs(
title TEXT,
album TEXT,
artist TEXT,
albumartist TEXT,
composer TEXT,
track INTEGER,
disc INTEGER,
bpm REAL,
year INTEGER,
genre TEXT,
comment TEXT,
compilation INTEGER,

length INTEGER,
bitrate INTEGER,
samplerate INTEGER,

directory INTEGER NOT NULL,
filename TEXT NOT NULL,
mtime INTEGER NOT NULL,
ctime INTEGER NOT NULL,
filesize INTEGER NOT NULL,
sampler INTEGER NOT NULL DEFAULT 0,
art_automatic TEXT,
art_manual TEXT,
filetype INTEGER NOT NULL DEFAULT 0,
playcount INTEGER NOT NULL DEFAULT 0,
lastplayed INTEGER,
rating INTEGER,
forced_compilation_on INTEGER NOT NULL DEFAULT 0,
forced_compilation_off INTEGER NOT NULL DEFAULT 0,
effective_compilation NOT NULL DEFAULT 0,
skipcount INTEGER NOT NULL DEFAULT 0,
score INTEGER NOT NULL DEFAULT 0,
beginning INTEGER NOT NULL DEFAULT 0,
cue_path TEXT,
unavailable INTEGER DEFAULT 0,
effective_albumartist TEXT,
etag TEXT
);

CREATE VIRTUAL TABLE subsonic_songs_fts USING fts3 (
ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsgenre, ftscomment,
tokenize=unicode
);

UPDATE schema_version SET version=43;
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -194,6 +194,9 @@ set(SOURCES
internet/somafmservice.cpp
internet/somafmurlhandler.cpp
internet/soundcloudservice.cpp
internet/subsonicservice.cpp
internet/subsonicsettingspage.cpp
internet/subsonicurlhandler.cpp

library/groupbydialog.cpp
library/library.cpp
Expand Down Expand Up @@ -478,6 +481,9 @@ set(HEADERS
internet/somafmservice.h
internet/somafmurlhandler.h
internet/soundcloudservice.h
internet/subsonicservice.h
internet/subsonicsettingspage.h
internet/subsonicurlhandler.h

library/groupbydialog.h
library/library.h
Expand Down Expand Up @@ -660,6 +666,7 @@ set(UI
internet/magnatunesettingspage.ui
internet/searchboxwidget.ui
internet/spotifysettingspage.ui
internet/subsonicsettingspage.ui

library/groupbydialog.ui
library/libraryfilterwidget.ui
Expand Down
2 changes: 1 addition & 1 deletion src/core/database.cpp
Expand Up @@ -37,7 +37,7 @@
#include <QVariant>

const char* Database::kDatabaseFilename = "clementine.db";
const int Database::kSchemaVersion = 42;
const int Database::kSchemaVersion = 43;
const char* Database::kMagicAllSongsTables = "%allsongstables";

int Database::sNextConnectionId = 1;
Expand Down
3 changes: 3 additions & 0 deletions src/internet/internetmodel.cpp
Expand Up @@ -29,7 +29,9 @@
#include "internetservice.h"
#include "savedradio.h"
#include "somafmservice.h"
#include "groovesharkservice.h"
#include "soundcloudservice.h"
#include "subsonicservice.h"
#include "core/closure.h"
#include "core/logging.h"
#include "core/mergedproxymodel.h"
Expand Down Expand Up @@ -94,6 +96,7 @@ InternetModel::InternetModel(Application* app, QObject* parent)
#ifdef HAVE_SPOTIFY
AddService(new SpotifyService(app, this));
#endif
AddService(new SubsonicService(app, this));
#ifdef HAVE_UBUNTU_ONE
AddService(new UbuntuOneService(app, this));
#endif
Expand Down

0 comments on commit fe2fb78

Please sign in to comment.