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_uie_lyrics3 (Read 677721 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: foo_uie_lyrics3

Reply #2000
This is great! Thanks so much!

Do you know if there's a way to prevent searches based on the folder the track is in?

I have audio files in folders titled "Songs", "Soundtracks", and "Podcasts". How do I tell LSP3 to not search for lyrics when the audio file is in "Soundtracks" and "Podcasts"?
try this filter:
Code: [Select]
$strstr(%path%,Soundtracks) or $strstr(%path%,Podcasts)

Re: foo_uie_lyrics3

Reply #2001
I've tried both

$strstr(%path%,Soundtracks) or $strstr(%path%,Podcasts)

and

$or($strstr(%path%,Soundtracks),$strstr(%path%,Podcasts))

but neither works. I can get LSP3 to not search one folder, but I can't get it to not search multiple folders. Any ideas what's wrong with the above code?

Re: foo_uie_lyrics3

Reply #2002
I've tried both
$strstr(%path%,Soundtracks) or $strstr(%path%,Podcasts)
and
$or($strstr(%path%,Soundtracks),$strstr(%path%,Podcasts))

but neither works. I can get LSP3 to not search one folder, but I can't get it to not search multiple folders. Any ideas what's wrong with the above code?
sorry, my bad. this should work.
Code: [Select]
$if($or($strstr(%path%,Soundtracks),$strstr(%path%,Podcasts)),1,0)

Re: foo_uie_lyrics3

Reply #2003
That worked. Thanks so much for your help!

Is there a limit to how many items I can place in the $or function?

Re: foo_uie_lyrics3

Reply #2004
Is there a limit to how many items I can place in the $or function?
I'm afraid we can only nest them like this unfortunately:
$if($or($strstr(%path%,Instrumental),$or($strstr(%path%,Soundtracks),$strstr(%path%,Podcasts))),1,0)



Re: foo_uie_lyrics3

Reply #2006
I tried $or with more than 2 arguments, and it didn't work, so you're right about having to nest $or statements

Re: foo_uie_lyrics3

Reply #2007
I tried $or with more than 2 arguments, and it didn't work, so you're right about having to nest $or statements
$if($or($strstr(%path%,Soundtracks),$strstr(%path%,Podcasts),$strstr(%path%,Instrumental)),1,0)
well, this works for me.
so I think Title Formatting Reference is correct about it.

but according to /doc/titleformat_help.html (in foobar2000 folder) it seems that $or operator takes only two arguments: $or(X,Y)
Can you try the search filter above again? :)

Re: foo_uie_lyrics3

Reply #2008
The above filter works for me, and I've had success if I only use $strstr functions as arguments. However, if I use both $strstr and $stricmp functions as arguments, the code doesn't seem to work for the $stricmp part. I'm forced to use nested $or functions if I use a bunch of $strstr and $stricmp functions

Re: foo_uie_lyrics3

Reply #2009
I've noticed that no matter what code I enter into the search filter, when the first song that matches the no-search criteria is played (after a fresh start of Foobar2000), a search is performed.

The code seems to work for subsequent songs that match the no-search criteria but not for the first song. Have you experienced this?

Any idea what might be causing this?

Re: foo_uie_lyrics3

Reply #2010
@tigershark
(I use foo_tfsandbox for checking title formatting scripts.)
1. this works for me: $if($or($stricmp(%artist%,DEADLIFE),$strstr(%artist%,DEADLIFE2),$strstr(%artist%,DEAD),$stricmp(%artist%,deadlife)),1,0)
please, share your expression so i will try it on my side.
2. LSP3 correctly filters out first song after fresh foobar2000 start for me. no bug noticed during quick test.

Re: foo_uie_lyrics3

Reply #2011
Here's the code I'm using:

$if($or($strstr(%path%,'soundtracks_video_games'),$stricmp(%genre%,instrumental),$strstr(%comment%,'do_not_run_lsp')),1,0)

I have folders titled "soundtracks_video_games" and "soundtracks_tv_and_film". None of the songs in "soundtracks_video_games" have lyrics. Since some of the songs in "soundtracks_tv_and_film" have lyrics, I've updated the genre tags of the instrumental songs to "instrumental". There are also some non-instrumental songs in other folders that don't have lyrics, so I've added "do_not_run_lsp" to the comment tags of those songs.

On my installation of Foobar and LSP, the above code works for songs in "soundtracks_video_games" and songs with "do_not_run_lsp" in the comment tags, but it does not work for songs with the genre "instrumental".

Also, the following code doesn't work the first time LSP is run after starting Foobar but works on subsequent runs:

$if($strstr(%path%,'soundtracks_video_games'),1,0)

$if($strstr(%comment%,'do_not_run_lsp'),1,0)

Re: foo_uie_lyrics3

Reply #2012
$if($or($strstr(%path%,'soundtracks_video_games'),$stricmp(%genre%,instrumental),$strstr(%comment%,'do_not_run_lsp')),1,0)

On my installation of Foobar and LSP, the above code works for songs in "soundtracks_video_games" and songs with "do_not_run_lsp" in the comment tags, but it does not work for songs with the genre "instrumental".

Also, the following code doesn't work the first time LSP is run after starting Foobar but works on subsequent runs:
$if($strstr(%path%,'soundtracks_video_games'),1,0)
$if($strstr(%comment%,'do_not_run_lsp'),1,0)
@tigershark ,  I tried to reproduce your bugs on my side, but failed. all is working fine for me.
try it on bare foobar2000 installation (no additional components).
foobar2000 v1.6.5
LSP3 v0.5 (+foo_multisource v0.42)

Re: foo_uie_lyrics3

Reply #2013
I uninstalled LSP and reinstalled it, and the errors seem to be fixed. When the first non-lyrics song is encountered, the lyrics panel now says "Found nothing" for a few seconds instead of "Searching x%", so I'm assuming LSP isn't searching for something.

I've noticed that the latest version of LSP is from 2016. Do you know if LSP is still being worked on and maintained?

Re: foo_uie_lyrics3

Reply #2014
I uninstalled LSP and reinstalled it, and the errors seem to be fixed. When the first non-lyrics song is encountered, the lyrics panel now says "Found nothing" for a few seconds instead of "Searching x%", so I'm assuming LSP isn't searching for something.

correct

I've noticed that the latest version of LSP is from 2016. Do you know if LSP is still being worked on and maintained?

LSP is dead. foo_openlyrics is on the rise :-)

 

Re: foo_uie_lyrics3

Reply #2015
@veksha :  Does the foo_openlyrics plugin host support your MultiDB plugin?

Re: foo_uie_lyrics3

Reply #2016
@veksha :  Does the foo_openlyrics plugin host support your MultiDB plugin?
It will never have support for closed-source plugins.
You can ask more questions on github.com/jacquesh/foo_openlyrics


Re: foo_uie_lyrics3

Reply #2018
I uninstalled LSP and reinstalled it, and the errors seem to be fixed. When the first non-lyrics song is encountered, the lyrics panel now says "Found nothing" for a few seconds instead of "Searching x%", so I'm assuming LSP isn't searching for something.

correct

I've noticed that the latest version of LSP is from 2016. Do you know if LSP is still being worked on and maintained?

LSP is dead. foo_openlyrics is on the rise :-)


Glad to hear that there's a LSP replacement in the works. Will check out foo_openlyrics. Thanks for letting me know about it!

foo_openlyrics isn't listed on the official foobar components webpage yet. Do you know the criteria for a component to be added to this page?


Re: foo_uie_lyrics3

Reply #2020
I registered for seeking help on lyrics3. I have read all the posts here and still have not figured out what settings are needed to let lyrics3 use the lyrics files that have the same name as the audio file. It worked with most .mp3 files, but not with .ac3, .dts and .m4a files at all.

I used "%filename%" as the filename format for both "Save" and "Local File Search" settings. It can save the lyrics founded correctly as "MyMusic.lrc" according to the audio file name, e.g. "MyMusic.ac3" in the playlist. 

It looked like lyrics3 insists that both [%artist%] and [%title%] tags have to be embedded in the audio files, otherwise, the MyMusic.lrc will not be loaded into the "Lyrics Show Panel 3". This explained that the lyrics of some mp3 files failed to show if these tags are not set in the file. 

I also found that lyrics3 does not honor the search order in the setting. The Local Folders will be searched last.

I would be most grateful if someone can show me the correct settings for simply letting lyrics3 load the local lyrics files which have the same names as the audio files.

Re: foo_uie_lyrics3

Reply #2021
@veksha : The MultiDB plugin doesn't seem to be pulling lyrics from Genius anymore, and checking maually finds them on the website.  Have they changed their search method, and can your plugin be modified to work with it?  Thanks!

Re: foo_uie_lyrics3

Reply #2022
@veksha : The MultiDB plugin doesn't seem to be pulling lyrics from Genius anymore, and checking maually finds them on the website.  Have they changed their search method, and can your plugin be modified to work with it?  Thanks!
@sveakul thank you for letting me know. they are already had two different formats for their lyric web-page (randomly switched). it seems that now they have added another one.

Re: foo_uie_lyrics3

Reply #2023
I used "%filename%" as the filename format for both "Save" and "Local File Search" settings. It can save the lyrics founded correctly as "MyMusic.lrc" according to the audio file name, e.g. "MyMusic.ac3" in the playlist. 

It looked like lyrics3 insists that both [%artist%] and [%title%] tags have to be embedded in the audio files, otherwise, the MyMusic.lrc will not be loaded into the "Lyrics Show Panel 3". This explained that the lyrics of some mp3 files failed to show if these tags are not set in the file. 

I think the only field that is mandatory for (automated) lyrics3 search to work is - %artist%
I tested this with your settings (%filename% in both places) and it works as expected for me.
you can enter arbitrary data in %artist% tag it won't make the difference. but without %artist% tag it refuses to do search at all.

I also found that lyrics3 does not honor the search order in the setting. The Local Folders will be searched last.

can't reproduce that on my side. working as expected for me. it can still keep searching for synced on the web if it finds only .txt file locally (this is according to preference). but the order is correct, i think.

I would be most grateful if someone can show me the correct settings for simply letting lyrics3 load the local lyrics files which have the same names as the audio files.
try to fill %artist% tags for all your files and retry. there's not much i can propose.

PS: tested only with mp3


 
SimplePortal 1.0.0 RC1 © 2008-2021