vinano Posté(e) le 14 mai 2009 Auteur Posté(e) le 14 mai 2009 Je viens de me rendre compte que le fichier php propos 0 Citer
vinano Posté(e) le 19 mai 2009 Auteur Posté(e) le 19 mai 2009 Par contre, il ne se lance pas automatiquement, malgr 0 Citer
vinano Posté(e) le 20 mai 2009 Auteur Posté(e) le 20 mai 2009 50 * * * * root /opt/bin/casget > /volume1/PODCAST/castget.log Si c'est vraiment ce que tu as 0 Citer
vinano Posté(e) le 21 mai 2009 Auteur Posté(e) le 21 mai 2009 Tout d'abord, je te rappelle que les r 0 Citer
vinano Posté(e) le 21 mai 2009 Auteur Posté(e) le 21 mai 2009 Par contre, je ne pense pas que ce soit 0 Citer
GIC Posté(e) le 21 mai 2009 Posté(e) le 21 mai 2009 J'y comprends vraiment rien J'avais une tab avant le ">" mais je viens de le supprimer. Le fichier 0 Citer
fdm900 Posté(e) le 17 juin 2009 Posté(e) le 17 juin 2009 Voici mon tuto qui éclaircira quelques points (enfin je l'espère! ). Merci aux auteurs des posts précédents. Castget - Command line podcast downloader http://www.nongnu.org/castget/ Manuels Programme: http://linux.die.net/man/1/castget Paramétrage: http://linux.die.net/man/5/castgetrc Points clés Programme: /opt/bin/castget Paramétrage: /opt/etc/castget/.castgetrc (lien symbolique .castgetrc -> /opt/etc/castget/.castgetrc) Dossier de travail: /root/.castget/ (fichiers xml des podcasts) J'ai décidé de mettre .castgetrc dans l'arborescence /opt car c'est un de dossiers que je sauvegarde toujours avant la mise à jour d'un firmware syno et parce que c'est un mod. Installation DS207Plus> ipkg update Downloading http://ipkg.nslu2-li...stable/Packages Updated list of available packages in /opt/lib/ipkg/lists/synoware Downloading http://ipkg.nslu2-li...ble/Packages.gz Inflating http://ipkg.nslu2-li...ble/Packages.gz Updated list of available packages in /opt/lib/ipkg/lists/cross Successfully terminated. DS207Plus> ipkg info castget Package: castget Version: 1.0.1-2 Depends: libxml2, libcurl, id3lib, glib, libstdc++ Status: unknown ok not-installed Section: net Architecture: arm maintainer: NSLU2 Linux <nslu2-linux@yahoogroups.com> MD5Sum: 9c7baa14ea805f3ede6e0e664af6a27f Size: 21677 Filename: castget_1.0.1-2_arm.ipk Source: http://savannah.nong...et-1.0.1.tar.gz Description: castget is a simple, command-line based RSS enclosure downloader, primarily intended for automatic, unattended downloading of podcasts. Successfully terminated. DS207Plus> ipkg install castget Installing castget (1.0.1-2) to root... Downloading http://ipkg.nslu2-li...1.0.1-2_arm.ipk Installing libxml2 (2.7.3-1) to root... Downloading http://ipkg.nslu2-li...2.7.3-1_arm.ipk Installing libcurl (7.19.5-1) to root... Downloading http://ipkg.nslu2-li....19.5-1_arm.ipk Installing openssl (0.9.7m-5) to root... Downloading http://ipkg.nslu2-li....9.7m-5_arm.ipk Installing id3lib (3.8.3-4) to root... Downloading http://ipkg.nslu2-li...3.8.3-4_arm.ipk Installing libstdc++ (6.0.3-6) to root... Downloading http://ipkg.nslu2-li...6.0.3-6_arm.ipk Configuring castget Configuring id3lib Configuring libcurl Configuring libstdc++ Configuring libxml2 Configuring openssl Successfully terminated. Le programme est installé dans /opt/bin Pour le lancer /opt/bin/castget DS207Plus> castget -h Usage: castget [-c|-l|-V|-h] [-v|-q] [-r] [-1] [-n] [identifier(s)] --catchup -c Catch up with channels. --list -l List available enclosures. --first-only -1 Only operate on the most recent enclosure in each channel. --new-only -n Only operate on new channel(s). --resume -r Resume aborted downloads. --version -V Print version number. --help -h Print usage information. --verbose -v Verbose mode. --quiet -q Quiet mode. The identifiers identifies the channels affected by the selected operation. If no identifier is supplied all channels are affect. Le fichier .castgetrc n'existe pas encore. Il faut le créer! The configuration file .castgetrc should be located in a user's home directory. Pour connaître le home directory, employer la commande set DS207Plus> set HOME='/root' ... Normally the rc files are in the /opt/etc directory. On va créer le fichier de configuration /opt/etc/castget/.castgetrc .castgetrc (voir lien manuel pour plus d'information) ---------------------------------------------------------------------------- # Paramétrage par défaut [*] id3contenttype=Radio spool=/volume2/Zic2/Radio/ # Paramétrage détail ==> Radios <== [Europe1 - Revue de Presque - Nicolas Canteloup] url=http://www.europe1.fr/rss_export/feed/revue-de-presque-nicolas-canteloup [France Inter - Rendez-vous avec X] spool=/volume2/Zic2/Radio/14726 France Inter - Rendez-vous avec X/ url=http://radiofrance-podcast.net/podcast09/rss_14726.xml [France Inter - 2000 ans d'histoire] spool=/volume2/Zic2/Radio/14864 France Inter - 2000 ans d'histoire/ url=http://radiofrance-podcast.net/podcast09/rss_14864.xml [France Inter - Rue des entrepreneurs] spool=/volume2/Zic2/Radio/14958 France Inter - Rue des entrepreneurs/ url=http://radiofrance-podcast.net/podcast09/rss_14958.xml [France Inter - Le Masque et La Plume] spool=/volume2/Zic2/Radio/14007 France Inter - Le Masque et La Plume/ url=http://radiofrance-podcast.net/podcast09/rss_14007.xml [France Inter - Interception] spool=/volume2/Zic2/Radio/14934 France Inter - Interception/ url=http://radiofrance-podcast.net/podcast09/rss_14934.xml [France Culture - L'esprit public] spool=/volume2/Zic2/Radio/16119 France Culture - L'esprit public/ url=http://radiofrance-podcast.net/podcast09/rss_16119.xml [France Culture - A suivre] spool=/volume2/Zic2/Radio/10475 France Culture - A suivre/ url=http://radiofrance-podcast.net/podcast09/rss_10475.xml # Paramétrage détail ==> Podcasts <== [Ciel&Espace] id3contenttype=Podcast spool=/volume2/Zic2/Podcast/Ciel & Espace/ url=http://www.cieletespaceradio.fr/share/feeds/podcast.php --------------------------------------------------------------------------- Création d'un lien symbolique dans /root qui pointe vers le fichier qui se trouve dans /opt/etc/castget/ DS207Plus> ln -s /opt/etc/castget/.castgetrc /root/.castgetrc Faire un test DS207Plus> castget -v "Europe1 - Revue de Presque - Nicolas Canteloup" v est l'option verbose Mise à jour de la table crontab (fichier /etc/crontab) Arrêt du processus cron DS207Plus> /usr/syno/etc.defaults/rc.d/S04crond.sh stop Table crontab à mettre à jour en ajoutant les lignes: --------------------------------------------------------------------------- # Tabulation entre les champs, pas d'espace! # Lance castget (podcasts) chaque jour à minuit 0 0 * * * root /opt/bin/castget -v >> /var/log/castget.log 2>&1 # The standard stream stdout has the assigned number 1, and the stderr has number 2 # 2>&1 means redirecting stderr to stdout --------------------------------------------------------------------------- Relance du processus cron DS207Plus> /usr/syno/etc.defaults/rc.d/S04crond.sh start 0 Citer
Jeyce Posté(e) le 7 juillet 2009 Posté(e) le 7 juillet 2009 Bonjour, Ce tuto est excellent et fonctionne 0 Citer
GIC Posté(e) le 7 juillet 2009 Posté(e) le 7 juillet 2009 Bonjour, Ce tuto est excellent et fonctionne 0 Citer
Messages recommandés
Rejoindre la conversation
Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.