> Message: 2
> Date: Wed, 28 Mar 2018 13:09:31 -0500
> From: Romain Beauxis <[email protected]>
> To: savonet-users <[email protected]>
> Subject: Re: [Savonet-users] Royalty reports
> Message-ID:
>       <CABWZ6ORzTY12egba9v1afHNXa_Z3WDU6Z3t1h3LWGqvEDZZkDA@
> mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> 
> Hey,
> 
> 2018-03-28 8:55 GMT-05:00 Nolan Wagner <[email protected]>:
> > I'm just curious, what solutions do you guys use for reporting for
> > royalty purposes?
> >
> > Just trying to see what the best options are for this.
> 
> It's a very good question. I don't know much about it but I'd be happy to
hear
> about possible solutions and see what could be included in the
distribution to
> help with that.
> 
> Romain


We do it with an external LIQ File. You need to create a push.php file to
send the metadata to a database.
It's just a quick and dirty solution for our needs and may give you a
direction to go.


set("tag.encodings",["UTF-8","ISO-8859-1"])
def send_meta(m) =
artist   = m["artist"]
title    = m["title"]
composer = url.encode(m["composer"])
artist2  = url.encode(m["artist"])
filename = m["filename"]
isrc = m["ISRC"]
ean = url.encode(m["catalog"])
ignore(http.get("http://<your_url>/push.php?channelid=" ^
url.encode(channelid) ^ "&ean=" ^ url.encode(m["catalog"]) ^ "&artist=" ^
artist2 ^ "&composer=" ^ url.encode(m["composer"]) ^ "&title=" ^
url.encode(m["title"]) ^ "&trackno=" ^ url.encode(m["tracknumber"]) ^
"&album=" ^ url.encode(m["album"]) ^ "&duration=" ^ m["file.length()"] ^
"&isrc=" ^ isrc ^ "&year=" ^ m["year"] ^ "&label=" ^
url.encode(m["publisher"]) ^ "&fullfilepath=" ^ url.encode(m["filename"]) ^
""))
print("Now playing: #{title} by #{artist}")
print ("Custom: #{artist2}")
print ("Filename: #{filename}")
print ("EAN: #{ean}")
print ("Composer: #{composer}")
print ("ISRC: #{isrc}")
print ("artist2: #{artist2}")

end
s = on_metadata(send_meta, s)

Cheers
Tom


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to