diff --git a/app/src/main/java/com/github/libretube/util/ImportHelper.kt b/app/src/main/java/com/github/libretube/util/ImportHelper.kt index ebb83e9de..525bb95dd 100644 --- a/app/src/main/java/com/github/libretube/util/ImportHelper.kt +++ b/app/src/main/java/com/github/libretube/util/ImportHelper.kt @@ -44,7 +44,7 @@ class ImportHelper( ).show() } catch (e: Exception) { Log.e(TAG(), e.toString()) - Toast.makeText(activity, R.string.server_error, Toast.LENGTH_SHORT).show() + Toast.makeText(activity, e.localizedMessage, Toast.LENGTH_SHORT).show() } } @@ -53,7 +53,7 @@ class ImportHelper( */ private fun getChannelsFromUri(uri: Uri): List { return when (val fileType = activity.contentResolver.getType(uri)) { - "application/json" -> { + "application/json", "application/octet-stream" -> { // NewPipe subscriptions format val mapper = ObjectMapper() val json = activity.contentResolver.openInputStream(uri)?.use {