Sayonara Player
Loading...
Searching...
No Matches
Cover::Fetcher::Audioscrobbler Class Reference
Inheritance diagram for Cover::Fetcher::Audioscrobbler:
Cover::Fetcher::Base

Public Member Functions

bool canFetchCoverDirectly () const override
 Can the cover be fetched from the adress without starting a two-stage query?
QStringList parseAddresses (const QByteArray &website) const override
 Get addresses from the downloaded website. If can_fetch_cover_directly returns true, this method is not called.
QString albumAddress (const QString &artist, const QString &album) const override
 Get the album search url. This is called if is_album_supported returns true.
QString artistAddress (const QString &artist) const override
 Get the artist search url. This is called if is_artist_supported returns true.
int estimatedSize () const override
 get_estimated_size. Rough image size of the CoverFetchInterface
virtual QString identifier () const final
 get name of CoverFetcherInterface like e.g. Discogs
virtual QString fulltextSearchAddress (const QString &str) const
 Get a custom search address This is called if is_search_supported returns true.
virtual QString radioSearchAddress (const QString &stationName, const QString &stationUrl) const
virtual bool isWebserviceFetcher () const

Protected Member Functions

QString searchStringFromRadioStation (const QString &stationName, const QString &stationUrl) const

Member Function Documentation

◆ albumAddress()

QString Cover::Fetcher::Audioscrobbler::albumAddress ( const QString & artist,
const QString & album ) const
nodiscardoverridevirtual

Get the album search url. This is called if is_album_supported returns true.

Parameters
artistartist name
albumalbum name
Returns

Reimplemented from Cover::Fetcher::Base.

◆ artistAddress()

QString Cover::Fetcher::Audioscrobbler::artistAddress ( const QString & artist) const
nodiscardoverridevirtual

Get the artist search url. This is called if is_artist_supported returns true.

Parameters
artistartist name
Returns

Reimplemented from Cover::Fetcher::Base.

◆ canFetchCoverDirectly()

bool Cover::Fetcher::Audioscrobbler::canFetchCoverDirectly ( ) const
nodiscardoverridevirtual

Can the cover be fetched from the adress without starting a two-stage query?

Returns

Implements Cover::Fetcher::Base.

◆ estimatedSize()

int Cover::Fetcher::Audioscrobbler::estimatedSize ( ) const
nodiscardoverridevirtual

get_estimated_size. Rough image size of the CoverFetchInterface

Returns
e.g. 300px

Implements Cover::Fetcher::Base.

◆ fulltextSearchAddress()

virtual QString Cover::Fetcher::Base::fulltextSearchAddress ( const QString & str) const
virtualinherited

Get a custom search address This is called if is_search_supported returns true.

Parameters
strsearch string
Returns

Reimplemented in Cover::Fetcher::Allmusic, Cover::Fetcher::Amazon, Cover::Fetcher::Deezer, Cover::Fetcher::DirectFetcher, Cover::Fetcher::Discogs, Cover::Fetcher::Google, Cover::Fetcher::Website, and Cover::Fetcher::Yandex.

◆ identifier()

virtual QString Cover::Fetcher::Base::identifier ( ) const
finalvirtualinherited

get name of CoverFetcherInterface like e.g. Discogs

Returns

◆ parseAddresses()

QStringList Cover::Fetcher::Audioscrobbler::parseAddresses ( const QByteArray & website) const
nodiscardoverridevirtual

Get addresses from the downloaded website. If can_fetch_cover_directly returns true, this method is not called.

Parameters
websitewebsite data
Returns

Implements Cover::Fetcher::Base.