Force RSS Feeds when profile has more than 125 subscribed channels
This commit is contained in:
		
							parent
							
								
									4b2fb7aa1f
								
							
						
					
					
						commit
						e47b59750d
					
				|  | @ -128,6 +128,15 @@ export default Vue.extend({ | ||||||
|         this.videoList = [] |         this.videoList = [] | ||||||
|         return |         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.isLoading = true | ||||||
|       this.updateShowProgressBar(true) |       this.updateShowProgressBar(true) | ||||||
|       this.setProgressBarPercentage(0) |       this.setProgressBarPercentage(0) | ||||||
|  | @ -139,13 +148,13 @@ export default Vue.extend({ | ||||||
|         let videos = [] |         let videos = [] | ||||||
| 
 | 
 | ||||||
|         if (!this.usingElectron || this.backendPreference === 'invidious') { |         if (!this.usingElectron || this.backendPreference === 'invidious') { | ||||||
|           if (this.useRssFeeds) { |           if (useRss) { | ||||||
|             videos = await this.getChannelVideosInvidiousRSS(channel) |             videos = await this.getChannelVideosInvidiousRSS(channel) | ||||||
|           } else { |           } else { | ||||||
|             videos = await this.getChannelVideosInvidiousScraper(channel) |             videos = await this.getChannelVideosInvidiousScraper(channel) | ||||||
|           } |           } | ||||||
|         } else { |         } else { | ||||||
|           if (this.useRssFeeds) { |           if (useRss) { | ||||||
|             videos = await this.getChannelVideosLocalRSS(channel) |             videos = await this.getChannelVideosLocalRSS(channel) | ||||||
|           } else { |           } else { | ||||||
|             videos = await this.getChannelVideosLocalScraper(channel) |             videos = await this.getChannelVideosLocalScraper(channel) | ||||||
|  |  | ||||||
|  | @ -72,6 +72,7 @@ Subscriptions: | ||||||
|     # On Subscriptions Page |     # On Subscriptions Page | ||||||
|   Subscriptions: Subscriptions |   Subscriptions: Subscriptions | ||||||
|   Latest Subscriptions: Latest 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 |   '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. |     Subscription list is currently empty. Start adding subscriptions to see them here. | ||||||
|   'Getting Subscriptions. Please wait.': Getting Subscriptions. Please wait. |   'Getting Subscriptions. Please wait.': Getting Subscriptions. Please wait. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue