home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Global Music Search v2.0.0 [2014-02-19]
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="pedu" data-source="post: 835430" data-attributes="member: 118288"><p>First of all - i love this plugin. Not sure if it's being actively developed anymore, but I discovered a bug when two or more artists have released an album of the same name, like</p><p></p><p>Artist: Real Life</p><p>Album: Heartland</p><p></p><p>Artist: Sko & Torp</p><p>Album: Heartland</p><p></p><p>The albums of course are completely different apart from sharing the album title. If I search for SomeTrackName which is included on the second album above the plugin finds the correct track and dispalys the result. Now if I select Enter on the track and choose to add the complete album to the playlist, the plugin adds the wrong album - in this case the album by Real Life, not the album by Sko & Torp. Hope this can be easily fixed?</p><p></p><p>Cheers,</p><p>Peter</p><p></p><p>Just took a look at the source and I think it's obvious why the wrong album is added to the playlist</p><p></p><p> ArrayList _album = new ArrayList();</p><p> String sAlbum = song.Album;</p><p> MusicDatabase _mdb = MusicDatabase.Instance;</p><p> bool _songsFound = _mdb.GetSongsByAlbum(sAlbum, ref _album);</p><p></p><p>The method call _mdb.GetSongsByAlbum(sAlbum, ref _album) takes a string parameter and natutally returns the songs from the first found album with sAlbum name. For this to work it should take an albumId in the form of an integer to return the correct result, something like</p><p></p><p> ArrayList _album = new ArrayList();</p><p> <em>integer AlbumId = song.AlbumId;</em></p><p> MusicDatabase _mdb = MusicDatabase.Instance;</p><p> bool _songsFound =<em> _mdb.GetSongsByAlbumId(AlbumId, ref _album);</em></p><p></p><p>Since I don't know the MediaPortal API I don't know if this is even possible?</p></blockquote><p></p>
[QUOTE="pedu, post: 835430, member: 118288"] First of all - i love this plugin. Not sure if it's being actively developed anymore, but I discovered a bug when two or more artists have released an album of the same name, like Artist: Real Life Album: Heartland Artist: Sko & Torp Album: Heartland The albums of course are completely different apart from sharing the album title. If I search for SomeTrackName which is included on the second album above the plugin finds the correct track and dispalys the result. Now if I select Enter on the track and choose to add the complete album to the playlist, the plugin adds the wrong album - in this case the album by Real Life, not the album by Sko & Torp. Hope this can be easily fixed? Cheers, Peter Just took a look at the source and I think it's obvious why the wrong album is added to the playlist ArrayList _album = new ArrayList(); String sAlbum = song.Album; MusicDatabase _mdb = MusicDatabase.Instance; bool _songsFound = _mdb.GetSongsByAlbum(sAlbum, ref _album); The method call _mdb.GetSongsByAlbum(sAlbum, ref _album) takes a string parameter and natutally returns the songs from the first found album with sAlbum name. For this to work it should take an albumId in the form of an integer to return the correct result, something like ArrayList _album = new ArrayList(); [I]integer AlbumId = song.AlbumId;[/I] MusicDatabase _mdb = MusicDatabase.Instance; bool _songsFound =[I] _mdb.GetSongsByAlbumId(AlbumId, ref _album);[/I] Since I don't know the MediaPortal API I don't know if this is even possible? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Global Music Search v2.0.0 [2014-02-19]
Contact us
RSS
Top
Bottom