From 1f9568e8312233bbd7dd1715a276b83e9bc47222 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Jan 2023 03:25:21 +0530 Subject: [PATCH] Unauthenticated RSS links (channel page) --- src/routes/Channel.vue | 7 +++++++ src/translations/bn-Beng.json | 5 +++-- src/translations/en.json | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/routes/Channel.vue b/src/routes/Channel.vue index 7f9fe4e..b4db30b 100644 --- a/src/routes/Channel.vue +++ b/src/routes/Channel.vue @@ -19,6 +19,7 @@ + {{ $t('actions.unauthenticated_rss') }}
@@ -225,6 +226,12 @@ export default { })) }, + unauthenticatedRSS () { + const u = new URL('/feed/unauthenticated/rss', this.$store.getters['prefs/apiUrl']) + u.searchParams.set('channels', this.channel?.id) + return u.href + }, + view () { if (this.currentlySelectedTab === 0) { return { diff --git a/src/translations/bn-Beng.json b/src/translations/bn-Beng.json index ece9979..ff9e934 100644 --- a/src/translations/bn-Beng.json +++ b/src/translations/bn-Beng.json @@ -62,7 +62,7 @@ "subscribe": "সদস্যতা নেবেন?", "unsubscribe": "সদস্যতা পরিত্যাগ করবেন?", "view_subscriptions": "channel এ সদস্যতার তালিকা", - "rss_of_subscriptions": "আপনি যে যে channel এ সদস্যতা নিয়েছেন তাদের RSS ফিড", + "rss_of_subscriptions": "আপনার সদস্যতা নেওয়া channelদের বারতা – RSS দ্বারা", "sort_by": "কোন ক্রমানুযায়ী video গুলো আসবে ", "most_recent": "সবচেয়ে নতুন আগে", "least_recent": "সবচেয়ে পুরোনো আগে", @@ -96,7 +96,8 @@ "related_videos": "অন্ন সম্পর্কিত video", "related_comments": "অন্নদের মন্তব্য", "autoplay_next_video": "এই videoটি শেষ হয়ে গেলে কি আপনি প্রথম সম্পর্কিত videoতে চলে যেতে চান?", - "loop_this_video": "এই videoটি শেষ হয়ে গেলে, videoটি কে আবার সুরু থেকে চালাব? (loop করব?)" + "loop_this_video": "এই videoটি শেষ হয়ে গেলে, videoটি কে আবার সুরু থেকে চালাব? (loop করব?)", + "unauthenticated_rss": "এই channelটির RSS বারতা URL (আপনার নথির সঙ্গে অসম্পর্কিত)" }, "preferences": { "colorScheme": "কি রঙে আপনি দেখতে চান", diff --git a/src/translations/en.json b/src/translations/en.json index 8127aa0..8c72061 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -117,7 +117,8 @@ "related_videos": "Related Videos", "related_comments": "Comments", "autoplay_next_video": "Proceed to the first related video once this video ends", - "loop_this_video": "Loop this video" + "loop_this_video": "Loop this video", + "unauthenticated_rss": "RSS (unauthenticated)" }, "preferences": { "colorScheme": "Color Scheme",