Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fixed: scraper fallback logic #3220

Merged
merged 1 commit into from

1 participant

@ghost

code ended up selecting the default album scraper for artists

spiff fixed: scraper fallback logic
code ended up selecting the default album scraper for artists
4836a59
@jmarshallnz jmarshallnz merged commit 6702193 into xbmc:master
@ghost Unknown referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 8, 2013
  1. fixed: scraper fallback logic

    spiff authored
    code ended up selecting the default album scraper for artists
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 10 deletions.
  1. +11 −10 xbmc/music/MusicDatabase.cpp
View
21 xbmc/music/MusicDatabase.cpp
@@ -4482,21 +4482,22 @@ bool CMusicDatabase::GetScraperForPath(const CStdString& strPath, ADDON::Scraper
{
strSQL = PrepareSQL("select * from content where strPath='musicdb://albums/%i/'",params.GetAlbumId());
m_pDS->query(strSQL.c_str());
+ if (m_pDS->eof()) // general albums setting
+ {
+ strSQL = PrepareSQL("select * from content where strPath='musicdb://albums/'");
+ m_pDS->query(strSQL.c_str());
+ }
}
if (m_pDS->eof() && params.GetArtistId() != -1) // check artist
{
strSQL = PrepareSQL("select * from content where strPath='musicdb://artists/%i/'",params.GetArtistId());
m_pDS->query(strSQL.c_str());
- }
- if (m_pDS->eof()) // general albums setting
- {
- strSQL = PrepareSQL("select * from content where strPath='musicdb://albums/'");
- m_pDS->query(strSQL.c_str());
- }
- if (m_pDS->eof()) // general artist setting
- {
- strSQL = PrepareSQL("select * from content where strPath='musicdb://artists/'");
- m_pDS->query(strSQL.c_str());
+
+ if (m_pDS->eof()) // general artist setting
+ {
+ strSQL = PrepareSQL("select * from content where strPath='musicdb://artists/'");
+ m_pDS->query(strSQL.c_str());
+ }
}
}
Something went wrong with that request. Please try again.