Skip to content

Commit

Permalink
Make some revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Oasis256 committed Dec 14, 2024
1 parent f7eceea commit e3b4201
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions android/app/src/main/java/com/book/shelf/data/LocalLibraryItem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ class LocalLibraryItem(
}
}

@JsonIgnore
fun hasTracks(episode:PodcastEpisode?): Boolean {
var audioTracks = media.getAudioTracks() as MutableList<AudioTrack>
if (episode != null) { // Get podcast episode audio track
episode.audioTrack?.let { at -> mutableListOf(at) }?.let { tracks -> audioTracks = tracks }
}
if (audioTracks.size == 0) return false
return true
}

@JsonIgnore
fun getPlaybackSession(episode:PodcastEpisode?, deviceInfo:DeviceInfo):PlaybackSession {
val localEpisodeId = episode?.id
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "audbletales",
"version": "2.13.2",
"version": "2.13.3",
"buildNumber": 1,
"description": "Self-hosted audiobook and podcast server",
"main": "index.js",
Expand Down

0 comments on commit e3b4201

Please sign in to comment.