Author Topic: Xmp-justlog plugin  (Read 12564 times)

Keltic Danor

  • XMPlay Support
  • Posts: 913
Re: Xmp-justlog plugin
« Reply #50 on: 1 Oct '23 - 18:00 »
I was wondering if it could be possible to add a conditional filter of sort this plugin.
I see some streams I listen too are missing the title sometimes, so I'd like to be able to not have them logged.
Something along the lines of "if title is empty skip else log time - author - title"?
Been a while since I took a look at it, I was going to say "Exclude Untitled" should do that but I imagine you have that unchecked to log the filename when there is no tags.
Maybe a new more specific option for "Exclude Untitled Stream" would do the trick?

piovrauz

  • Posts: 1020
Re: Xmp-justlog plugin
« Reply #51 on: 2 Oct '23 - 19:18 »
Yes, it will work, as long it checks the stream data and not the custom log line.
In my case it would be something like "date time - ", ... which is not empy.

edit: I checked, and I do have "Exclude Untitled" checked, and since I only log streams... "Exclude Files is checked too". 
formatting for streams is %y-%m-%d %h:%i:%s %1

Keltic Danor

  • XMPlay Support
  • Posts: 913
Re: Xmp-justlog plugin
« Reply #52 on: 3 Oct '23 - 12:01 »
Yes, it will work, as long it checks the stream data and not the custom log line.
In my case it would be something like "date time - ", ... which is not empy.

edit: I checked, and I do have "Exclude Untitled" checked, and since I only log streams... "Exclude Files is checked too". 
formatting for streams is %y-%m-%d %h:%i:%s %1
It's a bit hard for me to test it given the scenario but I don't think the exclude untitled option was working at all, I've uploaded an update for you to try.

v1.91
  • Fixed the exclude untitled option ...maybe.
« Last Edit: 3 Jun '24 - 09:11 by Keltic Danor »

piovrauz[offline]

  • Guest
Re: Xmp-justlog plugin
« Reply #53 on: 26 Oct '23 - 11:53 »
Putting a bit more synapses on this I found that the affected stream is sending a "-" character when switching between tracks. :P
Xmp-justlog would obviously interpret it as a title: I guess a filter based on title leght may work better?
Would that be feasible?

piovrauz[not-logged]

  • Guest
Re: Xmp-justlog plugin
« Reply #54 on: 28 May '24 - 11:51 »
well, some time passed with no news about this last request of mine. my log file is full of stuff like "2023-08-28 12:21:38 -"... T__T

I still think a length based filter would work well here and should be easy to implement.
ie: don't log if title is shorter than 23 chars (in my case 22 is the length of the timestamp plus the " -").


Keltic Danor

  • XMPlay Support
  • Posts: 913
Re: Xmp-justlog plugin
« Reply #55 on: 3 Jun '24 - 09:17 »
well, some time passed with no news about this last request of mine. my log file is full of stuff like "2023-08-28 12:21:38 -"... T__T

I still think a length based filter would work well here and should be easy to implement.
ie: don't log if title is shorter than 23 chars (in my case 22 is the length of the timestamp plus the " -").
I've tweaked it a bit for Exclude Untitled to also exclude titles of - so hopefully that'll do the trick.

v1.92
  • Exclude untitled will now count - as also being untitled

https://support.xmplay.com/files_view.php?file_id=717

piovrauz

  • Posts: 1020
Re: Xmp-justlog plugin
« Reply #56 on: 3 Jun '24 - 18:27 »
ehrm, sadly (in my case) it doesn't work, I just tried.

I use this formatting string for streams: %y-%m-%d %h:%i:%s %1

If the title string is empty, the timestamp isn't... so something like "2023-08-28 12:21:38 -" stays there. :(

Keltic Danor

  • XMPlay Support
  • Posts: 913
Re: Xmp-justlog plugin
« Reply #57 on: 4 Jun '24 - 03:21 »
ehrm, sadly (in my case) it doesn't work, I just tried.

I use this formatting string for streams: %y-%m-%d %h:%i:%s %1

If the title string is empty, the timestamp isn't... so something like "2023-08-28 12:21:38 -" stays there. :(
Ah pickles, can you give me the stream you are using? I'll give it a try.

piovrauz[away]

  • Guest
Re: Xmp-justlog plugin
« Reply #58 on: 4 Jun '24 - 15:01 »
one affected stream is: https://radiorecord.hostingradio.ru/liquidfunk96.aacp
all streams from there are "affected".

Keltic Danor

  • XMPlay Support
  • Posts: 913
Re: Xmp-justlog plugin
« Reply #59 on: 5 Jun '24 - 05:51 »
one affected stream is: https://radiorecord.hostingradio.ru/liquidfunk96.aacp
all streams from there are "affected".
Round 2! Added debug option for fun but the exclude untitled has been further revised.

v1.93
  • - Show debug option added.

https://support.xmplay.com/files_view.php?file_id=717

piovrauz[yesss]

  • Guest
Re: Xmp-justlog plugin
« Reply #60 on: 10 Jun '24 - 12:22 »
Perfect, tested for a couple of hours & seems to work fine to me.
Debug is nice too ;)

Thanks a lot.