Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 11-18-2024, 06:28 AM   #661
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,118
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Small bug: When sorting by series, the series index is sorted alphabetically and books may appear in the wrong order.

Click image for larger version

Name:	2024-11-18 07_26_13-Edit reading goal.png
Views:	57
Size:	5.5 KB
ID:	212062
ownedbycats is offline   Reply With Quote
Old 11-22-2024, 12:18 AM   #662
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,118
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Since it's stored as "Horses of Half-Moon Ranch [8]" in the json, I tried editing the series to pad with 0s - worked for older years, not the current.

It didn't really look good though so I reverted it.

Last edited by ownedbycats; 11-22-2024 at 12:30 AM.
ownedbycats is offline   Reply With Quote
Advert
Old 11-22-2024, 04:02 AM   #663
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,482
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Small bug: When sorting by series, the series index is sorted alphabetically and books may appear in the wrong order.
If you use utils.icu.numeric_sort_key as the key function when the list is sorted then the problem should go away.
chaley is offline   Reply With Quote
Old 11-22-2024, 10:15 AM   #664
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
Small bug: When sorting by series, the series index is sorted alphabetically and books may appear in the wrong order.
Please test the attached version. It should be fixed.

Quote:
Originally Posted by chaley View Post
If you use utils.icu.numeric_sort_key as the key function when the list is sorted then the problem should go away.
Thanks for the tip. I'm already overriding the __lt__ method in QTreeWidgetItem to fix other sorting issues, so it felt easier to deal with it the same way.

Spoiler:
Code:
class QTreeWidgetItem(QtWidgets.QTreeWidgetItem):
    def __lt__(self, other):
        column = self.treeWidget().sortColumn()
        if column == 4:  # Fix for Series sorting (account for series_index)
            first = self.text(4)
            first_series_name = re.sub(' \[\d+\.\d+\]', '', first)
            first_series_index = re.search('\[\d+\.\d+\]', first)
            second = other.text(4)
            second_series_name = re.sub(' \[\d+\.\d+\]', '', second)
            second_series_index = re.search('\[\d+\.\d+\]', second)
            if first_series_name == second_series_name and first_series_index and second_series_index:
                return float(first_series_index[0].strip('[]')) < float(second_series_index[0].strip('[]'))

Last edited by thiago.eec; 11-22-2024 at 12:30 PM. Reason: Removed test version. Fixed.
thiago.eec is offline   Reply With Quote
Old 11-22-2024, 12:11 PM   #665
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,118
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Sorting is working, but there's also another (hopefully) unintended effect lol.

Click image for larger version

Name:	2024-11-22 13_11_03-Edit reading goal.png
Views:	49
Size:	5.8 KB
ID:	212150
ownedbycats is offline   Reply With Quote
Advert
Old 11-22-2024, 12:20 PM   #666
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
Sorting is working, but there's also another (hopefully) unintended effect lol.
Do you mean the floating point? I added it to fix sorting for non integer series indexes. Using the last stable release, [2.5] would be listed before [2.0]. But I'll check if I can fix this in any other way.

Fixed. Test the attached version.

Last edited by thiago.eec; 11-25-2024 at 02:45 PM. Reason: Removed test version. New version released.
thiago.eec is offline   Reply With Quote
Old 11-22-2024, 01:23 PM   #667
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,118
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD


Click image for larger version

Name:	2024-11-22 14_23_04-Edit reading goal.png
Views:	53
Size:	5.5 KB
ID:	212152
ownedbycats is offline   Reply With Quote
Old 11-25-2024, 02:45 PM   #668
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Version 1.7.7 - 25 Nov 2024

- Fix the Series column sort not working properly

Last edited by thiago.eec; 11-25-2024 at 04:39 PM.
thiago.eec is offline   Reply With Quote
Old 11-29-2024, 02:01 AM   #669
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,118
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Odd calculation. I have a short book with two entries. I began it just before midnight and finished it just before 3 a.m.

Code:
      "page_count": 37,
      "read_pages": 37,
      "records": {
        "0": {
          "date": {
            "__class__": "datetime.datetime",
            "__value__": "2024-11-29T03:48:22.529778+00:00"
          },
          "read_pages": 0,
          "status": 0
        },
        "1": {
          "date": {
            "__class__": "datetime.datetime",
            "__value__": "2024-11-29T06:57:30.081154+00:00"
          },
          "read_pages": 37,
          "status": 100.0
        }
      },
However, the tooltip shows "finished in 2 days." I thought it should say 1?
ownedbycats is offline   Reply With Quote
Old 11-29-2024, 05:33 AM   #670
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
The algorithm does not count hours, only days. Since you have records in two different days, it counts as two.
Yours is an edge case, though. I'll see if I can come up with extra tests to detect scenarios like this.
thiago.eec is offline   Reply With Quote
Old 12-02-2024, 05:35 AM   #671
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 861
Karma: 11659320
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, Boox Note Air 2+
I tried to create a custom challenge for 2025, but the date selectors won't let me select any timeframe outside 2024.
rantanplan is offline   Reply With Quote
Old 12-02-2024, 06:11 AM   #672
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,118
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by rantanplan View Post
I tried to create a custom challenge for 2025, but the date selectors won't let me select any timeframe outside 2024.
That's intentional. Wait until 2025.
ownedbycats is offline   Reply With Quote
Old 01-01-2025, 08:04 AM   #673
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Version 1.7.8 - 01 Jan 2025

- Fix a bug in the Statistics dialog, when choosing 'All' and the new year is empty
thiago.eec is offline   Reply With Quote
Old 01-01-2025, 04:29 PM   #674
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,235
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Version 1.7.9 - 01 Jan 2025

- New feature: added a year dropdown menu to the 'Custom challenges' dialog
thiago.eec is offline   Reply With Quote
Old 01-02-2025, 08:08 AM   #675
sandrilea
Member
sandrilea began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2024
Location: Germany
Device: Pocketbook Touch Lux 3
When I used calibre/reading goal the first time in the new year I got an error message:
Invalid year: These books could not be updated/added to your reading goal because the reading date does not match the reading goal year.
One book was marked: Baustellen der Nation

That book was the only one I was "reading". It belongs to the annual challenge 2024 and to the custom challenge Sachbuch I created last year.

I tried to delete the custom challenge, to remove this book from the challenge, from the reading goal, nothing works. I even tried to edit the json-file but I don't want to mess it up as I don't know what I am doing.

What can I do?
Attached Files
File Type: txt Reading_Goal_Data_2025-01-01.txt (202.3 KB, 39 views)
sandrilea is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1430 Today 05:14 AM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
Reading Goal KyBunnies Audiobook Discussions 12 10-25-2017 05:29 PM


All times are GMT -4. The time now is 12:33 PM.


MobileRead.com is a privately owned, operated and funded community.