John Percival wrote:
> Thanks for the reply.
>
> I'm sure there is a clue if you're a Python expert, which I'm slowly becoming!
>
> It seems to be something to do with re-mapping genres, e.g renaming 
> 'classiscal' to be 'crap'.
>
> The problem is that without something sensible in that config item, the 
> plugin crashed with a 'has_key' error.
>
> I've commented out this:
>
>            ## genre remapping
>            if self.genremap.has_key(g):
>            g = self.genremap[g]
>
> and it's working fine. Except I can't re-map genres, but I can live with that.
>
>
>
>   
>> ----------------------------------------
>> From: John Molohan <john.molo...@gcd.ie>
>> Sent: Wed Jul 29 20:32:11 CEST 2009
>> To: John Percival <john.perci...@mail.be>, 
>> <freevo-users@lists.sourceforge.net>
>> Subject: Re: [Freevo-users] ICECAST_GENRE_MAP
>>
>>
>> John Percival wrote:
>>     
>>> Quick question:
>>>
>>> can somebody tell me the format of ICECAST_GENRE_MAP for icecast.py, please?
>>>
>>> Thanks.
>>>
>>>
>>> John.
>>>       
>> Never come across it before. Is there no clue in the code in icecast.py 
>> itself?
>>
>> John
>>     
>
> -----------------------------------------------------
> Mail.be, WebMail and Virtual Office
> http://www.mail.be
>
>
> I contacted the author of icecast.py and he kindly provided the following 
> example:
>
> ICECAST_GENRE_MAP = {
>   '':'--unknown--',
>   '&':'and',
>   'alterbative':'alternative',
>   'alternatif':'alternative',
>   'alternativa':'alternative',
>   'alt':'alternative',
>   'alternativ':'alternative',
>   'ambien':'ambient',
>   'alsacian':'alaska',
>   'animation':'anime',
>   'animes':'anime',
>   'bootlegs':'bootleg',
>   '40':'40s',
>   '50':'50s',
>   '70':'70s',
>   '70er':'70s',
>   'annees70':'70s',
>   '80':'80s',
>   '80er':'80s',
>   '80s.':'80s',
> }
Excellent. Can you put that in the wiki so others don't have to go 
through it? Ideally if you could put in in the plugin itself then make a 
diff and submit a patch that would be best. See the patches section of 
the contributing guide on the wiki http://doc.freevo.org/Contributing 
and then submit the patch here 
http://sourceforge.net/tracker/?atid=446895&group_id=46652

Thanks,

John

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to