Andrzej Rybczak
7cd6508496
lyrics: general code refactoring
16 years ago
Andrzej Rybczak
5dc439aa19
lyrics: rename Lyrics::FetchAgain() to Lyrics::Refetch()
16 years ago
Andrzej Rybczak
d7f862ce86
lyrics: move code that saves lyrics to separate function
16 years ago
Andrzej Rybczak
443516acbf
lyrics: make screen accessible if lyrics are being fetched
16 years ago
Andrzej Rybczak
96064b826e
lyrics: show additional info if lyrics are not found in any database
16 years ago
Andrzej Rybczak
7f2ea9dc8f
remove optional pthread support - it's mandatory now
16 years ago
Andrzej Rybczak
daad444f3c
lyrics: redesigned plugins system
16 years ago
Andrzej Rybczak
d3cb0ea6f6
put CURL related functions into a separate file
16 years ago
Andrzej Rybczak
8b109d0736
lyrics: add support for lyricsfly.com database
16 years ago
Andrzej Rybczak
74d177feae
replace lyricsplugin.com with lyrc.com.ar as the former no longer works
...
this is sorta workaround, I need to add at least leolyrics and lyricsfly
databases support, but they require unique user ids. btw, plugin system in
its current form is horrible mess and it *really* needs to be redesigned.
16 years ago
Andrzej Rybczak
08daa61907
update copyright notices
16 years ago
Andrzej Rybczak
a27332a825
get rid of using directives
...
these in ncmpcpp.cpp stay since a lot of memebers are used.
16 years ago
Andrzej Rybczak
455f729bef
reset scrollpad's start position while switching to lyrics/info screens
16 years ago
Andrzej Rybczak
6f3eca898a
refresh lyrics window after local lyrics are reloaded
17 years ago
Andrzej Rybczak
dd04406ee5
poll both stdin and mpd using one select()
...
this allows for immediate reading mpd events
17 years ago
Andrzej Rybczak
62b7df69f3
new feature: refetch lyrics
17 years ago
Andrzej Rybczak
f6f7a8a27e
move code responsible for replacing content in strings to Replace()
17 years ago
Andrzej Rybczak
c7c6b2c321
lyrics: check if data returned by curl contains opening and closing tag
17 years ago
Andrzej Rybczak
7c9363c174
refresh window after lyrics/artist info was (not) downloaded
17 years ago
Andrzej Rybczak
61a9d6a785
get rid of all mysterious numbers that meant length of string literals
17 years ago
Andrzej Rybczak
6e903f9fc8
remove unneded checks in Lyrics::Update() if Reload is requested
...
they are checked again in Lyrics::SwitchTo(), so why bother?
17 years ago
Andrzej Rybczak
d6fbb2f657
remove wrapper for Scroller() needed with --enable-unicode
17 years ago
Andrzej Rybczak
6843b98627
throw away all NULLs and replace them by 0s
17 years ago
Andrzej Rybczak
89e18096d9
rearrange sequence of arguments to Scroller()
17 years ago
Andrzej Rybczak
80e2476852
fix song format in lyrics screen
17 years ago
Andrzej Rybczak
101f01941d
new feature: alternative user interface
17 years ago
Andrzej Rybczak
27ede67685
remove lyricswiki support as it doesn't allow fetching lyrics anymore
17 years ago
Andrzej Rybczak
df051bf674
remove using declarations
17 years ago
Andrzej Rybczak
9dab25e02c
use prefix ++ instead of postfix where available
17 years ago
Andrzej Rybczak
450bf1b636
initialize screens only if necessary
17 years ago
Andrzej Rybczak
72acc09b26
fix compilation if there were no curl dev files installed
17 years ago
Andrzej Rybczak
2649c4a86b
if in Lyrics::SwitchTo() lyrics aren't taken yet, take them and continue
...
if one started fetching lyrics and exited from lyrics screen before
they were taken by Lyrics::Update() and then wanted to switch again,
there was no action visible, because the function just took the lyrics
and exited. for now it continues and fetches them again.
17 years ago
Andrzej Rybczak
d5a63d6b61
make Lyrics::FilenamePath non-static member
17 years ago
Andrzej Rybczak
db0b42b5da
fix fetching lyrics without threads
17 years ago
Andrzej Rybczak
8ecd35051a
do not start additional thread if lyrics are available locally
17 years ago
Andrzej Rybczak
49a13222a3
get proper user home dir on WIN32 and adjust folders in this case a bit
17 years ago
Andrzej Rybczak
a670be05fe
fix compilation --without-curl
17 years ago
Andrzej Rybczak
344fc21d76
use pthread_t * handlers rather than pthread_t
...
pthread-win32 doesn't accept assigning zero to pthread_t type,
so we need to use pointers instead. this is more semantic anyway.
17 years ago
Andrzej Rybczak
f04472641b
make it compile under mingw32 --with-curl
17 years ago
Andrzej Rybczak
65f52da949
make it compile under mingw32 --without-curl --without-taglib
...
ncmpcpp can be built for windows \o/
pdcurses and regex libraries are needed for this though.
17 years ago
Andrzej Rybczak
eed4fb03ff
use CamelCase for variables in Global namespace / some cleaning
17 years ago
Andrzej Rybczak
556d0f7a3c
hide cursor after return from external console editor
17 years ago
Andrzej Rybczak
31dcb27789
fix handling external console editor
17 years ago
Andrzej Rybczak
d8a6993ec2
add support for external console editor
17 years ago
Andrzej Rybczak
12e437c5af
really fix compilation --without-curl
17 years ago
Andrzej Rybczak
b056fb0968
fix compilation --without-curl
17 years ago
Andrzej Rybczak
3b32d84a76
make Playlist::NowPlayingSong() return pointer, not reference
17 years ago
Andrzej Rybczak
072f611896
fix reloading lyrics after song's change
17 years ago
Andrzej Rybczak
70f48dd454
support for opening lyrics in external editor
17 years ago
Andrzej Rybczak
32f959d1ec
use streams instead of Window::WriteXY()
17 years ago