Improve album cover searching and cover manager, use HttpStatusCodeAttribute and QSslError for services

- Improve album cover manager
- Change art_automatic and art_manual to QUrl
- Refresh collection album covers when new album covers are fetched
- Fix automatic album cover searching for local files outside of the collection
- Make all Json services check HttpStatusCodeAttribute
- Show detailed SSL errors for Subsonic, Tidal and Qobuz
This commit is contained in:
Jonas Kvinge
2019-07-07 21:14:24 +02:00
parent c92a7967ea
commit 65780e1672
101 changed files with 1531 additions and 1239 deletions

View File

@@ -114,7 +114,7 @@ class EditTagDialog : public QDialog {
void FetchTagSongChosen(const Song &original_song, const Song &new_metadata);
#endif
void ArtLoaded(quint64 id, const QImage &scaled, const QImage &original);
void AlbumCoverLoaded(const quint64 id, const QUrl &cover_url, const QImage &scaled, const QImage &original);
void LoadCoverFromFile();
void SaveCoverToFile();
@@ -139,7 +139,7 @@ class EditTagDialog : public QDialog {
};
Song *GetFirstSelected();
void UpdateCoverOf(const Song &selected, const QModelIndexList &sel, const QString &cover);
void UpdateCoverOf(const Song &selected, const QModelIndexList &sel, const QUrl &cover_url);
bool DoesValueVary(const QModelIndexList &sel, const QString &id) const;
bool IsValueModified(const QModelIndexList &sel, const QString &id) const;