mirror of
https://github.com/oxyroid/M3UAndroid.git
synced 2025-05-17 11:25:58 +08:00
fix: extension permission prefix cause installation failed.
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||
|
||||
<permission
|
||||
android:name="com.m3u.permission.CONNECT_EXTENSION_PLUGIN"
|
||||
android:name="${applicationId}.permission.CONNECT_EXTENSION_PLUGIN"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
<uses-feature
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.m3u.data.parser.m3u
|
||||
|
||||
import android.net.Uri
|
||||
import androidx.core.net.toUri
|
||||
import com.m3u.data.database.model.Channel
|
||||
|
||||
internal data class M3UData(
|
||||
@ -22,7 +22,7 @@ internal fun M3UData.toChannel(
|
||||
val fileScheme = "file:///"
|
||||
val absoluteUrl = if (!url.startsWith(fileScheme)) url
|
||||
else {
|
||||
with(Uri.parse(playlistUrl)) {
|
||||
with(playlistUrl.toUri()) {
|
||||
val paths = pathSegments.dropLast(1) + url.drop(fileScheme.length)
|
||||
buildUpon()
|
||||
.path(
|
||||
|
Reference in New Issue
Block a user