Force RSS Feeds when profile has more than 125 subscribed channels

This commit is contained in:
Preston 2020-10-04 18:04:28 -04:00
parent 4b2fb7aa1f
commit e47b59750d
2 changed files with 12 additions and 2 deletions

View File

@ -128,6 +128,15 @@ export default Vue.extend({
this.videoList = []
return
}
let useRss = this.useRssFeeds
if (this.activeSubscriptionList.length >= 125 && !useRss) {
this.showToast({
message: this.$t('Subscriptions["This profile has a large number of subscriptions. Forcing RSS to avoid rate limiting"]'),
time: 10000
})
useRss = true
}
this.isLoading = true
this.updateShowProgressBar(true)
this.setProgressBarPercentage(0)
@ -139,13 +148,13 @@ export default Vue.extend({
let videos = []
if (!this.usingElectron || this.backendPreference === 'invidious') {
if (this.useRssFeeds) {
if (useRss) {
videos = await this.getChannelVideosInvidiousRSS(channel)
} else {
videos = await this.getChannelVideosInvidiousScraper(channel)
}
} else {
if (this.useRssFeeds) {
if (useRss) {
videos = await this.getChannelVideosLocalRSS(channel)
} else {
videos = await this.getChannelVideosLocalScraper(channel)

View File

@ -72,6 +72,7 @@ Subscriptions:
# On Subscriptions Page
Subscriptions: Subscriptions
Latest Subscriptions: Latest Subscriptions
This profile has a large number of subscriptions. Forcing RSS to avoid rate limiting: This profile has a large number of subscriptions. Forcing RSS to avoid rate limiting
'Your Subscription list is currently empty. Start adding subscriptions to see them here.': Your
Subscription list is currently empty. Start adding subscriptions to see them here.
'Getting Subscriptions. Please wait.': Getting Subscriptions. Please wait.