May 11, 2007
Banshee插件第一课
当大家从Windows移MP3到Linux平台时,很多时候会出现乱码问题,有见及此看看能不能在Banshee内做一插件把有关问题解决.本来的想法很简单以为一天可以弄好,后来发现要再进一步才能全解.第一课:在播放例表上本来就有改动ID3的Widget,只要在插件上把菜单加上,再连到己选列表再把ID3内容给用户选用不同的码如GB18030转到UTF8就可以了.基本上是可以的,但在列表上保留的ID3内容是从TagLib读完后保留下来的,因此已经转了一次码,那只可以直接再用TagLib把ID3的内容从读从转从写才可以...下回分解
Banshee Plugin take one
When someone move their MP3 files to Linux platform, most of the time will appear to be wrong encoded. So let see we can make a plugin in Banshee to solve this problem one and for all. At first it look like a simple enough idea that could be done in a day or two, however the story keep on coming.
First: Select the wrong encoded song in the play list, then we can put up a new menu item in the pop up menu. Signal it back to the convert function which could be select the original encoding by the user configuration, or just may be GB18030 ( for chinese ) and then convert to UTF8. Basically that is it and you are done. However, when I use the TagLib information from Banshee, it already get the data converted once. Which is not correct, so I need to read it directly from the media file and then convert it... Let's do that in the next session.
Posted 3 years, 7 months ago on May 11, 2007
The trackback url for this post is http://www.avengergear.com/blog/bblog/trackback.php/7/
The trackback url for this post is http://www.avengergear.com/blog/bblog/trackback.php/7/
Comments have now been turned off for this post