Skip to main content

Topic: Text Display (foo_textdisplay) (Read 153984 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • MDMA
  • [*][*]
Text Display (foo_textdisplay)
Reply #150
Great component, just voicing that the option to disable confirmation when clicking links can be disabled.

  • amiti
  • [*][*][*]
Text Display (foo_textdisplay)
Reply #151
Is there a way to set more than one link (using $doclink) per line or must I always use clrf() between them?

  • foosion
  • [*][*][*][*][*]
  • Moderator
Text Display (foo_textdisplay)
Reply #152
In the current version you must use the $crlf().
http://foosion.foobar2000.org/ - my components for foobar2000

  • amiti
  • [*][*][*]
Text Display (foo_textdisplay)
Reply #153
In the current version you must use the $crlf().


Thanks.

Can't this plugin here be used as a much more advanced statusbar? I am using it as such but it overlaps the native statusbar in some aspects of functionality. I read in other threads that an option to hide statusbar is out of the question , but maybe upgrading it to include the options you are offering here and make it much more versatile?

  • foosion
  • [*][*][*][*][*]
  • Moderator
Text Display (foo_textdisplay)
Reply #154
Technically it would be possible to use a custom, advanced status bar. As far as I know Columns UI does that. Would Peter be willing to do this? I really don't know.
http://foosion.foobar2000.org/ - my components for foobar2000

  • ekyonn
  • [*]
Text Display (foo_textdisplay)
Reply #155
Web services links on playing track

Code: [Select]
$puts(myartist,$if3(%artist%,%album artist%,%BAND%,$directory(%path%,1)))
$puts(myalbums,$if3(%album%,%directoryname%))
$puts(mytitle,$if3(%title%,%filename%))
$puts(myquery,music+$get(myartist)+$get(myalbum)[+%date%]+$get(mytitle))


// Google all
$doclink(Google all,'http://www.google.com/search?ie=utf-8&q='$replace($get(myquery), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// search google for lyrics
$doclink(Google Lyrics,'http://www.google.com/search?ie=utf-8&q=lyrics|parole+'$replace($get(mytitle), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')+$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Google Lyrics Translate // bug urlencode
//$doclink(FRENCH Lyrics,'http://translate.google.fr/?ie=utf-8&hl=fr#auto/fr/'$replace($if3(%lyrics%,%unsynced lyrics%), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// Wikipedia artist
$doclink(Wikipedia,'http://en.wikipedia.org/wiki/Special:Search?search='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Youtube artist
//$doclink(Youtube,'http://www.youtube.com/results?aq=f&search_query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// Blogspot artist
$doclink(Blogspot,'http://www.google.com/search?sitesearch=blogspot.*&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// MusicBrainz artist
$doclink(MusicBrainz,'http://musicbrainz.org/search/textsearch.html?type=artist&an=1&as=1&aa=1&limit=100&handlearguments=1&query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Discogs artist
$doclink(Discogs,'http://www.discogs.com/search?type=artist&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// LastFM artist
//$doclink(LastFM,'http://www.lastfm.fr/search?q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// myspace artist
$doclink(MySpace,'http://www.myspace.com/search/music?q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23',&,,))
$crlf()

// rateyourmusic artist
$doclink(rateyourmusic,'http://rateyourmusic.com/search?searchtype=a&searchterm='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// greatsong.net
$doclink(greatsong.net,'http://www.greatsong.net/recherche.php?ie=utf-8&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// slothradio
$doclink(sloth cover,'http://www.slothradio.com/covers/?artist='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// allmusic
$doclink(allmusic,'http://www.allmusic.com/search/all/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// internet archive
$doclink(Internet Archive,'http://archive.org/search.php?query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// filecrop
$doclink(FileCrop,'http://www.filecrop.com/search.php?size_i=0&size_f=100000000&engine_r=1&engine_h=1&engine_m=1&engine_d=1&w='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// jango
$doclink(Jango,'http://www.jango.com/music/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// hypeM
$doclink(HypeM,'http://hypem.com/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// metacrawler
//$doclink(metacrawler,'http://www.metacrawler.com/search/web?fcoid=417&fcop=topnav&fpid=27&ql=&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// webcrawler
$doclink(webcrawler,'http://www.webcrawler.com/search/web?fcoid=417&fcop=topnav&fpid=27&ql=&ss=t&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// songstr
$doclink(songstr,'http://www.songstr.com/#!/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// deezer
$doclink(deezer,' http://www.deezer.com/fr/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

  • carpman
  • [*][*][*][*][*]
  • Developer
Text Display (foo_textdisplay)
Reply #156
Hi foosion,

Just updated to latest version of foo_textdisplay and it seems to ignore (or treat differently): $crlf()

C.

EDIT:
Win7 x64
fb2k v.1.2.6 (portable)
  • Last Edit: 10 June, 2013, 03:02:15 AM by carpman
PC = TAK + LossyWAV  ::  Portable = Lame MP3

  • marc2003
  • [*][*][*][*][*]
Text Display (foo_textdisplay)
Reply #157

  • carpman
  • [*][*][*][*][*]
  • Developer
Text Display (foo_textdisplay)
Reply #158
Thanks marc2003. Don't quite understand how I was using such an old version?? - only made my DUI setup this year. Very strange.
Anyway, problem solved.

Cheers,

C.
PC = TAK + LossyWAV  ::  Portable = Lame MP3

  • Edgar Grey
  • [*]
Text Display (foo_textdisplay)
Reply #159
Thanks for this plugin. It works great. But there is a problem with new foobar 1.3 beta 1 which described here:

http://www.hydrogenaudio.org/forums/index....mp;#entry840289

Will it be fixed?

Text Display (foo_textdisplay)
Reply #160
On my system my text display element has recently stopped displaying lyrics, showing instead "."  I'm on a Win7 machine, and the problem arose when I upgraded to fb2k v1.3.  I believe this is due to the problem Edgar Grey identified above -- please add my voice to his update request.

Thanks kindly -- I've appreciated this plugin (and your many others) over the years.

  • Edgar Grey
  • [*]
Text Display (foo_textdisplay)
Reply #161
On my system my text display element has recently stopped displaying lyrics, showing instead "."  I'm on a Win7 machine, and the problem arose when I upgraded to fb2k v1.3.  I believe this is due to the problem Edgar Grey identified above -- please add my voice to his update request.

Thanks kindly -- I've appreciated this plugin (and your many others) over the years.


Could be fixed by editing LargeFieldsConfig.txt in foobar2000 profile folder

  • thomian
  • [*]
Text Display (foo_textdisplay)
Reply #162
Does anyone know where I can find a non 1.0 release of the plugin?  All I want is proper line breaks to appear.


Any chance that this will be fixed in future versions?
I mean without the workaround from Post #132.
I don't like my scriptings to be messed up with a large number of $replace commands.

  • loft
  • [*][*][*]
Text Display (foo_textdisplay)
Reply #163
Since a few weeks ago (I can't tie it with any update of this plugin or foobar2000) I noticed that this plugin cannot read lyrics from FLAC files. It only displays a dot in the text box. It works just fine with MP3 and MPC files.

Im using fooobar2000 v1.3.2 and Text Display UI Element 1.1 beta 1. Thank you!

  • foosion
  • [*][*][*][*][*]
  • Moderator
Text Display (foo_textdisplay)
Reply #164
loft: This looks like the same issue as in post #161. I suspect it is just a coincidence that it occurs with FLAC files.
  • Last Edit: 27 April, 2014, 03:50:58 PM by foosion
http://foosion.foobar2000.org/ - my components for foobar2000

  • loft
  • [*][*][*]
Text Display (foo_textdisplay)
Reply #165
It looks like the same problem... My database is quite big, about 7000 files, mp3's, mpc's and FLAC's. Now why is it only happening with FLAC's... Dunno!

  • Coreda
  • [*][*][*]
Text Display (foo_textdisplay)
Reply #166
Are there any plans to add Bold formatting support? Facets has a nice support for it in the Default UI, and was hoping it could be achieved with Text Display

  • Coreda
  • [*][*][*]
Text Display (foo_textdisplay)
Reply #167
Just added some formatting for podcast details and noticed with certain Comment fields it breaks the Text Display formatting. Perhaps there are some characters that aren't being escaped?

Here is a screenshot of the issue. The first is the normal formatting showing correctly, the second one version of being broken, the last an alternate form of the formatting being broken.



Here's my formatting code:

Code: [Select]
[<<<%artist%>>>$crlf()]
%title%$crlf()
$if2(<<<%album% ['['#%track%']'] ['['%date%']']>>>,'('<<<Unknown>>>')')$crlf()
$if(%isplaying%,%playback_time%[ / %length%],%length%)$crlf()
<<∙∙∙∙>>$crlf()
[<<<%comment%>>>$crlf()<<∙∙∙∙>>$crlf()]

$puts(myartist,$if2(%albumartist%,%artist%))
$puts(myalbum,$if3(%album%,%directoryname%))
$puts(mytitle,$if3(%title%,%filename%))
$puts(myquery,$get(myartist) $get(myalbum) $get(mytitle))
$puts(myquery2,$get(myartist) $get(myalbum))

// Wikipedia
$doclink(Search Wikipedia '('album')','http://en.wikipedia.org/wiki/Special:Search?search='$replace($get(myquery2), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Youtube
$doclink(Search Youtube '('track')','http://www.youtube.com/results?aq=f&search_query='$replace($get(myquery), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Search google for lyrics
$doclink(Search Lyrics,'http://www.google.com/search?ie=utf-8&q='$replace($get(myquery) lyrics, ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()
  • Last Edit: 12 May, 2014, 10:38:32 PM by Coreda

  • foosion
  • [*][*][*][*][*]
  • Moderator
Text Display (foo_textdisplay)
Reply #168
I guess there is a line break in some of your comment tags. This breaks the formatting since Text Display can only apply formatting to whole paragraphs. There are two options. Either remove the line breaks in your formatting script using
Code: [Select]
<<<$replace(%comment%,$char(13),,$char(10),)>>>
or break up the comment into multiple, separately highlighted paragraphs with
Code: [Select]
<<<$replace(%comment%,$crlf(),>>>$crlf()<<<)>>>


I'm not sure what goes wrong for the second case but you can try to use Text Display's $urlencode function instead of a $replace which only handles a few special characters, i.e.
Code: [Select]
$doclink(Search Youtube '('track')','http://www.youtube.com/results?aq=f&search_query='$urlencode($get(myquery)))
http://foosion.foobar2000.org/ - my components for foobar2000

  • Coreda
  • [*][*][*]
Text Display (foo_textdisplay)
Reply #169
Perfect foosion, just what I needed. 

BTW is there a way to pass the currently playing file to an app? I see the $applink() function but don't see a way to open just a single file.
  • Last Edit: 13 May, 2014, 08:33:08 AM by Coreda

  • marc2003
  • [*][*][*][*][*]
Text Display (foo_textdisplay)
Reply #170
if you want the default application to open the file, just put %path% as the application. or if you want to open a specific app, you can specify %path% as an argument.

  • phool
  • [*][*]
Text Display (foo_textdisplay)
Reply #171
I'm having trouble using the highlight function in my config.



My settings for the above are:

Code: [Select]
$if2(%track%,) [<<<%artist%>>>] - $if2(%title%,)$crlf()

[$if(%ALBUM%,%ALBUM%,$if(%radioshow%, | %radioshow%', episode'
$if2(%RADIOSHOW EPISODE%,), | %liveset%))
[' ('$if(%BROADCAST DATE%,%BROADCAST DATE%,%date%)')']$crlf()]
$crlf()
$if(%play_count%,Played %play_count% times,Not Played)


There is probably something really simple that I'm missing but I can't seem to get it to work.

  • Bollerkopp
  • [*][*][*]
Text Display (foo_textdisplay)
Reply #172
Hi,

this should work:

Quote
$if2(%track%,) <<<[%artist%]>>> - $if2(%title%,)$crlf()


Greets

  • foosion
  • [*][*][*][*][*]
  • Moderator
Text Display (foo_textdisplay)
Reply #173
This is a known limitation of the current version of the plugin. The highlighting only works if you apply it to the entire line, e.g.
Code: [Select]
<<<[%track%] [%artist%] [%title%]>>>$crlf()
// The rest of your code follows here.
http://foosion.foobar2000.org/ - my components for foobar2000

  • phool
  • [*][*]
Text Display (foo_textdisplay)
Reply #174
Thanks for the reply foosion. Wasn't aware of that particular limitation. Nevertheless using the code provided results in the following: