Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
|
utilisateurs:alt.g:scripts [Le 01/01/2017, 03:03] alt.g créée |
utilisateurs:alt.g:scripts [Le 01/01/2017, 03:23] (Version actuelle) alt.g [musicNFO] |
||
|---|---|---|---|
| Ligne 15: | Ligne 15: | ||
| ===== musicNFO ===== | ===== musicNFO ===== | ||
| - | Ce script créer un fichier NFO pour les dossiers contenant des fichier MP3 ou FLAC. Il a été adapté depuis un script bugué dégoté sur le forum, il fonctionne mais il se pourrait qu'il y ait encore des bug, il n'a pas été complètement débogué | + | Ce script créer un fichier NFO pour les dossiers contenant des fichier MP3 ou FLAC. Il a été adapté depuis un script bugué dégoté sur le forum, il fonctionne mais il se pourrait qu'il y ait encore des bug, il n'a pas été complètement débogué\\ |
| + | |||
| + | **Utilisation:** | ||
| <code> | <code> | ||
| + | ./Scripts/musicNFO.sh [-m | -f] [title column witdh] [directory path] | ||
| + | </code> | ||
| + | Options (facultatif): | ||
| + | -m pour les fichier MP3 (par défaut)\\ | ||
| + | -f pour les fichiers FLAC\\ | ||
| + | Arguments:\\ | ||
| + | [title column witdh] : facultatif, largeur de colonne (par défaut 40 caractères)\\ | ||
| + | [directory path] : OBLIGATOIRE, chemin du dossier à analyser\\ | ||
| + | |||
| + | **script musicNFO.sh** | ||
| + | <code bash> | ||
| ###################################################################### | ###################################################################### | ||
| # | # | ||
| Ligne 29: | Ligne 42: | ||
| # Files format | # Files format | ||
| - | ext=flac | + | ext=mp3 |
| - | # if "-m" look for MP3 files | + | # if "-m" look for MP3 files (default) |
| [ "a$1" = a-m ] && shift && ext=mp3 | [ "a$1" = a-m ] && shift && ext=mp3 | ||
| - | # if "-f" look for FLAC files (default) | + | # if "-f" look for FLAC files |
| [ "a$1" = a-f ] && shift && ext=flac | [ "a$1" = a-f ] && shift && ext=flac | ||
| Ligne 146: | Ligne 159: | ||
| ############################################################## | ############################################################## | ||
| + | </code> | ||
| + | |||
| + | **Résultat:** fichier "Birdy Nam Nam - Jaded Future EP.nfo" | ||
| + | <code> | ||
| + | -------------------------------------------------------------------------------------------- | ||
| + | Birdy Nam Nam - Jaded Future EP | ||
| + | -------------------------------------------------------------------------------------------- | ||
| + | |||
| + | Artist : Birdy Nam Nam | ||
| + | Album : Jaded Future EP | ||
| + | Genre : Bass | ||
| + | Year : 2012 | ||
| + | Ripper : LAME3.98 | ||
| + | Format : MPEG Audio Layer 3 Version 1 | ||
| + | |||
| + | -------------------------------------------------------------------------------------------- | ||
| + | #| Title | Duration | Size | Bitrate | Mode | | ||
| + | -------------------------------------------------------------------------------------------- | ||
| + | 1| Jaded Future | 3mn 31s | 11.8 MiB | 320 Kbps | Constant | | ||
| + | 2| Jaded Future (Foreign Beggars remix) | 4mn 37s | 14.4 MiB | 320 Kbps | Constant | | ||
| + | 3| Jaded Future (Pelican Fly Remix) | 5mn 7s | 15.5 MiB | 320 Kbps | Constant | | ||
| + | 4| Goin' In | 3mn 44s | 12.4 MiB | 320 Kbps | Constant | | ||
| + | 5| Goin' In (Skrillex Goin' Hard mix) | 4mn 0s | 12.9 MiB | 320 Kbps | Constant | | ||
| + | 6| Goin' In (Skrillex Goin' Down mix) | 3mn 37s | 12.1 MiB | 320 Kbps | Constant | | ||
| + | 7| Goin' In (French Fries Remix) | 5mn 33s | 16.5 MiB | 320 Kbps | Constant | | ||
| + | 8| Cadillac Dreams | 4mn 20s | 13.7 MiB | 320 Kbps | Constant | | ||
| + | 9| Cadillac Dreams (Culprate Remix) | 4mn 37s | 14.4 MiB | 320 Kbps | Constant | | ||
| + | 10| Cadillac Dreams (Soufien 3000 | 2mn 46s | 10.1 MiB | 320 Kbps | Constant | | ||
| + | -------------------------------------------------------------------------------------------- | ||
| + | |||
| + | Total Size...........: 135MB. | ||
| + | NFO generated on.....: 01/01/17 03:21:47 | ||
| </code> | </code> | ||