mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 02:41:35 +00:00
Compare commits
4 commits
32da0f1224
...
4d70929d2e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d70929d2e | ||
|
|
578e9559e4 | ||
|
|
894ea0b80a | ||
|
|
e54571f011 |
3 changed files with 9 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ export default {
|
||||||
|
|
||||||
this.showingTooltipIndex = index
|
this.showingTooltipIndex = index
|
||||||
this.tooltipEl.style.display = 'block'
|
this.tooltipEl.style.display = 'block'
|
||||||
this.tooltipTextEl.innerHTML = block.value ? `<strong>${this.$elapsedPretty(block.value, true)} listening</strong> on ${block.datePretty}` : `No listening sessions on ${block.datePretty}`
|
this.tooltipTextEl.innerHTML = block.value ? this.$getString('MessageHeatmapListeningTimeTooltip', [this.$elapsedPrettyLocalized(block.value, true), block.datePretty]) : this.$getString('MessageHeatmapNoListeningSessions', [block.datePretty])
|
||||||
|
|
||||||
const calculateRect = this.tooltipEl.getBoundingClientRect()
|
const calculateRect = this.tooltipEl.getBoundingClientRect()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -572,7 +572,7 @@ export default {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
this.asinError = this.$getString(data.stringKey)
|
this.asinError = this.$getString(data.stringKey)
|
||||||
} else {
|
} else {
|
||||||
console.log('Chapter data', data)
|
console.log('Chapter data', { ...data })
|
||||||
this.chapterData = this.removeBranding ? this.removeBrandingFromData(data) : data
|
this.chapterData = this.removeBranding ? this.removeBrandingFromData(data) : data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -609,6 +609,11 @@ export default {
|
||||||
data.chapters.pop()
|
data.chapters.pop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove Branding durations from Runtime totals
|
||||||
|
data.runtimeLengthMs -= introDuration + outroDuration
|
||||||
|
data.runtimeLengthSec = Math.floor(data.runtimeLengthMs / 1000)
|
||||||
|
console.log('Brandless Chapter data', data)
|
||||||
|
|
||||||
return data
|
return data
|
||||||
} catch {
|
} catch {
|
||||||
return data
|
return data
|
||||||
|
|
|
||||||
|
|
@ -805,6 +805,8 @@
|
||||||
"MessageFeedURLWillBe": "Feed URL will be {0}",
|
"MessageFeedURLWillBe": "Feed URL will be {0}",
|
||||||
"MessageFetching": "Fetching...",
|
"MessageFetching": "Fetching...",
|
||||||
"MessageForceReScanDescription": "will scan all files again like a fresh scan. Audio file ID3 tags, OPF files, and text files will be scanned as new.",
|
"MessageForceReScanDescription": "will scan all files again like a fresh scan. Audio file ID3 tags, OPF files, and text files will be scanned as new.",
|
||||||
|
"MessageHeatmapListeningTimeTooltip": "<strong>{0} listening</strong> on {1}",
|
||||||
|
"MessageHeatmapNoListeningSessions": "No listening sessions on {0}",
|
||||||
"MessageImportantNotice": "Important Notice!",
|
"MessageImportantNotice": "Important Notice!",
|
||||||
"MessageInsertChapterBelow": "Insert chapter below",
|
"MessageInsertChapterBelow": "Insert chapter below",
|
||||||
"MessageInvalidAsin": "Invalid ASIN",
|
"MessageInvalidAsin": "Invalid ASIN",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue