Permalink
Browse files

Merge pull request #10386 from tamland/scantolibrary

  • Loading branch information...
2 parents e8ed187 + ec5b24d commit 60373b70071a93f37b051bcf007b33c3820a0272 @jenkins4kodi jenkins4kodi committed on GitHub Sep 6, 2016
@@ -13448,7 +13448,9 @@ msgctxt "#21844"
msgid "XP comment"
msgstr ""
-#empty strings from id 21845 to 21856
+msgctxt "#21845"
+msgid "Scan to library"
+msgstr ""
msgctxt "#21857"
msgid "Sub-location"
@@ -72,6 +72,7 @@ enum CONTEXT_BUTTON { CONTEXT_BUTTON_CANCELLED = 0,
CONTEXT_BUTTON_INFO_ALL,
CONTEXT_BUTTON_CDDB,
CONTEXT_BUTTON_SCAN,
+ CONTEXT_BUTTON_SCAN_TO_LIBRARY,
CONTEXT_BUTTON_SET_ARTIST_THUMB,
CONTEXT_BUTTON_SET_SEASON_ART,
CONTEXT_BUTTON_CANCEL_PARTYMODE,
@@ -954,6 +954,10 @@ void CGUIWindowVideoNav::GetContextButtons(int itemNumber, CContextButtons &butt
buttons.Add(CONTEXT_BUTTON_SCAN, 13349);
}
}
+
+ if ((!item->HasVideoInfoTag() || item->GetVideoInfoTag()->m_iDbId == -1) && info && info->Content() != CONTENT_NONE)
+ buttons.Add(CONTEXT_BUTTON_SCAN_TO_LIBRARY, 21845);
+
}
}
}
@@ -1040,6 +1044,9 @@ bool CGUIWindowVideoNav::OnContextButton(int itemNumber, CONTEXT_BUTTON button)
}
return true;
}
+ case CONTEXT_BUTTON_SCAN_TO_LIBRARY:
+ CGUIDialogVideoInfo::ShowFor(*item);
+ return true;
default:
break;

0 comments on commit 60373b7

Please sign in to comment.