Git Product home page Git Product logo

Comments (7)

allejok96 avatar allejok96 commented on August 14, 2024 1

Brief explanation: mediator.jw.org returns JSON data which contain all info about the categories and videos. The script then downloads and parses the JSON file for each category (you see all the codenames in the output of the script).

A bash script is kind of a rough solution since there are languages, like Python, that support parsing JSON, but that's the only way I know!

from jw-scripts.

DrJeff avatar DrJeff commented on August 14, 2024

Ok solved it myself! I was not really looking at what was happening I was missing the dependency realpath! I'm running this in a VM of Ubuntu so the solution was apt-get install realpath yep that easy! :)

from jw-scripts.

allejok96 avatar allejok96 commented on August 14, 2024

Thanks for the feedback! I will add that as a dependency and add a note to the README.

And normally I wouldn't run it with sudo becasue that is an unnecessary risk, but I'm sure you already knew that

from jw-scripts.

DrJeff avatar DrJeff commented on August 14, 2024

How do you run this, a complete dump of the VOD main menu? Or individual Categories?

I started to write some code to download from the site and then stopped and just started to look for another solution today (this has been an ongoing problem for me) I was sick of downloading each one or streaming it. So my Plex is happy and I'm Happy! :) Thanks for this great software.

from jw-scripts.

DrJeff avatar DrJeff commented on August 14, 2024

Oh I meant how do you keep your own data as a Video On Demand main download of all at first, then run a cron job to update the total. Or do individual categories like Latest, VODChildren, VODTeenagers, and then update just those via cron jobs. I use plex so I want to download the actual files so I was going the route of the individual category to preserve the space, server load, and time. I have this running on my unRAID server so far I have it working on the main server and adding the files to the shares just beautifully. Can you use multiple --category= in one command?

from jw-scripts.

allejok96 avatar allejok96 commented on August 14, 2024

No you cannot use multiple categories in a single command. You will have to run the command multiple times. But it's a good idea...

I would do a dump of the categories I want at first, and then run a cron job with --latest. The latest videos will be from all categories though.

from jw-scripts.

DrJeff avatar DrJeff commented on August 14, 2024

Cool thanks! I got it running the way I want, I was hoping that the --latest did that!

from jw-scripts.

Related Issues (20)

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.