Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

re enable manually add to library (reverse-merged from commit b507f10)

  • Loading branch information...
commit 2047a9d5c3674fec9e5aa6616c46ee1dd98fcfdd 1 parent b507f10
Voyager1 Voyager1 authored
7 xbmc/video/windows/GUIWindowVideoBase.cpp
View
@@ -1958,13 +1958,6 @@ void CGUIWindowVideoBase::AddToDatabase(int iItem)
m_database.Open();
int idMovie = m_database.AddMovie(pItem->GetPath());
movie.m_strIMDBNumber.Format("xx%08i", idMovie);
-
- if (movie.m_basePath.IsEmpty())
- movie.m_basePath = pItem->GetBaseMoviePath(false);
- movie.m_parentPathID = m_database.AddPath(URIUtils::GetParentPath(movie.m_basePath));
-
- movie.m_strFileNameAndPath = pItem->GetPath();
-
m_database.SetDetailsForMovie(pItem->GetPath(), movie, pItem->GetArt());
m_database.Close();
13 xbmc/video/windows/GUIWindowVideoNav.cpp
View
@@ -1042,13 +1042,6 @@ void CGUIWindowVideoNav::GetContextButtons(int itemNumber, CContextButtons &butt
buttons.Add(CONTEXT_BUTTON_DELETE, 117);
buttons.Add(CONTEXT_BUTTON_RENAME, 118);
}
-
- if (!item->IsLiveTV())
- {
- if (!m_database.HasMovieInfo(item->GetPath()) && !m_database.HasEpisodeInfo(item->GetPath()))
- buttons.Add(CONTEXT_BUTTON_ADD_TO_LIBRARY, 527); // Add to Database
- }
-
// add "Set/Change content" to folders
if (item->m_bIsFolder && !item->IsPlayList() && !item->IsSmartPlayList() && !item->IsLiveTV() && !item->IsPlugin() && !item->IsAddonsPath() && !URIUtils::IsUPnP(item->GetPath()))
{
@@ -1379,12 +1372,6 @@ bool CGUIWindowVideoNav::OnContextButton(int itemNumber, CONTEXT_BUTTON button)
return true;
}
- case CONTEXT_BUTTON_ADD_TO_LIBRARY:
- {
- AddToDatabase(itemNumber);
- return true;
- }
-
default:
break;

1 comment on commit 2047a9d

Voyager1
Collaborator

My apologies - stupid new mouse caused me to hit the wrong button :-(

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