02-02-2013, 03:55 PM | #1 |
Member
Posts: 17
Karma: 17594
Join Date: Feb 2011
Device: kobo, android phone/tablet
|
CC Content Server - do not display User Categories
I would like to disable some of the groups displayed when looking at the content server from my device. In particular, I don't want the User Categories to be displayed because they are not displayed nested as are the tags.
Example: The Index of content server displays as follows: By Newest By Title By Author Awards.Crime Writer's Association Ian Fleming Steel Dagger Award By Author Awards.Edgar Award By Author Awards.Gold Dagger for Fiction By Author Awards.Hugo Award etc. By Author Country.Canada By Author Country.Denmark etc. My User Categories are Author Awards and Author Countries and I would rather these either not appear at all, or appear nested the way tags do. Is there a way around this? |
02-02-2013, 05:31 PM | #2 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If you run the content server from within calibre, see the tweak (preferences -> tweaks) Set custom metadata fields that the content server will or will not display. (ID: content_server_will_display). This controls what the content server sends to CC or other clients.
|
Advert | |
|
02-02-2013, 07:55 PM | #3 |
Member
Posts: 17
Karma: 17594
Join Date: Feb 2011
Device: kobo, android phone/tablet
|
chaley, thanks for the response.
Unfortunately, it doesn't work for user categories. I've confirmed that it works for custom subgroups, as I removed all my subgroups except for genre: Code:
content_server_will_display = ['#genre'] content_server_wont_display = [] Code:
content_server_will_display = ['*'] content_server_wont_display = ['@Author Country','@Author Awards','@Period and Place'] Code:
content_server_will_display = ['*'] content_server_wont_display = ['@Author Country:true','@Author Awards:true','@Period and Place:true'] Code:
content_server_will_display = ['*'] content_server_wont_display = ['@Author Country:.true','@Author Awards:.true','@Period and Place:.true'] |
02-02-2013, 08:07 PM | #4 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
02-02-2013, 08:19 PM | #5 |
Member
Posts: 17
Karma: 17594
Join Date: Feb 2011
Device: kobo, android phone/tablet
|
|
Advert | |
|
02-03-2013, 04:30 PM | #6 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Removing user categories using the tweak will be in the next calibre release.
|
04-22-2013, 06:08 PM | #7 |
Member
Posts: 17
Karma: 17594
Join Date: Feb 2011
Device: kobo, android phone/tablet
|
I'm guessing that this has not been implemented yet? I'm using 0.9.27 64bit and have tried to hide categories from the content server without any luck. I tried all three of the formats indicated above in my previous post and none worked.
|
04-23-2013, 06:20 AM | #8 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
content_server_will_display = ['*'] content_server_wont_display = ['@foo bar'] Code:
content_server_will_display = ['*'] content_server_wont_display = [] Are you remembering both to restart calibre and to refresh your browser? Edit: also be sure that the spelling and the letter case used in the tweak exactly matches the user category name. Last edited by chaley; 04-23-2013 at 06:49 AM. Reason: add more info |
|
04-23-2013, 07:20 PM | #9 |
Member
Posts: 17
Karma: 17594
Join Date: Feb 2011
Device: kobo, android phone/tablet
|
chaley, I can get Author Awards to disappear with
Code:
content_server_will_display = ['*'] content_server_wont_display = ['@Author Awards'] I tried this but it didn't work: Code:
content_server_will_display = ['*'] content_server_wont_display = ['@Author Awards:.true'] |
04-24-2013, 03:11 AM | #10 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
content_server_will_display = ['*'] content_server_wont_display = ['@Author Awards', 'Author Awards.Edgar Award'] I might be able to make some kind of regexp pattern, but it would need to be done in a way where there could never be a conflict between the pattern and a real name. And in any event, I won't have time to look at it for a few weeks. There is a good chance that I will forget (I do that more and more these days), so if you don't hear back from me by mid-May and if you still want such a thing, ping me by posting here. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
User Categories | jesscat | Library Management | 13 | 03-07-2011 04:52 PM |
User Categories | cipri | Calibre | 2 | 03-05-2011 10:01 AM |
0.7.47 - User Categories & Sub-Categories | nynaevelan | Library Management | 0 | 02-28-2011 06:11 PM |
0.7.3 - User Categories | nynaevelan | Library Management | 0 | 02-03-2011 11:51 AM |
Mobile Content Server - search for or display series_index data? | Starson17 | Calibre | 5 | 01-08-2010 04:12 PM |