mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 10:51:37 +00:00
Compare commits
3 commits
2f6de71a3a
...
18200a8f01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18200a8f01 | ||
|
|
9c47f404c9 | ||
|
|
cae1560344 |
2 changed files with 4 additions and 5 deletions
|
|
@ -77,8 +77,8 @@
|
||||||
<ui-checkbox v-model="selectedMatchUsage.author" checkbox-bg="bg" @input="checkboxToggled" />
|
<ui-checkbox v-model="selectedMatchUsage.author" checkbox-bg="bg" @input="checkboxToggled" />
|
||||||
<div class="grow ml-4">
|
<div class="grow ml-4">
|
||||||
<ui-text-input-with-label v-model="selectedMatch.author" :disabled="!selectedMatchUsage.author" :label="$strings.LabelAuthor" />
|
<ui-text-input-with-label v-model="selectedMatch.author" :disabled="!selectedMatchUsage.author" :label="$strings.LabelAuthor" />
|
||||||
<p v-if="mediaMetadata.authorName" class="text-xs ml-1 text-white/60">
|
<p v-if="mediaMetadata.authorName || (isPodcast && mediaMetadata.author)" class="text-xs ml-1 text-white/60">
|
||||||
{{ $strings.LabelCurrently }} <a title="$strings.LabelClickToUseCurrentValue" class="cursor-pointer hover:underline" @click.stop="setMatchFieldValue('author', mediaMetadata.authorName)">{{ mediaMetadata.authorName }}</a>
|
{{ $strings.LabelCurrently }} <a title="$strings.LabelClickToUseCurrentValue" class="cursor-pointer hover:underline" @click.stop="setMatchFieldValue('author', isPodcast ? mediaMetadata.author : mediaMetadata.authorName)">{{ isPodcast ? mediaMetadata.author : mediaMetadata.authorName }}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -476,7 +476,7 @@ module.exports.getWindowsDrives = async () => {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
exec('wmic logicaldisk get name', async (error, stdout, stderr) => {
|
exec('powershell -Command "(Get-PSDrive -PSProvider FileSystem).Name"', async (error, stdout, stderr) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
reject(error)
|
reject(error)
|
||||||
return
|
return
|
||||||
|
|
@ -485,10 +485,9 @@ module.exports.getWindowsDrives = async () => {
|
||||||
?.split(/\r?\n/)
|
?.split(/\r?\n/)
|
||||||
.map((line) => line.trim())
|
.map((line) => line.trim())
|
||||||
.filter((line) => line)
|
.filter((line) => line)
|
||||||
.slice(1)
|
|
||||||
const validDrives = []
|
const validDrives = []
|
||||||
for (const drive of drives) {
|
for (const drive of drives) {
|
||||||
let drivepath = drive + '/'
|
let drivepath = drive + ':/'
|
||||||
if (await fs.pathExists(drivepath)) {
|
if (await fs.pathExists(drivepath)) {
|
||||||
validDrives.push(drivepath)
|
validDrives.push(drivepath)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue