mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Emit stream_closed even if stream is not found
This commit is contained in:
parent
2b1e6b0c3b
commit
c81a0260e2
@ -111,7 +111,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
streamClosed(streamId) {
|
streamClosed(streamId) {
|
||||||
if (this.stream && this.stream.id === streamId) {
|
if (this.stream && (this.stream.id === streamId || this.stream === 'n/a')) {
|
||||||
this.terminateStream()
|
this.terminateStream()
|
||||||
this.$store.commit('clearStreamAudiobook', this.stream.audiobook.id)
|
this.$store.commit('clearStreamAudiobook', this.stream.audiobook.id)
|
||||||
this.stream = null
|
this.stream = null
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "audiobookshelf-client",
|
"name": "audiobookshelf-client",
|
||||||
"version": "0.9.88-beta",
|
"version": "0.9.89-beta",
|
||||||
"description": "Audiobook manager and player",
|
"description": "Audiobook manager and player",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
<MyIP/>
|
<MyIP/>
|
||||||
<Shell>sh</Shell>
|
<Shell>sh</Shell>
|
||||||
<Privileged>false</Privileged>
|
<Privileged>false</Privileged>
|
||||||
<Support>https://hub.docker.com/r/advplyr/audiobookshelf/</Support>
|
<Support>https://forums.unraid.net/topic/112698-support-audiobookshelf/</Support>
|
||||||
<Project>https://github.com/advplyr/audiobookshelf</Project>
|
<Project>https://github.com/advplyr/audiobookshelf</Project>
|
||||||
<Overview>Audiobook manager and player</Overview>
|
<Overview>**(Beta)** Audiobook manager and player. Saves your progress, supports multiple accounts, stream all audio formats on the fly. No more switching between dozens of audio files for a single audiobook, Audiobookshelf shows you one audio track with skipping, seeking and adjustable playback speed. Free & open source mobile apps under construction, consider contributing by posting feedback, suggestions, feature requests on github or the forums.</Overview>
|
||||||
<Category>MediaApp:Books MediaServer:Books Status:Beta<</Category>
|
<Category>MediaApp:Books MediaServer:Books Status:Beta</Category>
|
||||||
<WebUI>http://[IP]:[PORT:80]</WebUI>
|
<WebUI>http://[IP]:[PORT:80]</WebUI>
|
||||||
<TemplateURL/>
|
<TemplateURL>https://raw.githubusercontent.com/advplyr/docker-templates/master/audiobookshelf.xml</TemplateURL>
|
||||||
<Icon>https://github.com/advplyr/audiobookshelf/raw/master/client/static/Logo.png</Icon>
|
<Icon>https://github.com/advplyr/audiobookshelf/raw/master/client/static/Logo.png</Icon>
|
||||||
<ExtraParams/>
|
<ExtraParams/>
|
||||||
<PostArgs/>
|
<PostArgs/>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
<DateInstalled>1629238508</DateInstalled>
|
<DateInstalled>1629238508</DateInstalled>
|
||||||
<DonateText/>
|
<DonateText/>
|
||||||
<DonateLink/>
|
<DonateLink/>
|
||||||
<Description>Audiobook manager and player</Description>
|
<Description>Audiobook manager and player. Saves your progress, supports multiple accounts, stream all audio formats on the fly. No more switching between dozens of audio files for a single audiobook, Audiobookshelf shows you one audio track with skipping, seeking and adjustable playback speed. Free & open source mobile apps under construction, consider contributing by posting feedback, suggestions, feature requests on github or the forums.</Description>
|
||||||
<Networking>
|
<Networking>
|
||||||
<Mode>bridge</Mode>
|
<Mode>bridge</Mode>
|
||||||
<Publish>
|
<Publish>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "audiobookshelf",
|
"name": "audiobookshelf",
|
||||||
"version": "0.9.88-beta",
|
"version": "0.9.89-beta",
|
||||||
"description": "Self-hosted audiobook server for managing and playing audiobooks.",
|
"description": "Self-hosted audiobook server for managing and playing audiobooks.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -24,7 +24,7 @@ Title can start with the publish year like so:
|
|||||||
* Adding new audiobooks require pressing Scan button again (on settings page)
|
* Adding new audiobooks require pressing Scan button again (on settings page)
|
||||||
* Matching is still manual - should auto-match when exact title and author with cover image is found
|
* Matching is still manual - should auto-match when exact title and author with cover image is found
|
||||||
* Support different views to see more details of each audiobook
|
* Support different views to see more details of each audiobook
|
||||||
* Add ability to add/manage additional accounts with varying access levels
|
* Downloading audiobooks + merge files and download
|
||||||
* Then comes the mobile app..
|
* Then comes the mobile app..
|
||||||
|
|
||||||
<img alt="Screenshot2" src="https://github.com/advplyr/audiobookshelf/raw/master/images/ss_audiobook.png" />
|
<img alt="Screenshot2" src="https://github.com/advplyr/audiobookshelf/raw/master/images/ss_audiobook.png" />
|
||||||
|
@ -92,6 +92,7 @@ class StreamManager {
|
|||||||
var client = socket.sheepClient
|
var client = socket.sheepClient
|
||||||
if (!client || !client.stream) {
|
if (!client || !client.stream) {
|
||||||
Logger.error('No stream for client', client.user.id)
|
Logger.error('No stream for client', client.user.id)
|
||||||
|
client.socket.emit('stream_closed', 'n/a')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// var streamId = client.stream.id
|
// var streamId = client.stream.id
|
||||||
|
Loading…
Reference in New Issue
Block a user