mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-27 08:43:01 +01:00
Fix musicbrainz tag fetcher
This commit is contained in:
parent
ad2b567216
commit
388fce358a
@ -467,7 +467,7 @@ void TagReader::SetVorbisComments(TagLib::Ogg::XiphComment *vorbis_comments, con
|
|||||||
}
|
}
|
||||||
|
|
||||||
pb::tagreader::SongMetadata_Type TagReader::GuessFileType(TagLib::FileRef *fileref) const {
|
pb::tagreader::SongMetadata_Type TagReader::GuessFileType(TagLib::FileRef *fileref) const {
|
||||||
|
|
||||||
if (dynamic_cast<TagLib::RIFF::WAV::File*>(fileref->file())) return pb::tagreader::SongMetadata_Type_WAV;
|
if (dynamic_cast<TagLib::RIFF::WAV::File*>(fileref->file())) return pb::tagreader::SongMetadata_Type_WAV;
|
||||||
if (dynamic_cast<TagLib::FLAC::File*>(fileref->file())) return pb::tagreader::SongMetadata_Type_FLAC;
|
if (dynamic_cast<TagLib::FLAC::File*>(fileref->file())) return pb::tagreader::SongMetadata_Type_FLAC;
|
||||||
if (dynamic_cast<TagLib::WavPack::File*>(fileref->file())) return pb::tagreader::SongMetadata_Type_WAVPACK;
|
if (dynamic_cast<TagLib::WavPack::File*>(fileref->file())) return pb::tagreader::SongMetadata_Type_WAVPACK;
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
#include "core/network.h"
|
#include "core/network.h"
|
||||||
#include "core/timeconstants.h"
|
#include "core/timeconstants.h"
|
||||||
|
|
||||||
const char *AcoustidClient::kClientId = "76JYVgslck";
|
const char *AcoustidClient::kClientId = "0qjUoxbowg";
|
||||||
const char *AcoustidClient::kUrl = "http://api.acoustid.org/v2/lookup";
|
const char *AcoustidClient::kUrl = "http://api.acoustid.org/v2/lookup";
|
||||||
const int AcoustidClient::kDefaultTimeout = 5000; // msec
|
const int AcoustidClient::kDefaultTimeout = 5000; // msec
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user