01-19-2019, 01:43 PM | #1 |
Nameless Being
|
Group news items from the same source
In Calibre News view, how can you customize the view to visually group multiple news items from the same source?
For example, say you download daily from the the New York Times. You end up with multiple dated New York Times items in your News view; it gets cluttered over time. It would be handy to be able to create a custom view that groups all news items from the same source. ETA: Here's a screenshot showing the problem of multiple dated entries from the same source. Calibre builds each daily download from a given source into an Epub and treats it like a separate book. Last edited by maximus83; 01-19-2019 at 03:02 PM. |
01-19-2019, 03:41 PM | #2 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Isn't the source, the Publisher?
|
01-19-2019, 04:14 PM | #3 |
Nameless Being
|
Yes? But I still want to create a view that groups multiple dated entries from same source. Also I wouldn't see it as necessarily reliable trying to group by "Publisher" field, as a lot of the news entries end up showing calibre as the Publisher.
Last edited by maximus83; 01-19-2019 at 04:17 PM. |
01-20-2019, 12:08 AM | #4 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Do a multisort, by title and date.
|
01-20-2019, 07:09 AM | #5 |
Grand Sorcerer
Posts: 11,731
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You can get close to what you want, a grouped display to the tag browser, by creating a "Column built from other columns" (not tags) with "Show in tag browser" checked, adding that column to the list of hierarchical tags (Preferences / Look and feel / Tag browser / Categories with hierarchical items), then using an appropriate template in the column.
I don't have any sample news data so I can't provide a template that is tested, but this one should come close. Code:
program: re_group(field('title'), '(\.)| *\[(.*)\]', ":", "{$:|.[|]}", ',') After you make the above work, you will see the news articles in the tag browser with the name as the outermost item and the articles by date as the subitem. |
01-20-2019, 11:05 AM | #6 |
Nameless Being
|
Thanks guys, good tips.
The custom column + regex sounds cool. Will give that a try this week and circle back here with an update. |
01-22-2019, 02:45 PM | #7 |
Nameless Being
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Covers for news items gone... | NSILMike | Calibre Companion | 5 | 11-06-2015 02:04 PM |
News items stuck at zero | truth1ness | Calibre | 2 | 05-26-2015 10:05 AM |
News items not auto-emailing to Kindle | KenAdam | Calibre | 7 | 01-05-2011 02:17 PM |
News items not showing up in Kindle | CarlosOnline | Amazon Kindle | 0 | 04-04-2010 07:37 AM |
Delete expired news items from device | fruggeri | Calibre | 2 | 10-12-2009 06:30 PM |