HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: samuelawachie on 2021-04-27 10:10:39

Title: Temporarily Disable Lyric Search to save on Data costs
Post by: samuelawachie on 2021-04-27 10:10:39
Is there any way to temporarily disable the lyric search for when streaming audio/radio stations so as to primarily save on data costs searching for lyrics that don't exist (like for example, strictly radio stations, non-vocal audio streaming, etc.)?
Title: Re: Temporarily Disable Lyric Search to save on Data costs
Post by: samuelawachie on 2021-04-27 10:59:24
@veksha
has suggested pasting this in the search filter settings of lyric component advanced settings
$strcmp($left(%path%,4),http)

So far, seems to work. Still trying it out. I wonder what the code means though? And it appears to reverse the functionality (to return the component back to normal), just remove the filter
Some smart people around here.
Title: Re: Temporarily Disable Lyric Search to save on Data costs
Post by: samuelawachie on 2021-04-27 11:15:18
empty filter = no filter.
code means: look if %path% has "http" as first 4 characters. for streams it is TRUE, so the expression will return 1. this will enable filter.
for other files this expression will return 0 and this will disable filter.

Title: Re: Temporarily Disable Lyric Search to save on Data costs
Post by: anamorphic on 2021-04-27 12:52:17
Hi there,

I wonder what the code means though?
I see you have the answer already, but for the curious you can have a look at foobar Help menu > Title Formatting Help to read what the functions do, if you like. There is also the more complete wiki page: Title Formatting Reference (https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference).

Cheers
SimplePortal 1.0.0 RC1 © 2008-2021