01-04-2012, 07:20 AM | #331 | ||||
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
I was being lazy the other night when I just ripped out the list viewing as the "easy" answer. I think the best compromise I can do is that if the user is currently viewing the source list, then that source list gets refreshed. Otherwise no list gets viewed. Quote:
Quote:
As for the add/remove methods, well they do need to interact with the gui because the user could have tags/custom column rules applied to their list add/remove operations. In the case of an external plugin calling reading_list, they will have to take responsibility for doing those updates on screen. Otherwise what happens is the user sees no "effect" of doing the add/remove operation until they refresh their search or move up/down the row. Quote:
|
||||
01-12-2012, 02:32 PM | #332 |
Plugin Developer
Posts: 6,335
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
@kiwidude, I'm working on using Reading List from FanFictionDownLoader now.
It's been working great with the test version you posted here. Do you plan to release it as the official version anytime soon? Thanks, Jim |
Advert | |
|
01-12-2012, 03:28 PM | #333 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.4.1 Released
Changes in this release:
|
01-12-2012, 05:13 PM | #334 |
Plugin Developer
Posts: 6,335
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Thanks!
|
01-13-2012, 09:28 AM | #335 | |
Member
Posts: 17
Karma: 10
Join Date: Sep 2009
Device: PRS 300
|
@kiwidude - I tried displaying this list but it doesn't hold the reading order. If you get bored and feel like working on it I would be happy to be a tester. As for the output I don't really care - as far as I am concerned Calibre can take care of reading formats. For now I can manually create a reading list file and import that into Calibre as a book.
Sincerely, Kurt Quote:
|
|
Advert | |
|
01-13-2012, 10:46 AM | #336 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Yeah I suspected the catalog feature would apply its own sorting, oh well, worth a punt.
Like I said, it is on the todo list to look at one day, as I dont use the catalog feature myself I know very little about it. Not that I expect there to be a direct code reuse, but its the same sort of principle - given a bunch of books from the calibre database, produce an html file output. Where it all starts getting messy is with timings and output formats etc. For instance...
One of those features I wouldn't use myself hence lacking motivation really. I found I tend to be flexible when it comes to deciding what to read next - I stick a subset of just several hundred books on my Kindle at a time, topping it up every now and then with new ones that sound interesting as I remove the read ones. But deciding what I will actually read next for me is on a whim - if the first book of a series grabs me then I'll probably read more from it sequentially ("Hunger Games" has me turning pages frantically at the moment). OTOH prior to that I read "Master & Commander" by Patrick O'Brian which I found a far less riveting read, so the allegedly better follow-up books are way down my mental priority list now. I try not to OD on any one genre by randomly rotating through based on what I feel like, and since I average reading around 20 books a month its not essential I force an order upon myself. But that's just my personal style, and I completely respect the desire of others to have a visual reminder to themselves of particular books they are looking forward to reading, it is all part of the fun... |
01-13-2012, 11:51 PM | #337 |
Plugin Developer
Posts: 6,335
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
@kiwidude - I'm looking at how to configure my plugin to use Reading Lists and could use some advice, or a pointer where to ask.
In my plugin action, I can get a ref to ReadingListAction from self.gui.iactions['Reading List']. But what's the best way to get a ref to ReadingListAction from inside my config widget? I can assign it to a variable imported from the config file myself in the action's genesis() method, but is there a better, sanctioned approach to get it? Thanks, Jim |
01-14-2012, 06:03 AM | #338 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
I would never say "officially sanctioned" but the way I have always done this through my plugins is to pass self.actual_plugin_ into my ConfigWidget constructor, from the config_widget() function in __init__.py. That gives you access to your Action class from the ConfigWidget class, so of course you can then access the .gui variable on it. You can see the code in ReadingList and most of my plugins for that passing.
That is what I use, but if you don't need the action class for other reasons then there is also another way Kovid made available some months ago, by doing this: Code:
from calibre.gui2.ui import get_gui gui = get_gui() |
01-14-2012, 04:13 PM | #339 |
Plugin Developer
Posts: 6,335
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Thanks, those are both a lot cleaner than what I'd come up with.
|
01-20-2012, 08:17 AM | #340 | |
Member
Posts: 17
Karma: 10
Join Date: Sep 2009
Device: PRS 300
|
@kiwidude - I understand you point and your reading style. From my point of view where it could be of great benefit is when I have a series of books that are read in order (or I want to read in order). Usually I find I don't remember which book comes after which, so I end up opening up books looking for the publication date or list in the front of the ebook. Otherwise I am like you; when I finish a book I pick the next one based on a variety of factors.
Sincerely, -Kurt Quote:
|
|
01-20-2012, 08:25 AM | #341 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@weirichk - can you not use the "series" capabilities of calibre to give you the books presented in reading order? I know it only works on books that are defined in a series, but I have heard of people creating a fake series just so they could read standalone novels in published order. I don't know anything about Sony devices, but I would "assume" it is possible to have books listed in series order. On a Kindle at least this is done using metadata plugboards...
|
01-20-2012, 08:57 AM | #342 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
On the Sony it is even easier if you set the Sony Device driver to create Collections from Series (which is actually a default setting anyway). No need for the complexity of metadata plugboards.
|
01-21-2012, 05:15 AM | #343 |
Fanatic
Posts: 590
Karma: 788068
Join Date: Sep 2009
Location: Sweden
Device: Sony PRS 505, Cybook Odessey
|
Last week, I had to reformat the main memory on my Sony, and now the Reading List plugin doesn't sync with it. I tried to delete, and re-add device. I have checked the settings to see if something changed. Nothing helps. It still doesn't sync.
|
01-21-2012, 05:38 AM | #344 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@mikaelalind - reformatting the device will erase the identifier file that calibre puts onto it when first plugged in. This plugin matches against that same identifier to identify a device, and each list is associated because of it.
So you will need to remove the "old" device as the plugin knows it, and add the device again (which it sounds like you have done). However did you also for each list make sure it has your "new" device associated with it? My guess is that the lists are pointed to your old device id, not the new one. If you still can't get it to work, post or PM me your Reading List.json file from your calibre plugins folder. If you still can't get it to work, try creating a new list and seeing if that does. Absolute worst case, just delete/rename the Reading List.json file and recreate your lists again, but you should not need to do that. |
01-21-2012, 01:00 PM | #345 |
Fanatic
Posts: 590
Karma: 788068
Join Date: Sep 2009
Location: Sweden
Device: Sony PRS 505, Cybook Odessey
|
I deleted the old list , Kiwidude, and now the sync works again
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Extract ISBN | kiwidude | Plugins | 532 | 04-07-2024 11:01 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Manage Sony x50 Reader Book List | kpw | Plugins | 170 | 10-02-2014 08:23 PM |
[GUI Plugin] Temp Marker | kiwidude | Plugins | 41 | 10-14-2013 12:25 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |