mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-22 16:34:10 +01:00
Update open rss feed prevent indexing - dont include block tags when not preventing indexing
This commit is contained in:
1 parent
9e13c64408
commit
d0c02a801a
2 files changed
+10
-2
No files matched your search
@@ -61,6 +61,10 @@ class FeedMeta {
|
||||
}
|
||||
|
||||
getRSSData() {
|
||||
const blockTags = [
|
||||
{ 'itunes:block': 'yes' },
|
||||
{ 'googleplay:block': 'yes' }
|
||||
]
|
||||
return {
|
||||
title: this.title,
|
||||
description: this.description || '',
|
||||
@@ -94,8 +98,7 @@ class FeedMeta {
|
||||
]
|
||||
},
|
||||
{ 'itunes:explicit': !!this.explicit },
|
||||
{ 'itunes:block': this.preventIndexing?"Yes":"No" },
|
||||
{ 'googleplay:block': this.preventIndexing?"yes":"no" }
|
||||
...(this.preventIndexing ? blockTags : [])
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user