Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_softplaylists (Read 250818 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_softplaylists

Reply #250
Nice tip for people with a squeezebox that want to copy their loved track playlist to it:
- enter the path that squeezeboxserver scans into 'Path Preference' setting
- let foobar reload your loved track playlist
- save the playlist as .m3u
- change the paths and line endings according to the platform squeezeboxserver is running on, in my case sparc-linux:
-- change line ending to unix, encoding must be ansi i think (you can easily do this with notedpad++)
-- change '\' to '/' and change 'Z:/Music/' to '/c/media/Music/'
- copy the playlist to the squeezeboxserver playlist scanning folder
- let squeezeboxserver rescan playlists
And then the playlist is ready to use!


foo_softplaylists

Reply #252
I try to love the same track for example 5 times, it crashes 4 times and 1 time succeeds.

Did you always have this problem?

I started using Soft Playlists a week ago, and yeah, I've had the problem all this time . I've tried foobar 1.0 & 1.1, Soft Playlists from 2010-08-16 & 2010-08-28.
My past experience shows inverted success/crash ratio, like 4/1, but anyway.

Yesterday I installed WireShark (a protocol analyzer) and made some investigation. There have been many cases of packets incorrectly sent to server or broken. I wrote a detailed post about it, but then decided to check also the foo_audioscrobbler's behavior. And it behaves the same way (except it doesn't crash). So I conclude that the problem is within foobar's HTTP engine.

But where are some measures the plugin can take to prevent crashes.

I've checked crash reports and identified 3 cases.

1. The message for this case is "Bad Request (400)".
It is caused by broken packet (only header with no data) sent to server. The server then responds with
Code: [Select]
HTTP/1.0 400 Bad Request
Date: Sat, 28 Aug 2010 18:40:42 GMT
Server: Apache/1.3.39 (Unix)
X-Proxy-Fix-Up: headers fixed up
X-Web-Node: www195
Connection: close
Content-Type: text/xml; charset=utf-8;

<?xml version="1.0" encoding="utf-8"?>
<lfm status="failed">
<error code="3">Invalid Method - No method with that name in this package</error></lfm>


2. Message: "Invalid data, received line length exceeds limit".
I can't figure out what is causing this. Received packets seem normal.

3. Message: "Could not connect to host".
I have only one such case out of 37 crashes.

I think there can be other abnormal situations.

I guess you use the method http_request::run, which (cite from its comment) "Throws an exception on failure (connection error, invalid response from the server, reply code other than 2XX)". I think catching these exceptions will prevent the crashes.
There is also http_request::run_ex, which "Throws an exception on failure but returns normally if the HTTP server returned a valid response other than 2XX, so the caller can still parse the received data stream if the server has returned an error". It can be useful in aforementioned case 1.

Hope this will help.

foo_softplaylists

Reply #253
You can also try earlier versions. They don't use foobars internal http.
I will add more error catching in next version. But that won't solve your real problem.

foo_softplaylists

Reply #254
Detailed report about my investigation in tech support forum

I will add more error catching in next version. But that won't solve your real problem.

That won't solve the root problem indeed. But that at least will make an illusion of solution. Like in foo_audioscrobbler. It often shows errors in console and can't submit scrobble data, but doesn't crash and retries after some time.

And anyway, exception handling is generally good. For example, "Could not connect to host" is not a result of some bug, it's normal (although rare) situation.


foo_softplaylists

Reply #256
New to this component, but please correct me on this => if name of track is not the same as title in last.fm then track won't get loved properly?

Example : track in my library is Alan Parsons Project - Eye In The Sky, but last.fm corrects it to THE Alan Parsons Project - Eye In The Sky (auto-corrected by last.fm). According to Console, foo-Softplaylists successfully loved the track, but when I went to last.fm to check it wasn't "loved".

Am I correct or am I missing something here?

foo_softplaylists

Reply #257
Normally you can love every track, to check see if it gets added in you online loved playlist.

foo_softplaylists

Reply #258
Oddly I tried to love Van Morrison's Brown Eyed Girl off the Best of Van Morrison disc but instead it loved Radio Song by R.E.M.!!

Code: [Select]
[14:11:46] Opening track for playback: "E:\Classic Rock\Van Morrison\The Best Of Van Morrison\06  Van Morrison - Brown Eyed Girl.mp3"
[14:11:47] Audioscrobbler: Submitting track...
[14:11:48] Audioscrobbler: Submission succeeded.
[14:13:01] foo_softplaylists: successfully loved 'Radio Song' by 'R.E.M.'


Tags for Brown Eyed Girl looks right to me too. What's the deal?

foo_softplaylists

Reply #259
It just takes the tags of the highlighted track.

foo_softplaylists

Reply #260
It just takes the tags of the highlighted track.


But the R.E.M. track wasn't on the playlist! And the Van Morrison track was highlighted.

foo_softplaylists

Reply #261
Did you do it by right-clicking or with shortcut? Make your tags are correct and the shortcut binding is correct.

foo_softplaylists

Reply #262
Did you do it by right-clicking or with shortcut? Make your tags are correct and the shortcut binding is correct.


Added a button in the playback toolbar (context menu options) to love tracks. Tracks are properly tagged - look fine in properties dialog box and last.fm registers it correctly in the recently listened tracks list.

foo_softplaylists

Reply #263
Hi. Works for me in v1.1. Tks.

There is a way to add tags to a song?

foo_softplaylists

Reply #264
Hi. Works for me in v1.1. Tks.

There is a way to add tags to a song?


Oh, it works for me too ... I just happen to have experienced a weird exception that was a bit baffling that's all.

foo_softplaylists

Reply #265
Thanks for the partial track name matching, but it seems to be broken. No other artist I have tried show such a dramatic difference as Nujabes.

The regular Nujabes top chart as matched by
Code: [Select]
Nujabes - [With Rainy Eyes CD1 #03] Reflection Eternal
NUJABES - [Metaphorical Music #04] Kumomi
Nujabes - [Metaphorical Music #06] Beat laments the world
NUJABES - [Metaphorical Music #02] Horn In The Middle
Nujabes - [Metaphorical Music #09] A day by atmosphere supreme
Nujabes - [Modal Soul #05] Music Is Mine
NUJABES - [Metaphorical Music #14] The Final View
Nujabes - [Flowers VLS #01] Flowers
NUJABES - [Metaphorical Music #13] Summer Gypsy
Nujabes - [Modal Soul #09] World's End Rhapsody
Nujabes - [Modal Soul #12] Sea Of Cloud
Nujabes - [Modal Soul #14] Horizon
Nujabes - [Modal Soul #13] Light On The Land
NUJABES - [Metaphorical Music #15] Peaceland
NUJABES - [Metaphorical Music #07] Letter From Yokosuka
Nujabes - [Hydeout Productions - 2nd Collection #06] Counting Stars
Nujabes - [Hydeout Productions - 2nd Collection #07] Another Reflection
Nujabes - [Samurai Champloo Music Record: Departure #03] Aruarian Dance
Nujabes - [Hydeout Productions - 2nd Collection #01] Voice Of Autumn
Nujabes - [Modal Soul #06] Eclipse (feat. Substantial)
Nujabes - [Hydeout Productions: First Collection #05] Still Talking To You
Nujabes - [Samurai Champloo Music Record: Departure #05] Mystline
Nujabes - [Flowers VLS #02] After Hanabi (Listen To My Beat)
Nujabes - [Samurai Champloo Music Record: Departure #02] The Space Between Two World
Nujabes - [Hydeout Productions: First Collection #07] Steadfast
Nujabes - [Samurai Champloo Music Record - impression #11] tsurugi no Mai
Nujabes - [Hydeout Productions: First Collection #01] Moon Strut (Intro)
Nujabes - [Samurai Champloo Music Record: Impression #14] World Without Words
Nujabes - [Modal Soul #01] Feather
Nujabes - [Summer Spirits #10] Modal Soul (ft. Uyama Hiroto)
[/size]

This is the console output
Code: [Select]
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Think Different (feat. Substantial)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'F.I.L.O. (feat. Shing02)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Next View (feat. Uyama Hiroto)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Feather (feat. Cise Starr & Akin from Cyne)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Sky is falling (featuring C.L. Smooth)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Hikari (featuring Substantial)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Ordinary Joe (feat. Terry Callier)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Fly by night (featuring Five Deez)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Modal Soul (feat. Uyama Hiroto)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Latitude -Remix (feat. Five Deez)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Thank You (feat. Apani B)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Luv (Sic) Pt3 (Feat. Shing02)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Letter form Yokosuka'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Blessing It (remix, feat. Substantial & Pase Rock from Five Deez)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Lady Brown (Feat. Cise Starr form Cyne)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Highs 2 Lows (Feat. Cise Starr form Cyne)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Sign (Feat. Pase Rock)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Feather (Ft. Cise Starr&Akin from CYNE)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'ordinary joe (Ft. Terry Callier)'
foo_softplaylists: unmatched: 'Nujabes' - '' - 'Eclipse (Ft. Substantial)'
[/size]

When partial matches are enabled only one track is outputted, and there is strangely no console output.
Code: [Select]
Nujabes - Funky DL - Don't Even Try It



foo_softplaylists

Reply #266
Yeah foobar's standard partial matching function doesn't seem to be symmetric, I will write my own.


foo_softplaylists

Reply #268
Amazing component just checking it and playing  ....

Some questions, is in the roadmap/possible to include panels (even if they are ugly console ones  displaying for example similar tracks (found in the library and not found-with a link to custom music engines (as Marc´s WSH script)) or artists based on the playing/selected track? I´m thinking on the fly and it´s late* so I apologize if this is utopic : D

Also a lot more near to ground is it possible to customize the query syntax used to query Last.FM? I got that it works by querying tagged tracks. In the case of the untagged songs it could try to use the filename like
Code: [Select]
$replace($if([%artist%],[%artist%],$stripprefix($substr([%title%],1,$sub($strstr(%title%,-),2)),-)),_, )

for artist
or
Code: [Select]
$replace($if([$meta(title)],[$meta(title)],$stripprefix($substr([%title%],$strstr(%title%,-),1000),-)),_, )

for title

I guess there may be more efficient codes, but that´s what I´ve managed to build so far...


..and Thank you!!!

foo_softplaylists

Reply #269
Hello, I wondered if it's possible to make this work with custom playlists (other than "loved tracks") I've created on last.fm.

I'm sorry if this has been asked before, but I couldn't find anything when I searched.

foo_softplaylists

Reply #270
I love this component, but is there any way to make the softplaylists select the oldest songs of the artist? i mean, when i use the "Last fm '%artist% Top Tracks" option, the component put the newest version of the songs:


foo_softplaylists

Reply #271
Hi guys,

I have been using foobar for quite some time now and not so long ago I discovered the foo_audioscrobbler & foo_softplaylists plugins.

After a tryout of summarize, I had an issue with foobar of a nagscreen regarding a dll so I reinstalled completely.
Not realizing that I should have backed up the additional dll files, I deleted the whole directory after uninstalling and of course had to search again for the right plugins - also didn't remember which ones I was using... 

So no, I have added those two again, foo_audioscrobbler v1.4.7.0 and foo_sofrplaylists from this thread but I have a problem:
1) before, I had more last.fm options rightclicking a song, now there are only 4: Top Tracks, Similar Top Tracks, Level 0 Similar Tracks, Love a track on Last.fm
2) Love a track on Last.fm doesn't work, it produces a 'foo_softplaylists: failed to love' message everytime

Does any of you have a clue what might be wrong?
TIA!
Peter

foo_softplaylists

Reply #272
I just installed this plugin for the first time..

I'm also having this problem like the above user...

1) before, I had more last.fm options rightclicking a song, now there are only 4: Top Tracks, Similar Top Tracks, Level 0 Similar Tracks, Love a track on Last.fm

 

foo_softplaylists

Reply #274
I love this component, but is there any way to make the softplaylists select the oldest songs of the artist? i mean, when i use the "Last fm '%artist% Top Tracks" option, the component put the newest version of the songs:
With option prefer oldest tracks, normally. Are tags correct?