Version: 2.2.2 (using KDE 4.3.5) OS: Linux Installed from: Gentoo Packages Loading Playlist within Menu work Playlist->"Add Media..." but scripting won't work Amarok.Playlist.playMedia(new QUrl('file:///test.m3u'))
Ok, I'm a bit confused atm. I tried the following in the script console: ----- Importer.loadQtBinding( "qt.core" ); url = new QUrl("http://www.darkerradio.com/listen.pls"); Amarok.Playlist.playMedia( url ); ----- It works fine, as long as url is not a m3u playlist. tested with that remote .pls, a local mp3 and a local m3u.
This could be a bug, even regression, in M3UPlaylist. Something we should investigate.
even local pls and xspf dont' work
Please fix this bug, I cannot implement any webcontrol to change the playlist. It would be very useful to change a playlist saved in mysql
Is this still valid with Amarok 2.4.3 or current git?
Closing for lack of feedback. Feel free to reopen if you can reproduce this with the latest stable or git build.
still valid in Version 2.5.0 tested under KDE 4.7.4
Git commit 7d88d07cd4cd5fc9c316124d297f9c672ebdb779 by Matěj Laitl. Committed on 03/07/2012 at 23:20. Pushed by laitl into branch 'master'. AmarokPlaylistScript: play all media in {add,play}Media(), add playMediaList() No need to convert to tracks (this way it excluded playlists), PlaylistController is good enough to read all kinds of urls including playlists. Add playMediaList() method for symmetry with addMediaList() when at it. We thought it worked for other than .m3u playlists, but it was by chance becasce CollectionManager::trackForUrl() returned something (probably the first track) for other playlists. FIXED-IN: 2.6 M +3 -0 ChangeLog M +14 -8 src/scriptengine/AmarokPlaylistScript.cpp M +1 -0 src/scriptengine/AmarokPlaylistScript.h http://commits.kde.org/amarok/7d88d07cd4cd5fc9c316124d297f9c672ebdb779