From ec51a3a1a1fce19fc6ec3e1707d8d919e461f77f Mon Sep 17 00:00:00 2001 From: sheeple Date: Fri, 27 Feb 2009 00:27:39 -0600 Subject: [PATCH] id3-info -> id3v1-info, remove work in progress --- extra/id3/id3.factor | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/extra/id3/id3.factor b/extra/id3/id3.factor index aa27fb95c7..d1397285d7 100644 --- a/extra/id3/id3.factor +++ b/extra/id3/id3.factor @@ -45,9 +45,9 @@ TUPLE: frame frame-id flags size data ; TUPLE: id3v2-info header frames ; -TUPLE: id3-info title artist album year comment genre ; +TUPLE: id3v1-info title artist album year comment genre ; -: ( -- object ) id3-info new ; +: ( -- object ) id3v1-info new ; : ( header frames -- object ) [ [ frame-id>> ] keep ] H{ } map>assoc @@ -137,7 +137,7 @@ TUPLE: id3-info title artist album year comment genre ; : skip-to-v1-data ( seq -- seq ) 125 tail-slice* ; inline : (read-v1-tag-data) ( seq -- mp3-file ) - [ ] dip + [ ] dip { [ 30 head-slice decode-text filter-text-data >>title ] [ [ 30 60 ] dip subseq decode-text filter-text-data >>artist ] @@ -187,8 +187,3 @@ PRIVATE> [ drop f ] } cond ] with-mapped-uchar-file ; - -: write-id3-tags ( id3v2-info path -- ) - binary [ - - ] with-file-writer ;