moog
-
Compteur de contenus
2 -
Inscription
-
Dernière visite
Messages posté(e)s par moog
-
-
Bonjour,
Tout d'abord un grand merci à toi MrWaloo pour la création de ce script qui répond parfaitement à mes attentes.
Cependant il doit il y avoir quelque chose dans le tuto que je n'ai pas saisi car aprés plusieurs tentatives je suis toujours confronté à la même erreur...
J'essaie d'indexer automatiquement le dossier "transmission" qui est le dossier dans lequel je télécharge la plupart de mes fichiers.
Quelque soit la commande utilisé :
python2.6 index_updater.py -t -v 2 -p Chemin/du/repertoire/transmission
ou
python index_updater.py -A -t -v 2
j'obtiens l'erreur suivante :
No path defined: every directories will be checked
**TEST** - Start
**TEST** - Media server enabled: START
**TEST** - Configuration read : {'transmission': {'index_mime': {'image': False, 'audio': False, 'video': False}, 'path': '/volume1/transmission'}, 'photo': {'path': '/volume1/photo', 'index_mime': {'image': True, 'audio': False, 'video': False}}, 'video': {'path': '/volume1/video', 'index_mime': {'image': False, 'audio': False, 'video': True}}, 'music': {'path': '/volume1/music', 'index_mime': {'image': False, 'audio': True, 'video': False}}}
**TEST** - *-* Working on share [transmission] whose path is '/volume1/transmission'
**TEST** - [transmission] is NOT to be indexed
**TEST** - *-* Working on share [photo] whose path is '/volume1/photo'
**TEST** - [photo] won't be indexed because it is not included in the path list
**TEST** - *-* Working on share whose path is '/volume1/video'
**TEST** - won't be indexed because it is not included in the path list
**TEST** - *-* Working on share [music] whose path is '/volume1/music'
**TEST** - [music] won't be indexed because it is not included in the path list
**TEST** - End
Voici le fichier log correspondant :
2012-11-08 23:38:56,734 - DEBUG - Logger initialized
2012-11-08 23:38:56,765 - DEBUG - Options: add: True, clean_db: False, clean_orphans: False, del_dbl_indexed: False, test: True
2012-11-08 23:38:56,766 - INFO - No path defined: every directories will be checked
2012-11-08 23:38:56,815 - DEBUG - MIME types initialized
2012-11-08 23:38:56,816 - INFO - Start
2012-11-08 23:38:56,824 - DEBUG - DSM majorversion = 4
2012-11-08 23:38:56,825 - DEBUG - Check package 'AudioStation'
2012-11-08 23:38:56,826 - DEBUG - '/var/packages/AudioStation/enabled' exists : return True
2012-11-08 23:38:56,827 - INFO - Media server enabled: START
2012-11-08 23:38:56,836 - DEBUG - Reading the configuration file (smb.conf)
2012-11-08 23:38:56,837 - DEBUG - New section: [global]
2012-11-08 23:38:56,839 - DEBUG - New section: [home]
2012-11-08 23:38:56,840 - DEBUG - New section: [homes]
2012-11-08 23:38:56,844 - DEBUG - New section: [music]
2012-11-08 23:38:56,846 - DEBUG - New section: [photo]
2012-11-08 23:38:56,848 - DEBUG - New section: [Plex]
2012-11-08 23:38:56,850 - DEBUG - New section: [transmission]
2012-11-08 23:38:56,852 - DEBUG - New section:
2012-11-08 23:38:56,856 - DEBUG - New section: [web]
2012-11-08 23:38:56,858 - DEBUG - Reading the configuration file (smb.conf) done
2012-11-08 23:38:56,859 - DEBUG - Add 'video' in the configuration share list
2012-11-08 23:38:56,860 - DEBUG - Add 'transmission' in the configuration share list
2012-11-08 23:38:56,861 - DEBUG - Add 'photo' in the configuration share list
2012-11-08 23:38:56,862 - DEBUG - Add 'music' in the configuration share list
2012-11-08 23:38:56,867 - INFO - Configuration read : {'transmission': {'index_mime': {'image': False, 'audio': False, 'video': False}, 'path': '/volume1/transmission'}, 'photo': {'path': '/volume1/photo', 'index_mime': {'image': True, 'audio': False, 'video': False}}, 'video': {'path': '/volume1/video', 'index_mime': {'image': False, 'audio': False, 'video': True}}, 'music': {'path': '/volume1/music', 'index_mime': {'image': False, 'audio': True, 'video': False}}}
2012-11-08 23:38:56,882 - INFO - *-* Working on share [transmission] whose path is '/volume1/transmission'
2012-11-08 23:38:56,891 - INFO - [transmission] is NOT to be indexed
2012-11-08 23:38:56,893 - INFO - *-* Working on share [photo] whose path is '/volume1/photo'
2012-11-08 23:38:56,895 - INFO - [photo] won't be indexed because it is not included in the path list
2012-11-08 23:38:56,896 - INFO - *-* Working on share whose path is '/volume1/video'
2012-11-08 23:38:56,897 - INFO - won't be indexed because it is not included in the path list
2012-11-08 23:38:56,898 - INFO - *-* Working on share [music] whose path is '/volume1/music'
2012-11-08 23:38:56,900 - INFO - [music] won't be indexed because it is not included in the path list
2012-11-08 23:38:56,901 - INFO - End
Je ne comprends pas bien pourquoi le fichier transmission "is NOT to be indexed"
et pourquoi les autres dossiers du type "photo" ne sont pas dans la "path list" même lorsque j'utilise la commande -a
Merci encore pour ton script (j'ai créé un compte sur ce forum spécialement pour ton script)
0
Mise
dans Tutoriels
Posté(e)
Ok merci pour le retour.