aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/feeds
diff options
context:
space:
mode:
Diffstat (limited to 'shared/server-commands/feeds')
-rw-r--r--shared/server-commands/feeds/feeds-command.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/shared/server-commands/feeds/feeds-command.ts b/shared/server-commands/feeds/feeds-command.ts
index 939b18dee..26763b43e 100644
--- a/shared/server-commands/feeds/feeds-command.ts
+++ b/shared/server-commands/feeds/feeds-command.ts
@@ -30,6 +30,29 @@ export class FeedCommand extends AbstractCommand {
30 }) 30 })
31 } 31 }
32 32
33 getPodcastXML (options: OverrideCommandOptions & {
34 ignoreCache: boolean
35 channelId: number
36 }) {
37 const { ignoreCache, channelId } = options
38 const path = `/feeds/podcast/videos.xml`
39
40 const query: { [id: string]: string } = {}
41
42 if (ignoreCache) query.v = buildUUID()
43 if (channelId) query.videoChannelId = channelId + ''
44
45 return this.getRequestText({
46 ...options,
47
48 path,
49 query,
50 accept: 'application/xml',
51 implicitToken: false,
52 defaultExpectedStatus: HttpStatusCode.OK_200
53 })
54 }
55
33 getJSON (options: OverrideCommandOptions & { 56 getJSON (options: OverrideCommandOptions & {
34 feed: FeedType 57 feed: FeedType
35 ignoreCache: boolean 58 ignoreCache: boolean