rmcrackan/Libation

Add "Included until" field for books that are free and have an expiration date.

Closed this issue · 1 comments

Describe the solution you'd like
For free books that you can add to your library some have an expiration date. The expiration date is shown as "Included until 10/07(whatever the date is)". It would be nice to be able to filter books with expiration dates so you can download them before they expire.

Additional context
Here is how it looks in the grid view

Image

and selected book view

Image

In the json file you are looking for the end_date in the plans array

  "plans": [
        {
          "customer_eligible": null,
          "detail_plan_names": null,
          "end_date": "2099-12-31T00:00:00Z",
          "plan_name": "AccessViaMusic",
          "start_date": "1970-01-01T00:00:00Z"
        },
        {
          "customer_eligible": null,
          "detail_plan_names": null,
          "end_date": "2025-10-07T12:00:00Z",
          "plan_name": "US Minerva",
          "start_date": "2024-11-15T18:27:00.00027Z"
        },
        {
          "customer_eligible": null,
          "detail_plan_names": null,
          "end_date": "2025-10-27T18:31:29.948030687Z",
          "plan_name": "SpecialBenefit",
          "start_date": "2025-09-26T18:31:29.948030687Z"
        }
      ],

For me the correct end_date is for the plan_name = "US Minerva"
I am not sure what SpecialBenefit plan name means but if you exclude both SpecialBenefit and AccessViaMusic you should get the correct data. I have searched my json file and this is the conclusion I have come to by looking at the plans array for many of my books with an end_date. Maybe include the Special Benefit date as well, I am guessing some users have this special benefit which extends the end_date.

merged #1388