Commit Graph

121 Commits

Author SHA1 Message Date
Andrzej Rybczak
91477e034d lyrics fetcher: limit number of worker threads downloading lyrics in background 2011-12-29 18:47:44 +01:00
Andrzej Rybczak
a98a1800a7 settings: provide a way to use alternative location for configuration file
..and whole data folder.
2011-11-13 21:01:49 +01:00
Andrzej Rybczak
56467eaac6 new feature: support for merging screens together 2011-11-12 19:47:47 +01:00
Andrzej Rybczak
ca956c3da3 update copyright dates 2011-11-01 13:43:47 +01:00
Andrzej Rybczak
d9bc1c0950 new feature: support for fetching lyrics for currently playing song in background 2011-10-18 23:15:32 +02:00
Andrzej Rybczak
e8c8e6394e lyrics: fix segfault if song didn't have proper tags set 2010-09-30 05:15:25 +02:00
Andrzej Rybczak
06d5b81125 lyrics/lastfm: refetch data if file didn't exist before 2010-09-15 18:57:17 +02:00
Andrzej Rybczak
1381a45d06 fix compilation --without-curl 2010-08-22 15:40:28 +02:00
Andrzej Rybczak
c0e558f04b lyrics: add support for storing lyrics in song's directory 2010-08-17 16:58:48 +02:00
Andrzej Rybczak
3afa0028e6 lyrics: some code beautification + Lyrics::SwitchTo() corrections 2010-08-13 05:45:34 +02:00
Andrzej Rybczak
a1cd5ae1aa lastfm: redesigned plugins system 2010-08-13 05:20:12 +02:00
Andrzej Rybczak
e1b1cf838a lyrics: restore database selector 2010-08-10 20:39:08 +02:00
Andrzej Rybczak
73339eed9c lyrics: reload lyrics in more sane manner 2010-08-10 19:55:49 +02:00
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