mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 06:37:16 +02:00
Version increment and download cover to stream container
This commit is contained in:
@@ -10,8 +10,8 @@ android {
|
|||||||
applicationId "com.audiobookshelf.app"
|
applicationId "com.audiobookshelf.app"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 9
|
versionCode 10
|
||||||
versionName "0.8.0-beta"
|
versionName "0.8.1-beta"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
aaptOptions {
|
aaptOptions {
|
||||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<span class="material-icons" @click="cancelStream">close</span>
|
<span class="material-icons" @click="cancelStream">close</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute left-2 -top-10">
|
<div class="absolute left-2 -top-10">
|
||||||
<cards-book-cover :audiobook="audiobook" :width="64" />
|
<cards-book-cover :audiobook="audiobook" :download-cover="downloadedCover" :width="64" />
|
||||||
</div>
|
</div>
|
||||||
<audio-player-mini ref="audioPlayerMini" :loading="isLoading" @updateTime="updateTime" @selectPlaybackSpeed="showPlaybackSpeedModal = true" @hook:mounted="audioPlayerMounted" />
|
<audio-player-mini ref="audioPlayerMini" :loading="isLoading" @updateTime="updateTime" @selectPlaybackSpeed="showPlaybackSpeedModal = true" @hook:mounted="audioPlayerMounted" />
|
||||||
</div>
|
</div>
|
||||||
@@ -37,23 +37,6 @@ export default {
|
|||||||
showChapterModal: false
|
showChapterModal: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
// playingDownload: {
|
|
||||||
// handler(newVal, oldVal) {
|
|
||||||
// console.log('[StreamContainer] Download AUDIOBOOK Changed ' + newVal + '|' + oldVal)
|
|
||||||
// if (newVal) {
|
|
||||||
// if (this.audioPlayerReady) {
|
|
||||||
// this.playDownload()
|
|
||||||
// }
|
|
||||||
// } else if (this.download) {
|
|
||||||
// this.download = null
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// streamAudiobook(newVal, oldval) {
|
|
||||||
// console.log('[StreamContainer] Stream AUDIOBOOK Changed ' + newVal + '|' + oldVal)
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
socketConnected(newVal) {
|
socketConnected(newVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
@@ -96,6 +79,9 @@ export default {
|
|||||||
cover() {
|
cover() {
|
||||||
return this.book ? this.book.cover : ''
|
return this.book ? this.book.cover : ''
|
||||||
},
|
},
|
||||||
|
downloadedCover() {
|
||||||
|
return this.download ? this.download.cover : null
|
||||||
|
},
|
||||||
series() {
|
series() {
|
||||||
return this.book ? this.book.series : ''
|
return this.book ? this.book.series : ''
|
||||||
},
|
},
|
||||||
@@ -348,21 +334,13 @@ export default {
|
|||||||
streamUpdated(type, data) {
|
streamUpdated(type, data) {
|
||||||
if (type === 'download') {
|
if (type === 'download') {
|
||||||
if (data) {
|
if (data) {
|
||||||
console.log('START DOWNLOAD PLAY')
|
|
||||||
this.download = { ...data }
|
this.download = { ...data }
|
||||||
if (this.audioPlayerReady) {
|
if (this.audioPlayerReady) {
|
||||||
this.playDownload()
|
this.playDownload()
|
||||||
}
|
}
|
||||||
} else if (this.download) {
|
} else if (this.download) {
|
||||||
console.log('STOP DOWNLOAD PLAY')
|
|
||||||
this.cancelStream()
|
this.cancelStream()
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (data) {
|
|
||||||
console.log('STARTING STREAM')
|
|
||||||
} else {
|
|
||||||
console.log('STOPPING STREAM')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "audiobookshelf-app",
|
"name": "audiobookshelf-app",
|
||||||
"version": "v0.8.0-beta",
|
"version": "v0.8.1-beta",
|
||||||
"author": "advplyr",
|
"author": "advplyr",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt --hostname localhost --port 1337",
|
"dev": "nuxt --hostname localhost --port 1337",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="w-32">
|
<div class="w-32">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<cards-book-cover :audiobook="audiobook" :download-cover="downlaodedCover" :width="128" />
|
<cards-book-cover :audiobook="audiobook" :download-cover="downloadedCover" :width="128" />
|
||||||
<div class="absolute bottom-0 left-0 h-1.5 bg-yellow-400 shadow-sm" :style="{ width: 128 * progressPercent + 'px' }"></div>
|
<div class="absolute bottom-0 left-0 h-1.5 bg-yellow-400 shadow-sm" :style="{ width: 128 * progressPercent + 'px' }"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex my-4">
|
<div class="flex my-4">
|
||||||
@@ -157,7 +157,7 @@ export default {
|
|||||||
isDownloadPlayable() {
|
isDownloadPlayable() {
|
||||||
return this.downloadObj && !this.isDownloading && !this.isDownloadPreparing
|
return this.downloadObj && !this.isDownloading && !this.isDownloadPreparing
|
||||||
},
|
},
|
||||||
downlaodedCover() {
|
downloadedCover() {
|
||||||
return this.downloadObj ? this.downloadObj.cover : null
|
return this.downloadObj ? this.downloadObj.cover : null
|
||||||
},
|
},
|
||||||
downloadObj() {
|
downloadObj() {
|
||||||
|
|||||||
Reference in New Issue
Block a user