Git Product home page Git Product logo

jwtopodcast's Introduction

forthebadge

Convert JW.ORG medias into an audio RSS Podcast

Description

There's a wonderful pool of spiritual resources on JW.ORG. This program makes it possible to follow them easily using the practical features of a podcast player.

This will create a channel for each main page containing media resources on JW.ORG.

Quick installation

The file default_config.ini contains samples of the fields you need to add, especially the source for the medias.

  • rename default_config.ini to config.ini
  • run main.py (python3)
    • python3 main.py
  • you can add this line to your crontab to check for updates every week for example

The resulting URL will be http(s)://<general_url>/<podcast_file>.xml The XML file being locally copied to <general_local_path>

Add this URL to your podcast player. The podcast player will then reads the MP4 video directly from JW.ORG as audio. The lower quality (240p) is used, the size is almost the same as if it were pure audio (so it appeared useless to convert to audio).

Tested successfully with Podcast Republic

Personal installation

To find new sources you'd like to add yourself, go to:

  • JW.ORG / Library / Videos
  • Click on one of the Video categories (Family, Programs and Events, etc.)
  • Click on See All for one sub-category (Annual Meeting, Special Programs, etc.)
  • Extract the JSON main index storing all the information for this page:
    • Right-click : Inspect (Chrome)
    • In Inspect, click on the Network tab
    • Reload the page
    • Find a b.jw-cdn.org page starting with VOD (hover over the filename to see the full URL of the resource)
      • Right-click then Copy / Copy link address
    • Click on that resource: it should contain a category section, containing a media section.
    • The media section contains a list of resources, with items like title, firstPublished, etc.
    • That's the page you want to add to config.ini, in the jw_url field

TODO

  • maybe a module extracting the VOD JSON index from the public JW.ORG page

jwtopodcast's People

Contributors

bibelo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.