Update anime.js
Browse files
anime.js
CHANGED
|
@@ -52,8 +52,8 @@ async function fetchRSSFeeds(searchQuery, type = 'movie') {
|
|
| 52 |
|
| 53 |
if (!result?.rss?.channel?.item) {
|
| 54 |
console.log('No items found. Trying a broader search...');
|
| 55 |
-
// Fallback to a broader search term (just the show title)
|
| 56 |
-
const fallbackSearchTerm = title.split('
|
| 57 |
const fallbackRssUrl = `https://rss.knaben.org/${encodeURIComponent(fallbackSearchTerm)}/tokyotosho|sukebeinyaasi|nyaasi`;
|
| 58 |
console.log('Fallback Request URL:', fallbackRssUrl);
|
| 59 |
|
|
|
|
| 52 |
|
| 53 |
if (!result?.rss?.channel?.item) {
|
| 54 |
console.log('No items found. Trying a broader search...');
|
| 55 |
+
// Fallback to a broader search term (just the show title without season/episode)
|
| 56 |
+
const fallbackSearchTerm = title.split(' ')[0]; // Removing season/episode part if it exists
|
| 57 |
const fallbackRssUrl = `https://rss.knaben.org/${encodeURIComponent(fallbackSearchTerm)}/tokyotosho|sukebeinyaasi|nyaasi`;
|
| 58 |
console.log('Fallback Request URL:', fallbackRssUrl);
|
| 59 |
|