Prechádzať zdrojové kódy

Add UI instructions for YouTube RSS.

Improve user experience by adding UI instructions for finding YouTube RSS links.
gpt-engineer-app[bot] 5 mesiacov pred
rodič
commit
f2c11865f0
1 zmenil súbory, kde vykonal 11 pridanie a 5 odobranie
  1. 11 5
      src/utils/youtube.ts

+ 11 - 5
src/utils/youtube.ts

@@ -80,11 +80,17 @@ export const needsChannelIdLookup = (url: string): boolean => {
 
 // Function to get instructions for finding channel ID
 export const getChannelIdInstructions = (): string => {
-  return `Pour trouver l'ID de chaîne YouTube :
-1. Allez sur la page de la chaîne
-2. Clic droit → "Afficher le code source"
-3. Cherchez "channelId":"UC..." ou regardez les liens RSS
-4. Utilisez l'URL complète : https://www.youtube.com/channel/UCxxxxx`;
+  return `Pour trouver le flux RSS d'une chaîne YouTube :
+
+Méthode recommandée :
+1. Allez sur la page de la chaîne YouTube
+2. Clic droit → "Afficher le code source" 
+3. Cherchez : <link rel="alternate" type="application/rss+xml"
+4. Copiez l'URL complète du flux RSS (https://www.youtube.com/feeds/videos.xml?channel_id=UCxxxxx)
+
+Méthode alternative :
+1. Cherchez "channelId":"UC..." dans le code source
+2. Utilisez l'URL : https://www.youtube.com/channel/UCxxxxx`;
 };
 
 // Function to fetch YouTube channel name from page metadata with fallback