Jump to content

Inf

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Inf

  1. I'm not sure, what wrong with _ID3GetTagField, but problem in only with ID3v1, and only with some music-files. _ID3GetTagField returns ID3v2 tags without spaces, "ready for use", ID3v1 — with. So, only ID3v1 must be processed, and here comes problem with Ch(0).
  2. Hi, title="SitringStripWS versus Chr(0): post #4"> Melba23 ! Did my little investigations. Flag=8 strips ALL spaces (even single between words, while help says "To strip single spaces between words, use the function StringReplace()"). So for now i do: $Artist=StringStripWS( StringReplace(_ID3GetTagField("Artist"),Chr(0)," ") ,3) $Track=StringStripWS( StringReplace(_ID3GetTagField("Title"),Chr(0)," ") ,3) $Album=StringStripWS( StringReplace(_ID3GetTagField("Album"),Chr(0)," ") ,3) replacing all Ch(0) with spaces (Ch(32)) and than strip leading and trailing spaces. Thanks to all for your time, spent helping me. Now I'm going for ini-file and GUI
  3. Hi, l3ill! Thank you for fast reply. I have tried flag=8 ("8 = strip all spaces (over-rides all other flags)") and it also does't strips whitespaces (Ch(0)). Will try in BETA.
  4. Hi, All! Writing my own "winamp song to text file" script and have problem with striping ID3v1 tags. Got ID3.au3 form >this topic, and it works great except ID3v1 tags — it returns them full 30 bytes length. OK, it's not a problem, stripping all trailing (and leading, if any) spaces with $Artist=StringStripWS(_ID3GetTagField("Artist"),3) $Track=StringStripWS(_ID3GetTagField("Title"),3) $Album=StringStripWS(_ID3GetTagField("Album"),3) It works, but have found 1 mp3 file with ID3v1 tags, which returns trailing Ch(0) instead of Ch(32) (spaces) (have checked it in my generated text file viewing it in hex). And StringStripWS doesn't strips Ch(0) (while help says "Whitespace also includes the null string ( Chr(0) ) and the standard space ( Chr(32) )"). Also checked other ID3v1-only mp3's, and they returns Ch(20), so for now the only idea I have is to ignore such *wrong* mp3's, but I also want to know is there any solution, or did I missed something?
×
×
  • Create New...