|
Line
Link Here
|
|
-- |
|
|
| 1 |
ext/libclementine-tagreader/tagreader.cpp | 6 ++++++ |
|
ext/libclementine-tagreader/tagreader.cpp | 6 ++++++ |
| 2 |
ext/libclementine-tagreader/tagreader.h | 1 + |
1 |
ext/libclementine-tagreader/tagreader.h | 1 + |
| 3 |
src/songinfo/ultimatelyricsprovider.cpp | 5 +++++ |
2 |
src/songinfo/ultimatelyricsprovider.cpp | 5 +++++ |
| 4 |
src/songinfo/ultimatelyricsprovider.h | 1 + |
3 |
src/songinfo/ultimatelyricsprovider.h | 1 + |
| 5 |
4 files changed, 13 insertions(+) |
4 |
4 files changed, 13 insertions(+) |
| 6 |
-- a/ext/libclementine-tagreader/tagreader.cpp |
5 |
++ b/ext/libclementine-tagreader/tagreader.cpp |
|
Lines 125-130
TagReader::TagReader()
Link Here
|
| 125 |
network_(new QNetworkAccessManager), |
125 |
network_(new QNetworkAccessManager), |
| 126 |
kEmbeddedCover("(embedded)") {} |
126 |
kEmbeddedCover("(embedded)") {} |
| 127 |
|
127 |
|
|
|
128 |
TagReader::~TagReader() |
| 129 |
{ |
| 130 |
delete factory_; |
| 131 |
delete network_; |
| 132 |
} |
| 133 |
|
| 128 |
void TagReader::ReadFile(const QString& filename, |
134 |
void TagReader::ReadFile(const QString& filename, |
| 129 |
pb::tagreader::SongMetadata* song) const { |
135 |
pb::tagreader::SongMetadata* song) const { |
| 130 |
const QByteArray url(QUrl::fromLocalFile(filename).toEncoded()); |
136 |
const QByteArray url(QUrl::fromLocalFile(filename).toEncoded()); |
| 131 |
-- a/ext/libclementine-tagreader/tagreader.h |
137 |
++ b/ext/libclementine-tagreader/tagreader.h |
|
Lines 50-55
class FileRefFactory;
Link Here
|
| 50 |
class TagReader { |
50 |
class TagReader { |
| 51 |
public: |
51 |
public: |
| 52 |
TagReader(); |
52 |
TagReader(); |
|
|
53 |
~TagReader(); |
| 53 |
|
54 |
|
| 54 |
void ReadFile(const QString& filename, |
55 |
void ReadFile(const QString& filename, |
| 55 |
pb::tagreader::SongMetadata* song) const; |
56 |
pb::tagreader::SongMetadata* song) const; |
| 56 |
-- a/src/songinfo/ultimatelyricsprovider.cpp |
57 |
++ b/src/songinfo/ultimatelyricsprovider.cpp |
|
Lines 34-39
UltimateLyricsProvider::UltimateLyricsPr
Link Here
|
| 34 |
redirect_count_(0), |
34 |
redirect_count_(0), |
| 35 |
url_hop_(false) {} |
35 |
url_hop_(false) {} |
| 36 |
|
36 |
|
|
|
37 |
UltimateLyricsProvider::~UltimateLyricsProvider() |
| 38 |
{ |
| 39 |
delete network_; |
| 40 |
} |
| 41 |
|
| 37 |
void UltimateLyricsProvider::FetchInfo(int id, const Song& metadata) { |
42 |
void UltimateLyricsProvider::FetchInfo(int id, const Song& metadata) { |
| 38 |
// Get the text codec |
43 |
// Get the text codec |
| 39 |
const QTextCodec* codec = |
44 |
const QTextCodec* codec = |
| 40 |
-- a/src/songinfo/ultimatelyricsprovider.h |
45 |
++ b/src/songinfo/ultimatelyricsprovider.h |
|
Lines 33-38
class UltimateLyricsProvider : public So
Link Here
|
| 33 |
|
33 |
|
| 34 |
public: |
34 |
public: |
| 35 |
UltimateLyricsProvider(); |
35 |
UltimateLyricsProvider(); |
|
|
36 |
~UltimateLyricsProvider(); |
| 36 |
|
37 |
|
| 37 |
static const int kRedirectLimit; |
38 |
static const int kRedirectLimit; |
| 38 |
|
39 |
|