mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 17:47:32 -05:00
Merge pull request #144 from DSheirer/112-playlist-v2-loading-issue
Resolves #112 issue with loading/discovering playlist V2 filename
This commit is contained in:
@@ -212,13 +212,13 @@ public class PlaylistManager implements ChannelEventListener
|
|||||||
{
|
{
|
||||||
if(mPlaylistCurrentPath == null)
|
if(mPlaylistCurrentPath == null)
|
||||||
{
|
{
|
||||||
SystemProperties props = SystemProperties.getInstance();
|
//Temporarily removed and hard-coding the V2 playlist name. Will be reimplemented with future
|
||||||
|
//enhancement that allows multiple playlists.
|
||||||
|
// SystemProperties props = SystemProperties.getInstance();
|
||||||
|
// String playlistDefault = props.get("playlist.defaultfilename", "playlist_v2.xml");
|
||||||
|
// String playlistCurrent = props.get("playlist.currentfilename", playlistDefault);
|
||||||
|
|
||||||
String playlistDefault = props.get("playlist.defaultfilename", "playlist_v2.xml");
|
mPlaylistCurrentPath = getPlaylistFolderPath().resolve("playlist_v2.xml");
|
||||||
|
|
||||||
String playlistCurrent = props.get("playlist.currentfilename", playlistDefault);
|
|
||||||
|
|
||||||
mPlaylistCurrentPath = getPlaylistFolderPath().resolve(playlistCurrent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return mPlaylistCurrentPath;
|
return mPlaylistCurrentPath;
|
||||||
@@ -347,7 +347,7 @@ public class PlaylistManager implements ChannelEventListener
|
|||||||
*/
|
*/
|
||||||
public PlaylistV2 load()
|
public PlaylistV2 load()
|
||||||
{
|
{
|
||||||
mLog.info("loading version 2 playlist file [" + getPlaylistPath().toString() + "]");
|
mLog.info("Attempting to load version 2 playlist file [" + getPlaylistPath().toString() + "]");
|
||||||
|
|
||||||
PlaylistV2 playlist = null;
|
PlaylistV2 playlist = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user