Last.FM Rework and Auto DJ mode (1 Viewer)

hwahrmann

Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    I agree we should get this into 1.6 Pre also, but as far as i understood from Mike, there are 2 or 3 things that need an update for both the allmusic & LastFM rework to be compatible.
    Maybe you have an idea about this also?

    Sorry, i didn't follow those issues. Have no idea, what could be missing
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    It's related to Audioscrobber, i have added something in code to know what need to be fixed :)
    FIXME or something (hmmm do we forget Jira issue for it).

    Here : in \mediaportal\WindowPlugins\GUIMusic\GUIMusicBaseWindow.cs about 'AudioscrobblerBase.UndoArtistPrefix'
    protected override void OnInfo(int iItem)
    {
    var pItem = facadeLayout[iItem];
    if (pItem == null)
    {
    return;
    }
    var song = pItem.AlbumInfoTag as Song;
    if (song == null)
    {
    return;
    }
    else if (song.Album != "")
    {
    var artist = song.Artist;
    if (_strippedPrefixes)
    {
    //Fix ME
    //artist = AudioscrobblerBase.UndoArtistPrefix(song.Artist);
    }
    ShowAlbumInfo(artist, song.Album);
    }
    else if (!string.IsNullOrEmpty(song.Artist))
    {
    var artist = song.Artist;
    if (_strippedPrefixes)
    {
    //Fix ME
    //artist = AudioscrobblerBase.UndoArtistPrefix(song.Artist);
    }

    ShowArtistInfo(artist, song.Album);
    }
    else if (!string.IsNullOrEmpty(song.AlbumArtist))
    {
    var artist = song.AlbumArtist;
    if (_strippedPrefixes)
    {
    //Fix ME
    //artist = AudioscrobblerBase.UndoArtistPrefix(song.AlbumArtist);
    }

    ShowArtistInfo(artist, song.Album);
    }
    facadeLayout.RefreshCoverArt();
    }
     

    grabi_2001

    Portal Pro
    May 8, 2009
    283
    107
    in den Alpen
    Home Country
    Germany Germany
    Hello,
    I have now updated to MP 1.6 pre.
    LastFM does not work for me. I have entered an account. Get nothing displayed in titanium.
    Am I doing something wrong?
    Thank you and sorry for my bad english
    Dirk
     

    Olli0815

    MP Donator
  • Premium Supporter
  • August 22, 2006
    182
    17
    Hi Dirk,


    for me it works with the default skin – under plugins (the “old Links” within the music section of the skin does not work).


    But I am struggling with the use of the PlugIn. I can’t find any context menu (love, bane etc.) . Furthermore I have to typing the tags or the artists when using these items all the time. The former version got them from my last.fm account and you just need to choose from a popup. Is this feature not implemented? Is it skin / or DB related?



    And as I write this text – the plugin crash after one song….find the logs attached..
    edit: it was WASAPI related problem...within the config..
     
    Last edited:

    thm

    MP Donator
  • Premium Supporter
  • January 18, 2013
    5
    0
    47
    Home Country
    Germany Germany
    Same for me. LastFMradio plays one song and then stops playing further song. This was fine in latest 1.5 I was using.
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Same for me. LastFMradio plays one song and then stops playing further song. This was fine in latest 1.5 I was using.
    I can confirm but I don't have any time to look into. @hwahrmann I am fairly sure it is a player issue with the new stream being disposed before it starts.

    Code:
    [2013-11-24 10:17:17,099] [Log    ] [21       ] [DEBUG] - BASS: End of Song http://play.last.fm/user/163906da4496f92a7648d33d8103c2aa.mp3
    [2013-11-24 10:17:18,232] [Log    ] [21       ] [DEBUG] - BASS: Disposing Music Stream http://play.last.fm/user/4ab02af7dde41aa1f54f808390008eaf.mp3
    [2013-11-24 10:17:18,233] [Log    ] [21       ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:17:18,233] [Log    ] [21       ] [INFO ] - BASS: Creating BASS audio stream
    [2013-11-24 10:17:18,527] [Error  ] [21       ] [ERROR] - BASS: Unable to create Stream for http://play.last.fm/user/4ab02af7dde41aa1f54f808390008eaf.mp3.  Reason: BASS_ERROR_UNKNOWN.
    [2013-11-24 10:17:18,529] [Log    ] [21       ] [INFO ] - g_Player.OnStarted() http://play.last.fm/user/4ab02af7dde41aa1f54f808390008eaf.mp3 media:Music
    [2013-11-24 10:17:18,704] [Log    ] [21       ] [DEBUG] - internet connection detected. Can process last.fm announce or Auto DJ
    [2013-11-24 10:17:18,792] [Log    ] [BASS Free] [DEBUG] - BASS: Disposing Music Stream http://play.last.fm/user/163906da4496f92a7648d33d8103c2aa.mp3

    so ..2aa.mp3 ends and then the next track seems to get disposed before it starts but then OnStarted fires anyway even though there was a BASS error (presumably because the stream was disposed).
    So there is an issue with disposing of tracks (possibly just webstreams?) but also should OnStarted actually fire if there was a BASS error?

    Edit: this is only when changing to the next track in the playist because the current one ends, skipping tracks seems OK.

    Code:
    [2013-11-24 10:14:31,695] [Log    ] [MPMain   ] [INFO ] - g_Player.Play(http://play.last.fm/user/fdcdaeed902b47866391eb50ceeee859.mp3 Music)
    [2013-11-24 10:14:31,711] [Log    ] [MPMain   ] [DEBUG] - BASS: BASS audio engine was previously freed. Re-Init
    [2013-11-24 10:14:31,713] [Log    ] [MPMain   ] [INFO ] - BASS: Using WASAPI device: TX-SR876 (Intel(R) Display Audio)
    [2013-11-24 10:14:31,731] [Log    ] [MPMain   ] [INFO ] - BASS: Device Information
    [2013-11-24 10:14:31,732] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:31,732] [Log    ] [MPMain   ] [INFO ] - BASS: Name: TX-SR876 (Intel(R) Display Audio)
    [2013-11-24 10:14:31,732] [Log    ] [MPMain   ] [DEBUG] - BASS: Id: {0.0.0.00000000}.{92ee607c-6c92-4720-a384-a59dffaf4672}
    [2013-11-24 10:14:31,732] [Log    ] [MPMain   ] [DEBUG] - BASS: Type: BASS_WASAPI_TYPE_HDMI
    [2013-11-24 10:14:31,732] [Log    ] [MPMain   ] [INFO ] - BASS: Shared Mode Channels: 4
    [2013-11-24 10:14:31,732] [Log    ] [MPMain   ] [INFO ] - BASS: Shared Mode Samplerate: 44100
    [2013-11-24 10:14:31,733] [Log    ] [MPMain   ] [DEBUG] - BASS: This device supports following formats in WASAPI Exclusive mode:
    [2013-11-24 10:14:31,733] [Log    ] [MPMain   ] [DEBUG] - BASS: Rate   Ch Maximum Supported
    [2013-11-24 10:14:31,739] [Log    ] [MPMain   ] [DEBUG] - BASS:  32000  2 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,740] [Log    ] [MPMain   ] [DEBUG] - BASS:  32000  4 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,741] [Log    ] [MPMain   ] [DEBUG] - BASS:  32000  6 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,742] [Log    ] [MPMain   ] [DEBUG] - BASS:  32000  8 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,743] [Log    ] [MPMain   ] [DEBUG] - BASS:  44100  2 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,744] [Log    ] [MPMain   ] [DEBUG] - BASS:  44100  4 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,745] [Log    ] [MPMain   ] [DEBUG] - BASS:  44100  6 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,746] [Log    ] [MPMain   ] [DEBUG] - BASS:  44100  8 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,747] [Log    ] [MPMain   ] [DEBUG] - BASS:  48000  2 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,748] [Log    ] [MPMain   ] [DEBUG] - BASS:  48000  4 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,749] [Log    ] [MPMain   ] [DEBUG] - BASS:  48000  6 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,750] [Log    ] [MPMain   ] [DEBUG] - BASS:  48000  8 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,751] [Log    ] [MPMain   ] [DEBUG] - BASS:  88200  2 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,752] [Log    ] [MPMain   ] [DEBUG] - BASS:  88200  4 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,753] [Log    ] [MPMain   ] [DEBUG] - BASS:  88200  6 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,754] [Log    ] [MPMain   ] [DEBUG] - BASS:  88200  8 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,755] [Log    ] [MPMain   ] [DEBUG] - BASS:  96000  2 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,756] [Log    ] [MPMain   ] [DEBUG] - BASS:  96000  4 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,757] [Log    ] [MPMain   ] [DEBUG] - BASS:  96000  6 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,758] [Log    ] [MPMain   ] [DEBUG] - BASS:  96000  8 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,759] [Log    ] [MPMain   ] [DEBUG] - BASS: 192000  2 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,760] [Log    ] [MPMain   ] [DEBUG] - BASS: 192000  4 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,761] [Log    ] [MPMain   ] [DEBUG] - BASS: 192000  6 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,762] [Log    ] [MPMain   ] [DEBUG] - BASS: 192000  8 BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:31,762] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:31,762] [Log    ] [MPMain   ] [INFO ] - BASS: Initialization done.
    [2013-11-24 10:14:31,762] [Log    ] [MPMain   ] [DEBUG] - PlayerFactory: Successfully created player instance for file - http://play.last.fm/user/fdcdaeed902b47866391eb50ceeee859.mp3
    [2013-11-24 10:14:31,768] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:31,768] [Log    ] [MPMain   ] [INFO ] - BASS: Creating BASS audio stream
    [2013-11-24 10:14:32,976] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: HTTP/1.1 200 OK
    [2013-11-24 10:14:32,976] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: Content-Type: audio/mpeg
    [2013-11-24 10:14:32,976] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: Content-Length: 2856924
    [2013-11-24 10:14:32,977] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: Accept-Ranges: bytes
    [2013-11-24 10:14:32,977] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: Cache-Control: no-cache, must-revalidate
    [2013-11-24 10:14:33,000] [Log    ] [MPMain   ] [DEBUG] - BASS: Webstream found - fetching stream -1342177279
    [2013-11-24 10:14:33,000] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Information
    [2013-11-24 10:14:33,000] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:33,001] [Log    ] [MPMain   ] [INFO ] - BASS: File: http://play.last.fm/user/fdcdaeed902b47866391eb50ceeee859.mp3
    [2013-11-24 10:14:33,001] [Log    ] [MPMain   ] [DEBUG] - BASS: Type of Stream: BASS_CTYPE_STREAM_MP3
    [2013-11-24 10:14:33,001] [Log    ] [MPMain   ] [INFO ] - BASS: Number of Channels: 2
    [2013-11-24 10:14:33,002] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Samplerate: 44100
    [2013-11-24 10:14:33,002] [Log    ] [MPMain   ] [DEBUG] - BASS: Stream Flags: BASS_MUSIC_FLOAT, BASS_STREAM_DECODE, BASS_UNICODE
    [2013-11-24 10:14:33,002] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:33,003] [Log    ] [MPMain   ] [DEBUG] - BASS: Registering stream playback events
    [2013-11-24 10:14:33,009] [Log    ] [MPMain   ] [INFO ] - BASS: Successfully created BASS audio stream
    [2013-11-24 10:14:33,009] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:33,015] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    [2013-11-24 10:14:33,016] [Log    ] [MPMain   ] [DEBUG] - BASS: Creating BASS mixer stream
    [2013-11-24 10:14:33,016] [Log    ] [MPMain   ] [DEBUG] - BASS: Found more output channels (6) than input channels (2). Check for upmixing.
    [2013-11-24 10:14:33,016] [Log    ] [MPMain   ] [INFO ] - BASS: No upmixing of Stereo selected
    [2013-11-24 10:14:33,017] [Log    ] [MPMain   ] [DEBUG] - BASS: Creating 2 channel mixer with sample rate of 44100
    [2013-11-24 10:14:33,017] [Log    ] [MPMain   ] [INFO ] - BASS: Initialising WASAPI device
    [2013-11-24 10:14:33,018] [Log    ] [MPMain   ] [DEBUG] - BASS: Freed WASAPI device
    [2013-11-24 10:14:33,018] [Log    ] [MPMain   ] [DEBUG] - BASS: Try to init WASAPI with a Frequency of 44100 and 2 channels
    [2013-11-24 10:14:33,032] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    [2013-11-24 10:14:33,032] [Log    ] [MPMain   ] [DEBUG] - BASS: Buffer Length: 708608
    [2013-11-24 10:14:33,032] [Log    ] [MPMain   ] [DEBUG] - BASS: Channels: 2
    [2013-11-24 10:14:33,033] [Log    ] [MPMain   ] [DEBUG] - BASS: Frequency: 44100
    [2013-11-24 10:14:33,033] [Log    ] [MPMain   ] [DEBUG] - BASS: Format: BASS_WASAPI_FORMAT_24BIT
    [2013-11-24 10:14:33,033] [Log    ] [MPMain   ] [DEBUG] - BASS: InitFlags: BASS_WASAPI_EXCLUSIVE, BASS_WASAPI_AUTOFORMAT, BASS_WASAPI_BUFFER
    [2013-11-24 10:14:33,033] [Log    ] [MPMain   ] [DEBUG] - BASS: Exclusive: True
    [2013-11-24 10:14:33,033] [Log    ] [MPMain   ] [DEBUG] - BASS: ---------------------------------------------
    [2013-11-24 10:14:33,033] [Log    ] [MPMain   ] [INFO ] - BASS: WASAPI Device successfully initialised
    [2013-11-24 10:14:33,037] [Log    ] [MPMain   ] [DEBUG] - BASS: Successfully created BASS Mixer stream
    [2013-11-24 10:14:33,039] [Log    ] [MPMain   ] [INFO ] - BASS: playback started
    [2013-11-24 10:14:33,041] [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() http://play.last.fm/user/fdcdaeed902b47866391eb50ceeee859.mp3 media:Music
    then track is skipped

    Code:
    [2013-11-24 10:14:38,134] [Log    ] [MPMain   ] [INFO ] - g_Player.OnChanged()
    [2013-11-24 10:14:38,387] [Log    ] [MPMain   ] [INFO ] - g_Player.Play(http://play.last.fm/user/163906da4496f92a7648d33d8103c2aa.mp3 Music)
    [2013-11-24 10:14:38,388] [Log    ] [MPMain   ] [DEBUG] - PlayerFactory: Successfully created player instance for file - http://play.last.fm/user/163906da4496f92a7648d33d8103c2aa.mp3
    [2013-11-24 10:14:38,388] [Log    ] [Last.fm Scrobbler] [INFO ] - Unable to scrobble song: {0}  as it does not exist in the playlist
    [2013-11-24 10:14:38,388] [Log    ] [MPMain   ] [DEBUG] - BASS: Stop WASAPI Device before start of new playback
    [2013-11-24 10:14:38,388] [Log    ] [BASS FadeOut] [DEBUG] - BASS: FadeOutStop of stream http://play.last.fm/user/fdcdaeed902b47866391eb50ceeee859.mp3
    [2013-11-24 10:14:38,389] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:38,389] [Log    ] [MPMain   ] [INFO ] - BASS: Creating BASS audio stream
    [2013-11-24 10:14:38,389] [Log    ] [BASS FadeOut] [DEBUG] - BASS: Disposing Music Stream http://play.last.fm/user/fdcdaeed902b47866391eb50ceeee859.mp3
    [2013-11-24 10:14:39,545] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: HTTP/1.1 200 OK
    [2013-11-24 10:14:39,545] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: Content-Type: audio/mpeg
    [2013-11-24 10:14:39,545] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: Content-Length: 2554353
    [2013-11-24 10:14:39,546] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: Accept-Ranges: bytes
    [2013-11-24 10:14:39,546] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: Cache-Control: no-cache, must-revalidate
    [2013-11-24 10:14:39,546] [Log    ] [MPMain   ] [DEBUG] - BASS: Webstream found - fetching stream -1342177270
    [2013-11-24 10:14:39,547] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Information
    [2013-11-24 10:14:39,547] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:39,547] [Log    ] [MPMain   ] [INFO ] - BASS: File: http://play.last.fm/user/163906da4496f92a7648d33d8103c2aa.mp3
    [2013-11-24 10:14:39,547] [Log    ] [MPMain   ] [DEBUG] - BASS: Type of Stream: BASS_CTYPE_STREAM_MP3
    [2013-11-24 10:14:39,548] [Log    ] [MPMain   ] [INFO ] - BASS: Number of Channels: 2
    [2013-11-24 10:14:39,548] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Samplerate: 44100
    [2013-11-24 10:14:39,548] [Log    ] [MPMain   ] [DEBUG] - BASS: Stream Flags: BASS_MUSIC_FLOAT, BASS_STREAM_DECODE, BASS_UNICODE
    [2013-11-24 10:14:39,548] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:39,549] [Log    ] [MPMain   ] [DEBUG] - BASS: Registering stream playback events
    [2013-11-24 10:14:39,549] [Log    ] [MPMain   ] [INFO ] - BASS: Successfully created BASS audio stream
    [2013-11-24 10:14:39,549] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2013-11-24 10:14:39,551] [Log    ] [MPMain   ] [INFO ] - BASS: playback started
    [2013-11-24 10:14:39,551] [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() http://play.last.fm/user/163906da4496f92a7648d33d8103c2aa.mp3 media:Music
     
    Last edited:

    grabi_2001

    Portal Pro
    May 8, 2009
    283
    107
    in den Alpen
    Home Country
    Germany Germany
    Hi Olli815,
    thanks for the tip with the skin ... but for me it does not work ...
    Whether titanium ... Standard ..
    This is in the log:

    [2013-11-24 13:35:07,362] [Error ] [MPMain ] [ERROR] - OnMessage exception:confused:ystem.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
    bei MediaPortal.LastFM.LastFMLibrary.GetRadioPlaylist()
    bei MediaPortal.GUI.LastFMRadio.GUILastFMRadio.AddMoreTracks()
    bei MediaPortal.GUI.LastFMRadio.GUILastFMRadio.TuneToStation(String strStation)
    bei MediaPortal.GUI.LastFMRadio.GUILastFMRadio_OnClicked(Int32 controlId, GUIControl control, ActionType actionType)
    bei MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)

    Music setting to default ... so bass

    Greetings
    Dirk
     

    Users who are viewing this thread

    Top Bottom