foamzou / media-get

Get the media through the url
Apache License 2.0
267 stars 22 forks source link

Feature request: please add audio quality or bitrate in search results. #14

Open Green-m opened 1 year ago

Green-m commented 1 year ago

Is your proposal related to a problem?

For now the search results is something like:

    {
        "Name": "어디에 있을까",
        "Artist": "Hello Gayoung",
        "Album": "단편집 `어디에 있을까`",
        "Duration": 255,
        "Url": "https://y.qq.com/n/ryqq/songDetail/0005H9o83BiHWz",
        "ResourceForbidden": true,
        "Source": "qq",
        "FromMusicPlatform": true,
        "Score": -115.12299999999999
    },

There is no audio quality or bitrate (and the score seems not very useful), I can only know the bitrate after I have finished downloading.

Describe the solution you'd like

Maybe provide some option to get the bitrate or music file size or something more detailed metadata info?

Like the youtube-dl:

# list formats about. the media
youtube-dl -F 'http://www.youtube.com/watch?v=P9pzm5b6FFY'

# download the best
youtube-dl -f best 'http://www.youtube.com/watch?v=P9pzm5b6FFY'

As addition, maybe the feature can be used in your another project https://github.com/foamzou/melody/issues/6

foamzou commented 1 year ago

Thanks for your suggestion. Could you help to implement it? : )

Green-m commented 1 year ago

I would like to do this if I were familar to golang