You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: android/mediaprovider/core/src/main/java/com/simplecityapps/mediaprovider/repository/playlists/PlaylistRepository.kt
Copy file name to clipboardExpand all lines: android/mediaprovider/local/src/main/java/com/simplecityapps/localmediaprovider/local/repository/LocalPlaylistRepository.kt
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,7 @@ class LocalPlaylistRepository(
180
180
if (outputStream ==null) {
181
181
Timber.w("Unable to open M3U file at ${playlist.externalId} for playlist ${playlist.name}")
182
182
} else {
183
-
val playlistPath =Uri.decode(playlist.externalId?:"")
183
+
val playlistPath =Uri.decode(playlist.externalId?:"")
184
184
val playlistFolder = playlistPath.substringBeforeLast("/") +"/"
185
185
186
186
getSongsForPlaylist(playlist)
@@ -192,7 +192,8 @@ class LocalPlaylistRepository(
192
192
// We'll use absolute values (paths or URIs, whatever is in database) for files that are not stored in a sub-folder relative to the M3U file
193
193
val songPath =Uri.decode(plSong.song.path)
194
194
val relative = songPath.substringAfter(playlistFolder)
195
-
val line = relative.toByteArray() +/* CRLF */0x0d.toByte() +0x0A.toByte()
0 commit comments