Xmp-justlog plugin

Started by sveakul,

Keltic Danor

Quote from: Jo Li KMCWould it be possible to bring the customizable string formats up to parity with XMPlay's own title strings?  I'd love to see conditional formatting implemented!  That would be very handy for occasions like what Jace mentioned. (It affects modules without internal titles, too!)  I'm sure other people would find things like Track Number and Genre handy, too, maybe?

The other thing I'd like is some sort of alternate Filename function.  I know you just added a filename-with-path option in, but I'm thinking about an option to disable the path part of that?  Like, maybe in the form of a checkbox?  Just having the filename written could be handy to some people, like me.
I can add some more tags to the string format but conditional stuff is a bit above my ability with strings and such, but you never know perhaps in future. But for now I've done a couple of tweaks.

v1.6
  • New option to remove path from %0 filename
  • New option to include even if there is no title
Just Log v1.6

Jo Li KMC

Very cool!  This works exactly as it should!  Thank you so much!  ;D

Now, I do have one more question / recommendation...  Do you think it would be hard to implement a string specifically for streams which displays the stream name?  If it's any help, the string gets written to .PLS files as "title1=[stream title]" and in M3U files, the string is "#EXTINF:-1,[stream title]".

Title already works exactly as expected (for example, "Ultrasyd - Worthless"), but there doesn't seem to be a way to get the stream name (in this example, "Nectarine Demoscene Radio") to show up in the log unless the stream doesn't have "now playing" information.  For example, "Radio Margaritaville" has a 96KB/s stream which doesn't show the current song, so the plugin just writes "Radio Margaritaville" as the title.

Once again, thank you for this great plugin!  And... I'm sorry for being greedy.  I'm a bit of a "power user" when it comes to things like this, ha hah...

Keltic Danor

Quote from: Jo Li KMCNow, I do have one more question / recommendation...  Do you think it would be hard to implement a string specifically for streams which displays the stream name?  If it's any help, the string gets written to .PLS files as "title1=[stream title]" and in M3U files, the string is "#EXTINF:-1,[stream title]".
I can't dig into the playlist much but most streams return the name as the title and the song/track title is in a separate field, I've added %z so it will get the title field there if there is a track title so in theory it should do what you want. I guess give it a shot and see how it goes.

v1.7
  • %z tag for stream title if present
Just Log v1.7

Jo Li KMC

It is, indeed, working exactly as expected!  After adding the new variable to the Stream Title, the log file now generates both the current song and the stream title, where applicable!  Otherwise, it just displays "Stream title" followed by a dash, since missing variables do that with this plugin.  Hee hee.

Now, I have to correct myself from my previous post...  I said v1.6 was doing exactly what it was supposed to.  Well, I was kind of wrong.  For some reason, when files without titles are played and the "excluded untitled" toggle is disabled (meaning that it logs untitled files), this causes XMPlay to crash.  It doesn't seem to matter whether or not the plugin is set to log this data; if the file it's trying to play is capable of having a title, and doesn't have one, the plugin just makes XMPlay quit.  I can't imagine why this would happen if it's not even set to log the non-title...  Very odd.

100m0t0log

Hey!
This is a great plugin.
I would like to see more such features in your plugin:
1. Show track number.
2. Add the ability to line break. (Example:%2%line break%1).
Your plugin works great.
Maybe the new opportunities will be useful not only for me.
Thanks.

Jace

Also getting the crash on untagged files while "excluded untitled" toggle is disabled

Keltic Danor

#26
Quote from: 100m0t0logHey!
This is a great plugin.
I would like to see more such features in your plugin:
1. Show track number.
2. Add the ability to line break. (Example:%2%line break%1).
Your plugin works great.
Maybe the new opportunities will be useful not only for me.
Thanks.
I think I can do that.

Quote from: JaceAlso getting the crash on untagged files while "excluded untitled" toggle is disabled
Yeah... that'll teach me to just pop in a change and not actually test it I suppose.

Important Note for this update!
Due to a config change this version is not compatible with settings from the older versions, I know its annoying but I've been putting it off for a while.

  • Copy your string format settings to notepad
  • Remove the old Just Log from your plugin list
  • Close xmplay
  • Copy over the new plugin
  • Copy back your settings as needed

-snip-

100m0t0log

Bravo!!!
With my settings, it works as I wanted.
Thank you very much!!!

100m0t0log

Sorry for my immodesty.
Is it possible to implement in your plugin:
1. Display of the number of tracks in the playlist.
2. Displays the activation of the "Random play order" button. (For example, the letter "R" if enabled, no letter if disabled.)
3. Displays the inclusion of button "Loop list". (For example, letter "L" if enabled, no letter if disabled.
If it's difficult, then don't bother. Version 1.8 is a great option for mine.

Keltic Danor

#29
Quote from: 100m0t0logSorry for my immodesty.
Is it possible to implement in your plugin:
1. Display of the number of tracks in the playlist.
2. Displays the activation of the "Random play order" button. (For example, the letter "R" if enabled, no letter if disabled.)
3. Displays the inclusion of button "Loop list". (For example, letter "L" if enabled, no letter if disabled.
If it's difficult, then don't bother. Version 1.8 is a great option for mine.
I'm not quite sure how to get those settings but yes it is probably more difficult than it is worth. 8)

I've updated it to 1.8 with another fix to the exclude untitled setting not following the option correctly.

piovrauz

#30
ehm, I just updated from v 1.5 something and now I get this on play...

any idea what's happening?

sveakul

The problems are:

1.  You have "%8" in the Exclude Types box, instead of the file extensions themselves as shown in the example by the box (MP3,FLAC). 

2.  You have code in the "Max Size" box instead of a number (note the "KB" label next to it?)

3.  Depending what extensions you put in the Exclude Types box, you have ALL the "exclude" boxes underneath checked, which means nothing will be logged at all from whatever extensions specified, so be careful about the choices made there.

Keltic Danor

#32
Read the big red text mate.  ;D ;D

V1.8+ needs you to remove the old first and redo the settings.

Edit: Updated to 1.8.2, no significant change besides correcting the version numbers.

100m0t0log

Quote from: Keltic DanorI'm not quite sure how to get those settings but yes it is probably more difficult than it is worth. 8)
Thanks for your work.

Jo Li KMC

Ya know something?  v1.8.2 has pretty much all the functionality I'd like, in the exact ways I'd like it~

... I know that sounds selfish, and I'll be honest: it kind of is?  But the fact that you went and implemented it makes me really happy!  You totally didn't have to, and you didn't even have to fix the errors or anything, but you're being patient, and diligent, and just plain awesome!

Once more, from the bottom of my heart, thank you for going to all this trouble to make this plugin the best of its kind, Keltic Danor!  You're one of the good ones~!
(And it's even more impressive, considering you wrote the original version in, like, less than a week with little-to-no experience!)

piovrauz

well, did read the red text, and did the stuff right on the xmplay I keep on usb as portable mousic source... but totally forgot for the home box... oopsie :P

piovrauz

Something strange is happening...

I did like the _big red text said_ on my main setup but now xmplay crashes as soon I try to load justlog...

Any idea? If possible I'd like to not have to start from scratch :P

Keltic Danor

Quote from: piovrauzSomething strange is happening...

I did like the _big red text said_ on my main setup but now xmplay crashes as soon I try to load justlog...

Any idea? If possible I'd like to not have to start from scratch :P
If you pop the old one back in it should load your settings fine for you to copy.

After you get the settings you can try just deleting the plugin and starting xmplay, it should remove the settings so you can upgrade.

piovrauz

I meant just that:

- I closed xmplay, deleted justlog, launched xmplay, closed xmplay
- I added justlog, launched xmplay
- I tried to add justlog to the "DSP and general plugins", but as soon I hit the "add" buttono xmplay crashes.

But I discovered that deleting the log file fixes the crash! then I can add justlog again, change setting and readd the logfile. Yesss.

(the logfile was outside xmplay folder, on D:\, the second disk) - maybe something about that was the cause?

Keltic Danor

Quote from: piovrauzI meant just that:

- I closed xmplay, deleted justlog, launched xmplay, closed xmplay
- I added justlog, launched xmplay
- I tried to add justlog to the "DSP and general plugins", but as soon I hit the "add" buttono xmplay crashes.

But I discovered that deleting the log file fixes the crash! then I can add justlog again, change setting and readd the logfile. Yesss.

(the logfile was outside xmplay folder, on D:\, the second disk) - maybe something about that was the cause?
Ooh, maybe yes.

I really should put in some error handling instead of dishing out explosions left and right. I imagine it had a problem accessing it for some reason.