mikmc5 commited on
Commit
b57b0d9
·
verified ·
1 Parent(s): f99aab0

Update anime.js

Browse files
Files changed (1) hide show
  1. anime.js +2 -2
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(':')[0].trim(); // Removing year/season if it exists
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