The Songle Song URI parser is a gem package providing class to handle the Song URI.
The Song URI is an unique ID of the song that is managed by the Songle.
This gem package can parse it.
- ruby >= 2.4
$ gem install songle-song-uri-parserrequire "songle-song-uri-parser"
song =
::Songle::SongURI.parse("https://staff.aist.go.jp/t.nakano/music/VocaWatcher.Prologue.Miku.mp3")
p song.permalink #=> "https://staff.aist.go.jp/t.nakano/music/VocaWatcher.Prologue.Miku.mp3"
p song.type #=> "mp3"
p song.to_s #=> "https://songle.jp/songs/staff.aist.go.jp%2Ft.nakano%2Fmusic%2FVocaWatcher.Prologue.Miku.mp3"- ruby >= 2.4
Install dependenting gem packages using bundler.
$ bundle install$ rake specBug reports and pull requests are welcome on GitHub at https://github.com/hinata/songle-song-uri-parser.
The gem is available as open source under the terms of the MIT License.