Skip to content

Commit 7136fc8

Browse files
committed
[lint]
1 parent 00dd108 commit 7136fc8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android/mediaprovider/core/src/main/java/com/simplecityapps/mediaprovider/repository/playlists/PlaylistRepository.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import com.simplecityapps.shuttle.model.PlaylistSong
66
import com.simplecityapps.shuttle.model.SmartPlaylist
77
import com.simplecityapps.shuttle.model.Song
88
import com.simplecityapps.shuttle.sorting.PlaylistSongSortOrder
9-
import java.io.OutputStream
109
import java.io.Serializable
1110
import kotlinx.coroutines.flow.Flow
1211

android/mediaprovider/local/src/main/java/com/simplecityapps/localmediaprovider/local/repository/LocalPlaylistRepository.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class LocalPlaylistRepository(
180180
if (outputStream == null) {
181181
Timber.w("Unable to open M3U file at ${playlist.externalId} for playlist ${playlist.name}")
182182
} else {
183-
val playlistPath = Uri.decode(playlist.externalId?: "")
183+
val playlistPath = Uri.decode(playlist.externalId ?: "")
184184
val playlistFolder = playlistPath.substringBeforeLast("/") + "/"
185185

186186
getSongsForPlaylist(playlist)
@@ -192,7 +192,8 @@ class LocalPlaylistRepository(
192192
// 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
193193
val songPath = Uri.decode(plSong.song.path)
194194
val relative = songPath.substringAfter(playlistFolder)
195-
val line = relative.toByteArray() + /* CRLF */ 0x0d.toByte() + 0x0A.toByte()
195+
val crlf = 0x0d.toByte() + 0x0A.toByte()
196+
val line = relative.toByteArray() + crlf
196197
outputStream.write(line)
197198
}
198199
}

0 commit comments

Comments
 (0)