Closed mtdvlpr closed 1 year ago
There it is! That's why I had disabled it in the previous version, now I remember. Related to #744 and #745. There's no easy fix here from a "logic" point of view here, from what I can see. Media from refs can either be processed (like what was needed for the picture in #744) or ignored (like for video in the 5 min. talk during the week of Dec. 26-Jan 1st). The only thing I can think of, would be to ignore videos for ref media (as videos to be shown during a meeting will always be linked to "directly" in the JWPUB db, not from refs), while processing images normally (sometimes, images from refs are used by speakers/students and can contain useful information).
I'm confused. Isn't it only supposed to do that for internal refs of internal refs. The lff book isn't an internal ref, right?
No, I'm confused. 😕
Document
referred to from an InternalLink
.This current issue is [adjusts glasses] a video being fetched from a Document
referred to from the Extract
table. The problem is that this is exactly the same was that the CBS media gets fetched.
Programmatically, there's no way to distinguish from Extract
numbers 76 and 79...
Yeah, that's what I thought! But we do provide the 2 with a different paragraph number. The cbs has par nr 8 and the bible study would have par nr 5 for example. Maybe that can be used to safely distinguish between the two. We should make sure that this will always work as intended, since it's a bit of a dirty trick
Yeah, some sort of "get number of paragraphs
in main document":
Combined with "only include videos from current Extract
if paragraph number of Extract
is gte number of paragraphs
minus 4":
Like you said, it's a dirty trick, but it would work.
Yeah, btw, what do you use to get this UI for the jwpub database?
Yeah, btw, what do you use to get this UI for the jwpub database?
https://sqlitebrowser.org/dl/ - Free and cross-platform!
Describe the bug When a bible study for the apply yourself portion of the midweek meeting includes images/videos in the referenced lff lesson, they are included in the media list. Since the instructions specify that such videos are not to be played during the assignment but merely referenced, they should preferably not be included in the media list.
To Reproduce Steps to reproduce the behavior:
Expected behavior The media referenced for a 5-min bible study should be ignored
System specs (please complete the following information):
Additional context @sircharlo, since you have more knowledge about the fetching logic, maybe you know an easy fix for this. The only solution I can think of is comparing the paragraph numbers of all referenced lff media and only using the media of the latest paragraph (since that's the congregation bible study).