Commit Graph

108 Commits

Author SHA1 Message Date
Andrzej Rybczak
3a724626de lyrics: use pthread_t instead of pthread_t * 2010-08-10 01:50:39 +02:00
Andrzej Rybczak
3bb3607399 lyrics: pass wrapper around member function to new thread
+ some more code refactoring
2010-08-10 01:32:34 +02:00
Andrzej Rybczak
7cd6508496 lyrics: general code refactoring 2010-08-10 01:12:59 +02:00
Andrzej Rybczak
5dc439aa19 lyrics: rename Lyrics::FetchAgain() to Lyrics::Refetch() 2010-08-10 00:34:54 +02:00
Andrzej Rybczak
d7f862ce86 lyrics: move code that saves lyrics to separate function 2010-08-10 00:30:41 +02:00
Andrzej Rybczak
443516acbf lyrics: make screen accessible if lyrics are being fetched 2010-08-10 00:24:16 +02:00
Andrzej Rybczak
96064b826e lyrics: show additional info if lyrics are not found in any database 2010-08-09 12:09:17 +02:00
Andrzej Rybczak
7f2ea9dc8f remove optional pthread support - it's mandatory now 2010-08-09 11:57:58 +02:00
Andrzej Rybczak
daad444f3c lyrics: redesigned plugins system 2010-08-09 11:39:41 +02:00
Andrzej Rybczak
d3cb0ea6f6 put CURL related functions into a separate file 2010-08-09 09:31:47 +02:00
Andrzej Rybczak
8b109d0736 lyrics: add support for lyricsfly.com database 2010-08-08 19:12:51 +02:00
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.
2010-08-08 03:16:40 +02:00
Andrzej Rybczak
08daa61907 update copyright notices 2010-01-30 16:24:24 +01:00
Andrzej Rybczak
a27332a825 get rid of using directives
these in ncmpcpp.cpp stay since a lot of memebers are used.
2010-01-22 19:17:35 +01:00
Andrzej Rybczak
455f729bef reset scrollpad's start position while switching to lyrics/info screens 2009-12-27 16:47:51 +01:00
Andrzej Rybczak
6f3eca898a refresh lyrics window after local lyrics are reloaded 2009-11-28 12:24:58 +01:00
Andrzej Rybczak
dd04406ee5 poll both stdin and mpd using one select()
this allows for immediate reading mpd events
2009-10-25 20:44:07 +01:00
Andrzej Rybczak
62b7df69f3 new feature: refetch lyrics 2009-10-20 00:35:51 +02:00
Andrzej Rybczak
f6f7a8a27e move code responsible for replacing content in strings to Replace() 2009-10-10 15:36:51 +02:00
Andrzej Rybczak
c7c6b2c321 lyrics: check if data returned by curl contains opening and closing tag 2009-09-26 23:12:56 +02:00
Andrzej Rybczak
7c9363c174 refresh window after lyrics/artist info was (not) downloaded 2009-09-18 01:46:53 +00:00
Andrzej Rybczak
61a9d6a785 get rid of all mysterious numbers that meant length of string literals 2009-09-15 23:12:45 +00:00
Andrzej Rybczak
6e903f9fc8 remove unneded checks in Lyrics::Update() if Reload is requested
they are checked again in Lyrics::SwitchTo(), so why bother?
2009-09-15 21:12:58 +00:00
Andrzej Rybczak
d6fbb2f657 remove wrapper for Scroller() needed with --enable-unicode 2009-09-15 21:07:37 +00:00
Andrzej Rybczak
6843b98627 throw away all NULLs and replace them by 0s 2009-08-30 17:43:13 +02:00
Andrzej Rybczak
89e18096d9 rearrange sequence of arguments to Scroller() 2009-08-26 03:33:31 +02:00
Andrzej Rybczak
80e2476852 fix song format in lyrics screen 2009-08-14 17:07:23 +02:00
Andrzej Rybczak
101f01941d new feature: alternative user interface 2009-08-12 02:08:13 +02:00
Andrzej Rybczak
27ede67685 remove lyricswiki support as it doesn't allow fetching lyrics anymore 2009-08-05 14:35:45 +02:00
Andrzej Rybczak
df051bf674 remove using declarations 2009-07-05 12:19:22 +02:00
Andrzej Rybczak
9dab25e02c use prefix ++ instead of postfix where available 2009-07-04 06:41:35 +02:00
Andrzej Rybczak
450bf1b636 initialize screens only if necessary 2009-06-26 18:48:00 +02:00
Andrzej Rybczak
72acc09b26 fix compilation if there were no curl dev files installed 2009-05-03 13:53:15 +02:00
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.
2009-03-27 14:32:10 +01:00
Andrzej Rybczak
d5a63d6b61 make Lyrics::FilenamePath non-static member 2009-03-27 14:17:37 +01:00
Andrzej Rybczak
db0b42b5da fix fetching lyrics without threads 2009-03-27 14:16:56 +01:00
Andrzej Rybczak
8ecd35051a do not start additional thread if lyrics are available locally 2009-03-27 13:21:29 +01:00
Andrzej Rybczak
49a13222a3 get proper user home dir on WIN32 and adjust folders in this case a bit 2009-03-26 20:23:47 +01:00
Andrzej Rybczak
a670be05fe fix compilation --without-curl 2009-03-26 19:22:48 +01:00
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.
2009-03-26 16:18:11 +01:00
Andrzej Rybczak
f04472641b make it compile under mingw32 --with-curl 2009-03-25 23:13:34 +01:00
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.
2009-03-25 22:08:18 +01:00
Andrzej Rybczak
eed4fb03ff use CamelCase for variables in Global namespace / some cleaning 2009-03-08 01:58:49 +01:00
Andrzej Rybczak
556d0f7a3c hide cursor after return from external console editor 2009-03-05 18:06:53 +01:00
Andrzej Rybczak
31dcb27789 fix handling external console editor 2009-03-04 22:21:32 +01:00
Andrzej Rybczak
d8a6993ec2 add support for external console editor 2009-03-04 15:34:04 +01:00
Andrzej Rybczak
12e437c5af really fix compilation --without-curl 2009-02-21 16:48:38 +01:00
Andrzej Rybczak
b056fb0968 fix compilation --without-curl 2009-02-20 20:12:35 +01:00
Andrzej Rybczak
3b32d84a76 make Playlist::NowPlayingSong() return pointer, not reference 2009-02-19 00:00:31 +01:00
Andrzej Rybczak
072f611896 fix reloading lyrics after song's change 2009-02-18 22:38:57 +01:00