[Android] Disable all moviepedia entry points for now

Nicolas Pomepuy git at videolan.org
Thu Nov 28 11:41:11 CET 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Wed Nov 27 14:16:07 2019 +0100| [60ed93bf7e90296623fb289facf344b28e1097bf] | committer: Geoffrey Métais

Disable all moviepedia entry points for now

> https://code.videolan.org/videolan/vlc-android/commit/60ed93bf7e90296623fb289facf344b28e1097bf
---

 vlc-android/src/org/videolan/vlc/MediaParsingService.kt             | 3 ++-
 vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.kt | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.kt b/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
index d17c7eaab..2a22a5d92 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
@@ -380,7 +380,8 @@ class MediaParsingService : LifecycleService(), DevicesDiscoveryCb, LifecycleOwn
     private fun exitCommand() {
         if (!medialibrary.isWorking && !serviceLock && !discoverTriggered) {
             lastNotificationTime = 0L
-            try {
+            //todo reenable entry point when ready
+            if (BuildConfig.DEBUG) try {
                 MoviepediaIndexer.indexMedialib(this at MediaParsingService)
             } catch (e: Exception) {
                 if (BuildConfig.DEBUG) Log.d(this::class.java.simpleName, "${e.cause}")
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.kt b/vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.kt
index 7199a9e11..0681412c7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.kt
@@ -41,6 +41,7 @@ import kotlinx.coroutines.*
 import org.videolan.libvlc.util.AndroidUtil
 import org.videolan.medialibrary.MLServiceLocator
 import org.videolan.medialibrary.interfaces.media.AbstractMediaWrapper
+import org.videolan.vlc.BuildConfig
 import org.videolan.vlc.R
 import org.videolan.vlc.database.models.MediaImage
 import org.videolan.vlc.database.models.MediaImageType
@@ -376,7 +377,8 @@ class MediaItemDetailsFragment : DetailsSupportFragment(), CoroutineScope by Mai
                 if (FileUtils.canWrite(viewModel.media.uri))
                     actionsAdapter.set(ID_DL_SUBS, Action(ID_DL_SUBS.toLong(), res.getString(R.string.download_subtitles)))
                 actionsAdapter.set(ID_PLAYLIST, Action(ID_PLAYLIST.toLong(), res.getString(R.string.add_to_playlist)))
-                actionsAdapter.set(ID_GET_INFO, Action(ID_GET_INFO.toLong(), res.getString(R.string.find_metadata)))
+                //todo reenable entry point when ready
+                if (BuildConfig.DEBUG) actionsAdapter.set(ID_GET_INFO, Action(ID_GET_INFO.toLong(), res.getString(R.string.find_metadata)))
             }
             adapter = rowsAdapter
             detailsOverview.actionsAdapter = actionsAdapter



More information about the Android mailing list