Read ID3 Tags of Remote MP3 File in Ruby/Rails?

前端 未结 2 782
北海茫月
北海茫月 2021-01-02 20:16

Using Ruby, how can one parse the ID3 tags of remote mp3 files without downloading the entire file to disk?

This question has been asked in Java and Silverlight, but

2条回答
  •  既然无缘
    2021-01-02 21:05

    you would at least have to download the last blocks of the file, which contain the ID3 tags -- see ID3 tag definitions...

    if you have access to the files on the remote file system, you could do. this remotely, and then transfer back the ID3 tags

    Edit:

    I was thinking of ID3 v1 tags -- version 2 tags are in the front.

提交回复
热议问题