Skip to content

Commit

Permalink
fix: kamept with prevent caching (#81)
Browse files Browse the repository at this point in the history
* Support lusthive

* fix: kamept with prevent caching

* fix: kamept with prevent caching

* fix: kamept with prevent caching

* fix: kamept with prevent caching

* fix: kamept with prevent caching
  • Loading branch information
o0oo0ooo0 authored Jan 10, 2025
1 parent a136371 commit 1615b66
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/libs/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ const _getRssContent = async function (rssUrl, suffix = true) {
let url = rssUrl;
const isPig = rssUrl.includes('https://piggo.me/');
const isKamept = rssUrl.includes('https://kamept.com/');
if (suffix && !isPig && !isKamept) {
url += (rssUrl.indexOf('?') === -1 ? '?' : '&') + '____=' + Math.random();
let placeholder;
if (isKamept) {
placeholder = 'placeholder';
} else {
placeholder = '____';
}

if (suffix && !isPig) {
url += (rssUrl.indexOf('?') === -1 ? '?' : '&') + `${placeholder}=` + Math.random();
}
let res;
if (rssUrl.includes('https://pt.soulvoice.club/') && global.runningSite.SoulVoice) {
Expand Down

0 comments on commit 1615b66

Please sign in to comment.