Commit Graph

178 Commits

Author SHA1 Message Date
craig.p.drummond
1c99ba468b Load artist iamges in non-UI thread too. Should only be album images in artists view that are loaded in UI thread. Tried loading these in non_UI thread, but didnt like delay in showing covers. 2014-03-20 19:58:40 +00:00
craig.p.drummond
f060d14710 When emitting loaded signal, pass whole song not just artist+album 2014-03-19 19:50:46 +00:00
craig.p.drummond
6bc5971268 Only create QPixmaps in GUI thread - creating in non GUI thread can lead to crashes. 2014-03-19 19:50:14 +00:00
craig.p.drummond
ca14eba441 Fix display of online service logo in playqueue 2014-03-19 19:49:38 +00:00
craig.p.drummond
c036643f6f Load all covers from album, and playqueue, views in non UI thread 2014-03-19 19:49:10 +00:00
craig.p.drummond
262b6daa1c Dont insert dummy entry twice 2014-03-19 19:48:20 +00:00
craig.p.drummond
313db56e2a Locate and load all non cached covers in non GUI thread. 2014-03-18 19:49:28 +00:00
craig.p.drummond
b290d2db1e Load cached covers in non GUI thread 2014-03-18 19:47:18 +00:00
craig.p.drummond
1629f085e1 Only need to start count reset timer if we have a max value set 2014-03-17 19:53:32 +00:00
craig.p.drummond
0f320b7631 Use Q_GLOBAL_STATIC for Qt only builds 2014-03-17 19:52:47 +00:00
craig.p.drummond
ff4cfa793d Saved scaled covers as PNG 2014-03-17 19:50:04 +00:00
craig.p.drummond
ebbd225e0a Fix recursion... 2014-03-17 19:47:44 +00:00
craig.p.drummond
1cb1460f3e Only add std cover name once to list of cover names 2014-03-14 19:13:26 +00:00
craig.p.drummond
19689a2fa2 Make in memory cache size configurable 2014-03-14 19:07:31 +00:00
craig.p.drummond
eedc6632c2 Dont save to cache, or read from, if size<4 2014-03-12 17:22:32 +00:00
craig.p.drummond
74e608742e Reduce memory usage, by storing album covers in a cache - and using this for display. 2014-03-12 17:20:29 +00:00
craig.p.drummond
c0ecc4cb29 Also cache covers from playqueue into covers-scaled 2014-03-12 17:19:09 +00:00
craig.p.drummond
960cd3708f Start locator and downloader only when needed too... 2014-03-03 19:31:42 +00:00
craig.p.drummond
b57ae6e96b Create NetworkAccessManager only when needed 2014-03-03 19:30:09 +00:00
craig.p.drummond
0a3e47b09f Create cache dir if it does not exist 2014-03-02 15:40:53 +00:00
craig.p.drummond
164a0096cb Check sizes of temporary files after write, to ensure data is written. This fixes an issue where sometimes 0 byte files were written from CoverDialog. 2014-02-12 22:43:47 +00:00
craig.p.drummond
7769b41148 Attempt to locate covers for non-MPD tracks in MPD folders 2014-02-04 19:15:07 +00:00
craig.p.drummond
5407da54d5 Add option to NOT download covers from last.fm 2014-01-25 09:56:54 +00:00
craig.p.drummond
90ffd8babb Covers cache key cant use song key 2014-01-23 19:47:28 +00:00
craig.p.drummond
054465656c Decode Mopidy local:track:file paths 2014-01-21 18:57:47 +00:00
craig.p.drummond
6b0f990156 Check for more image files... 2014-01-16 19:31:49 +00:00
craig.p.drummond
88e7a4f700 If file path starts with /, then its not an MPD file 2014-01-16 19:31:12 +00:00
craig.p.drummond
c06460596b Use Podcasts and SoundCloud icons in cover widget, and song notification, for relevant tracks. 2014-01-15 19:31:32 +00:00
craig.p.drummond
2f24b3fd9b Results of cppcheck... 2014-01-08 19:49:48 +00:00
craig.p.drummond
84a1fa0de0 When downloading images, dont use extension to determine file format, instead look JFIF and PNG in first few data bytes.
BUG: 378
2014-01-07 20:02:40 +00:00
craig.p.drummond
ab7ffecca3 Update (c) year 2014-01-06 19:32:05 +00:00
craig.p.drummond
8485ab8cf4 Add CMake option to disable online services 2014-01-03 19:04:14 +00:00
craig.p.drummond
047b3fa9c3 Simplify 2013-12-19 20:07:54 +00:00
craig.p.drummond
da0d4bcacb Typo 2013-12-19 20:07:38 +00:00
craig.p.drummond
077c8293fb Fix potential memory leak with cover images. 2013-12-19 20:07:12 +00:00
craig.p.drummond
6a582befa1 Optionally save scaled covers (used in artist and albums views) to disk. 2013-12-19 20:06:06 +00:00
craig.p.drummond
b609fe77fd Revert reading/writing of tags in external helper - its not working correctly
BUG: 319
2013-10-25 20:01:33 +00:00
craig.p.drummond
99bccf6281 Read/write tags in an external app - as per Clementine and Amarok. Isolates Cantata from TagLib crashes. 2013-10-22 18:22:41 +00:00
craig.p.drummond
843bb0f2a4 Always use unix dir separator internally 2013-10-14 18:16:32 +00:00
craig.p.drummond
db11b6200e Dir separator... 2013-10-14 18:14:12 +00:00
craig.p.drummond
167353cd3e Fix covers of online services (Jamendo/Magnatune) 2013-10-10 20:25:37 +00:00
craig.p.drummond
d1925ec068 More online service image retrival reverts... 2013-10-09 19:43:42 +00:00
craig.p.drummond
b5d2636c16 USe standard covers routine to get album covers for online services, as we might be using URL from MPD 2013-10-09 19:13:48 +00:00
craig.p.drummond
8e84cab3a8 - Show action short-cuts in tooltips
- Move https->http conversion into NetworkAccessManager, so that it is consistent
- Place clear playqueue button back to its previous position
2013-10-09 17:07:14 +00:00
craig.p.drummond
bbd9ee535f - Allow some cover requests to be 'urgent' - these will be loaded in UI thread, if cover exists.
- Keep track of current cover queries, so that we dont attempt to acces the same one twice
2013-09-30 18:20:26 +00:00
craig.p.drummond
5de94e7538 Add config items to control max-per-iteration cover fetching 2013-09-26 18:00:50 +00:00
craig.p.drummond
28654a9148 Use HTTPS URLs for Last.fm, Wikipedia, SoundCloud, etc, for non-windows builds. 2013-09-24 18:42:52 +00:00
craig.p.drummond
8dcf661d15 Improve responsiveness when loading covers. Only attempt to locate and load 2 covers in the GUI event loop per iteration. More than this is handled in a separate thread. 2013-09-24 18:40:59 +00:00
craig.p.drummond
5a3740f2ab - Show sound-cloud icon in playqueue and corner widget
- Show podcasts icon in playqueue, and if possible podcast image in cover widget/notifications.
2013-09-18 18:16:58 +00:00
craig.p.drummond
5683f7939b Use NetworkJob to automatically, and consistently, handle re-directs 2013-09-18 18:11:49 +00:00