Reply
Trusted Contributor
TheCoolDude
Posts: 196
Registered: ‎05-01-2011
0

Re: Music XML generator

Thanks for the tip. :smileyhappy:
Esteemed Contributor
drizzt09
Posts: 668
Registered: ‎01-24-2011

Re: Music XML generator


TheCoolDude wrote:
Thanks for the tip. :smileyhappy:

try this:

 

$filename(%artist% - %year% - %album%.xml,utf-8)<?xml version="1.0" encoding="UTF-8"?>
<details>
<album>%album%</album>
<artist>%artist%</artist>
<genre>%genre%</genre>
<year>%year%</year>
<overview>
$loop(%album%) %track%. %title%
$loopend()</overview>
<prevalbum>N/A</prevalbum>
<prevartist>N/A</prevartist>
<prevgenre>N/A</prevgenre>
</details>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running Firmware 3.05 with ALASKA RESURFACE.
Please vote for Wall mode with Trailer and
BlackBerry Smartphone/ BlackBerry PlayBook application
Trusted Contributor
TheCoolDude
Posts: 196
Registered: ‎05-01-2011
0

Re: Music XML generator

I wish I could Kudo more than once. Thanks a lot. I tried to do this but I could never get it right. My programming skills have never been the best. Again Thank You.
Trusted Contributor
pearl
Posts: 485
Registered: ‎10-18-2011
0

Re: Music XML generator

Okay, thought i had it all but apparenty am confused. I have run the MP3tag app to generate the XML file. My my music is all in FLAC and already had all the metadata and album cover embeded, as well as a folder.jpg for each album, which are all in individual folders.

 

So, now what do I do? I have generated  the XML into the folder of each album but am not sure how to get to view it in the same way I view my movie XMLs. I am using the MOJO theme. I saw that I need to run the albums through TG but do I still need to do that if I already have the folder.jpg?

 

Sorry to be so confused. I have not really used TG as I went through my movies with Hubgen. Seems that there are only two views for music and neither read the XML. Here is a sample XML that was generated.

 

<?xml version="1.0" encoding="UTF-8"?>
<details>
 <album>Dirty Deeds Done Dirt Cheap</album>
 <artist>AC/DC</artist>
 <genre>Hard Rock</genre>
 <year>1976</year>
 <overview></overview>
 <prevalbum>N/A</prevalbum>
 <prevartist>N/A</prevartist>
 <prevgenre>N/A</prevgenre>
</details>

 

So, can anyone point me in the right directions please. I am excited with the prospect of having my music setup with sheets like my movies are.

 

TIA

 

-P

Esteemed Contributor
drizzt09
Posts: 668
Registered: ‎01-24-2011
0

Re: Music XML generator

Pearl.

 

with music xml you have to press options-view info.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running Firmware 3.05 with ALASKA RESURFACE.
Please vote for Wall mode with Trailer and
BlackBerry Smartphone/ BlackBerry PlayBook application
Trusted Contributor
pearl
Posts: 485
Registered: ‎10-18-2011
0

Re: Music XML generator

Ahh I think I got it. So per song you can look at the data that is in the XML with Artist, Genre and Year.

 

So my question now becomes: I already have all of that info embeded into my FLAC files and i see all of that when I am simply playing an album, along with the album cover, next song etc. So most of the info I already have available.

 

What I am figuring out here is that by manually adding data to the <overview></overview> section of the XML I can bring that up vy hitting "view info" when listening to an album. Is that what you are using this to do? You would use this for an album review or info about the muscians / band or album there?

 

If there is more I am still missing let me know. Also are you manually editing that section or scraping that from a DB somewhere? I am trying to decide if I am going to go through my albums and add the reviews etc from someplace like allmusic dot com.

 

Thanks for the help

 

-P

 

Esteemed Contributor
drizzt09
Posts: 668
Registered: ‎01-24-2011
0

Re: Music XML generator

with the download the overview section is blank so in mp3tag you can add whatever info you wanna put in about the artist or album. Or if you replace the downloaded mte code with what I pasted a few posts back it automaticially puts the album track listing in the overview section. dont need to put anything manually.

 

Unfortunately I have not seen a way for mp3tag to scrape album/artist information data automatically.

 

But yes the purpose of having the xml for music on the hub is for the options-view info. If you do not wish to use this feature you do not need to. It just depends if its a feature you are interested in utilizing.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running Firmware 3.05 with ALASKA RESURFACE.
Please vote for Wall mode with Trailer and
BlackBerry Smartphone/ BlackBerry PlayBook application
Trusted Contributor
pearl
Posts: 485
Registered: ‎10-18-2011
0

Re: Music XML generator

Perfect drizzt09, got it and it is going to work really well for me now that I have been playing with it. I have been collecting live recordings for many years so they are a huge part of my music collection. In each music folder I have a text file that indicates info about the concert, the recording equiment used and stuff like that. I realized that your setup is going to work great for that. Instead of me having to connect to the hub via my laptop to read that info when I am listening to a show, I am now going to have it all in the XML and just be able to pull it up on the TV. Killer.

 

My next project is to write a script that takes the data from my info.txt file that is in every concert's directory and have it pulled into the overview section of the XML file in that directory. If I cant figure that out, "cut and paste" it is :smileyvery-happy:

 

Thanks so much for the help and getting this app to make the XML files. Going to work like a charm for my needs now that I understand it.

 

-P

Esteemed Contributor
drizzt09
Posts: 668
Registered: ‎01-24-2011
0

Re: Music XML generator

awesome, glad it is working for you.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running Firmware 3.05 with ALASKA RESURFACE.
Please vote for Wall mode with Trailer and
BlackBerry Smartphone/ BlackBerry PlayBook application
Trusted Contributor
Steffen_2009
Posts: 449
Registered: ‎11-05-2011
0

Re: Music XML generator

[ Edited ]
 
Hello drizzt09, everyone,
 
I am happy about this threat - at the moment I am trying to realize the concept of the first post.
 
The part with the programme "MP3tag" works well - my question is about handling ThumbGen for music files:
How do I get an (automatic) folder.jpg for artist, i mean a picture of the band in every artist-folder of my HD ?
 
Background information:
My music  for WD SMP is organized like that:
xy: \ music \ %artist% \ %album% \ %songnr% - %song%

Now I would like to see a picture for each artist/band with the WD.
Manually done it is working fine by just putting a band-jpg into the upper %artist%-folder (named as folder.jpg).

 With your tipp I was already able to process a XML-file like that:
"
<?xml version="1.0" encoding="UTF-8"?>
<details>
 <album>High Voltage</album>
 <artist>AC/DC</artist>
 <genre>Heavy Metal</genre>
 <year>1976</year>
 <overview>                            </overview>
 <prevalbum>N/A</prevalbum>
 <prevartist>N/A</prevartist>
 <prevgenre>N/A</prevgenre>
</details>
"
But how can I process the next step with ThumbGen ???
 
______________________________________________________
WD TV Live Streaming Media Player SMP, Firmware 1.06.04
Installed Theme: Tinwarble's Darklight-Beta & JoeySmyth's MusicPlayBack Apple-Re-Work for bessa
Forums | Ideas | News and Announcements | Register | Sign in | Help | Forum Guidelines
Copyright © 2001 - 2010 Western Digital Corporation, All rights reserved. | Trademarks | Privacy | Terms of Service | Terms of Use | Copyright | Contact WD