Guest User

Untitled

a guest
Dec 14th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. %n. %a - %t
  2.  
  3. Strings associated with code Will fill the field
  4. %a
  5. Artist
  6. %b
  7. Album
  8. %c
  9. Comment
  10. %p
  11. Composer
  12. %r
  13. Copyright
  14. %e
  15. Encoded by
  16. %g
  17. Genre
  18. %i
  19. None! (used to ignore a string)
  20. %l
  21. Number of tracks
  22. %o
  23. Original artist
  24. %n
  25. Track
  26. %t
  27. Title
  28. %u
  29. URL
  30. %y
  31. Year
  32.  
  33. “/mnt/MP3/EVANESCENCE – Fallen (2003) – Rock/01. Going Under.mp3”
  34.  
  35. b) with the pattern :
  36.  
  37. “%a - %b (%y) - %g/%n. %t”
  38.  
  39. c) you will fill the tag with theses strings :
  40.  
  41. Artist (%a) => EVANESCENCE
  42. Album (%b) => Fallen
  43. Year (%y) => 2003
  44. Genre (%g) => Rock
  45. Track (%n) => 01
  46. Title (%t) => Going Under
  47.  
  48. for x in *.mp3; do
  49. TITLE=$(strings "$x" |grep TAG |grep -v TAGL |sed "s/^.*TAG//g ; /^L$/d ; /^@$/d ; /^$/d ; /^Ac$/d")
  50. #mv "$x" "$TITLE.mp3"
  51. echo $x" "$TITLE.mp3" #just echo for now, until further tested
  52. done
  53.  
  54. sed -i "s/$TITLE/$x/" "$x"
  55.  
  56. for i in *.mp3; do avconv -y -i "$i" -c copy -metadata title="$i" new_"$i"; done;
  57.  
  58. for i in *.mp3; do /your/venv/bin/eyeD3 --title "$i" "$i"; done
Add Comment
Please, Sign In to add comment