mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-04 20:40:00 +01:00
Update open rss feed prevent indexing - dont include block tags when not preventing indexing
This commit is contained in:
parent
9e13c64408
commit
d0c02a801a
@ -132,6 +132,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.processing = true
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
serverAddress: window.origin,
|
serverAddress: window.origin,
|
||||||
slug: this.newFeedSlug,
|
slug: this.newFeedSlug,
|
||||||
@ -151,6 +153,9 @@ export default {
|
|||||||
const errorMsg = error.response ? error.response.data : null
|
const errorMsg = error.response ? error.response.data : null
|
||||||
this.$toast.error(errorMsg || 'Failed to open RSS Feed')
|
this.$toast.error(errorMsg || 'Failed to open RSS Feed')
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.processing = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
copyToClipboard(str) {
|
copyToClipboard(str) {
|
||||||
this.$copyToClipboard(str, this)
|
this.$copyToClipboard(str, this)
|
||||||
|
@ -61,6 +61,10 @@ class FeedMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getRSSData() {
|
getRSSData() {
|
||||||
|
const blockTags = [
|
||||||
|
{ 'itunes:block': 'yes' },
|
||||||
|
{ 'googleplay:block': 'yes' }
|
||||||
|
]
|
||||||
return {
|
return {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
description: this.description || '',
|
description: this.description || '',
|
||||||
@ -94,8 +98,7 @@ class FeedMeta {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ 'itunes:explicit': !!this.explicit },
|
{ 'itunes:explicit': !!this.explicit },
|
||||||
{ 'itunes:block': this.preventIndexing?"Yes":"No" },
|
...(this.preventIndexing ? blockTags : [])
|
||||||
{ 'googleplay:block': this.preventIndexing?"yes":"no" }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user