Skip to content
This repository
Browse code

fix broken artists node in musicvideos

  • Loading branch information...
commit 9a4535291af842c593c9f48a0dbbc0ebd69b6bca 1 parent ae95c23
authored September 29, 2013
4  xbmc/music/windows/GUIWindowMusicNav.cpp
@@ -447,7 +447,7 @@ void CGUIWindowMusicNav::GetContextButtons(int itemNumber, CContextButtons &butt
447 447
     {
448 448
       if (!item->m_bIsFolder) // music video
449 449
        buttons.Add(CONTEXT_BUTTON_INFO, 20393);
450  
-      if (StringUtils::StartsWithNoCase(item->GetPath(), "videodb://musicvideos/artist/") && item->m_bIsFolder)
  450
+      if (StringUtils::StartsWithNoCase(item->GetPath(), "videodb://musicvideos/artists/") && item->m_bIsFolder)
451 451
       {
452 452
         long idArtist = m_musicdatabase.GetArtistByName(m_vecItems->Get(itemNumber)->GetLabel());
453 453
         if (idArtist > - 1)
@@ -630,7 +630,7 @@ bool CGUIWindowMusicNav::OnContextButton(int itemNumber, CONTEXT_BUTTON button)
630 630
       CStdString strPath;
631 631
       CVideoDatabase database;
632 632
       database.Open();
633  
-      strPath.Format("videodb://musicvideos/artist/%ld/",database.GetMatchingMusicVideo(StringUtils::Join(item->GetMusicInfoTag()->GetArtist(), g_advancedSettings.m_musicItemSeparator)));
  633
+      strPath.Format("videodb://musicvideos/artists/%ld/",database.GetMatchingMusicVideo(StringUtils::Join(item->GetMusicInfoTag()->GetArtist(), g_advancedSettings.m_musicItemSeparator)));
634 634
       g_windowManager.ActivateWindow(WINDOW_VIDEO_NAV,strPath);
635 635
       return true;
636 636
     }
2  xbmc/video/VideoDatabase.cpp
@@ -7171,7 +7171,7 @@ void CVideoDatabase::GetMusicVideoArtistsByName(const CStdString& strSearch, CFi
7171 7171
       CFileItemPtr pItem(new CFileItem(m_pDS->fv("actors.strActor").get_asString()));
7172 7172
       CStdString strDir;
7173 7173
       strDir.Format("%ld/", m_pDS->fv("actors.idActor").get_asInt());
7174  
-      pItem->SetPath("videodb://musicvideos/artist/"+ strDir);
  7174
+      pItem->SetPath("videodb://musicvideos/artists/"+ strDir);
7175 7175
       pItem->m_bIsFolder=true;
7176 7176
       items.Add(pItem);
7177 7177
       m_pDS->next();
2  xbmc/video/windows/GUIWindowVideoNav.cpp
@@ -1533,7 +1533,7 @@ CStdString CGUIWindowVideoNav::GetStartFolder(const CStdString &dir)
1533 1533
   else if (dir.Equals("MusicVideoYears"))
1534 1534
     return "videodb://musicvideos/years/";
1535 1535
   else if (dir.Equals("MusicVideoArtists"))
1536  
-    return "videodb://musicvideos/artist/";
  1536
+    return "videodb://musicvideos/artists/";
1537 1537
   else if (dir.Equals("MusicVideoAlbums"))
1538 1538
     return "videodb://musicvideos/albums/";
1539 1539
   else if (dir.Equals("MusicVideoDirectors"))

0 notes on commit 9a45352

Please sign in to comment.
Something went wrong with that request. Please try again.