Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Publications not loading #73

Open
BenShelton opened this issue Jun 3, 2022 · 1 comment
Open

[Bug] Publications not loading #73

BenShelton opened this issue Jun 3, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@BenShelton
Copy link
Owner

Packages & versions

Library Media 0.11

Describe the bug

Recent weeks do not load either the watchtower or oclm.

Reproduction steps

N/A

Expected behavior

N/A

Additional context

N/A

@BenShelton BenShelton added the bug Something isn't working label Jun 3, 2022
@BenShelton BenShelton self-assigned this Jun 3, 2022
@BenShelton
Copy link
Owner Author

So they've changed the implementation yet again. It looks like the current steps are now needed in addition to the downloading of the catalog itself:

  • Download the JSON from https://app.jw-cdn.org/catalogs/publications/v4/manifest.json
  • Extract the current key which is some uuid
    • If uuid already exists in downloaded info then stop here
  • Download the current delta JSON from https://app.jw-cdn.org/catalogs/publications/v4/{uuid}/signed-delta.info.json.gz, extract it
  • Loop through the keys, the JSON is an object with keys like:
"1941978": {
    "created": "2021-05-19T05:20:33+00:00",
    "nameFragment": "delta.1941978.jwl.zip",
    "signature": "76de376b5e4159066fb0771f102870a12498e37e8ee4db89d7d486674a278d76",
    "size": 23287
  },
  • For each file, if it is downloaded then skip
  • Download the delta from https://app.jw-cdn.org/catalogs/publications/v4/{uuid}/{nameFragment}, extract it
  • Delta is a list of SQL commands, run each command sequentially on the media catalog

Hopefully that will result in all the necessary publications being available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant