darioragusa / JWLibrary-MediaInserter

Add custom images or videos to the Watchtower or the Meeting Workbook.
MIT License
21 stars 3 forks source link

Ability to inject Media in any jwpub? #9

Closed githubllff closed 2 years ago

githubllff commented 2 years ago

Hi. Can your app inject media into any jwpub? My use case would be the following: I have a collection of various charts/images that have been published that help explain complex subjects. Eg the picture from the WT this week. Having a publication on all my devices that contains all of these in one place would be amazing.

darioragusa commented 2 years ago

Hi, to answer the first question: teorically yes, if you see here the list is filtered. So for example, you insert an image in a publication and then export the .jwpub file to use it elsewhere. It should be doable but only for images as the videos are stored separately.

githubllff commented 2 years ago

Hi Dario

Very clever thank you. Is there any chance you could do a release for windows without the filter on? And then this might be a very silly question. How do you export a jwpub from jwlibrary so that you can import on another device?

Thanks, Luke

On Mon, Jul 18, 2022 at 2:15 PM Dario Ragusa @.***> wrote:

Hi, to answer the first question: teorically yes, if you see here https://github.com/darioragusa/JWLibrary-MediaInserter/blob/7231e3a65aa0be3e959ac658d26b39165d4d4b53/JWLibrary-MediaInserter/Modules/FindPubs.vb#L51 the list is filtered. So for example, you insert an image in a publication and then export the .jwpub file to use it elsewhere. It should be doable but only for images as the videos are stored separately.

— Reply to this email directly, view it on GitHub https://github.com/darioragusa/JWLibrary-MediaInserter/issues/9#issuecomment-1187254181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNCZSCQNY2DUFJH6GRCGDTVUVDH5ANCNFSM5335LZEQ . You are receiving this because you authored the thread.Message ID: @.***>

darioragusa commented 2 years ago

Yes, I will make a new release with the ability to turn the filter on/off. .jwpub files are just zip that contains another zip and the content of this file is stored inside a folder in C:\Users\user\AppData\Local\Packages\WatchtowerBibleandTractSo.45909CDBADF3C_5rz59y55nfz3e\LocalState\Publications\ (IDK if "45909CDBADF3C_5rz59y55nfz3e" is different in different machines). I think that zipping it back should work