just seen this today, its under gpl on github https://github.com/tchoulihan/torrenttunes-server/
just posting here incase it may be helpful to your project.
http://torrenttunes.ml/
https://www.reddit.com/r/linux/comments/3z5dqd/oc_ive_built_a_decentralized_bittorrentbased/
also if you did not hear about this: bittorrent filesystem, With BTFS, you can mount any .torrent file or magnet link and then use it as any read-only directory in your file tree
https://github.com/johang/btfs
wow runs smootly .. nice find . thx for sharing ..