conrad784 / docker-mediathekview-webinterface

X11rdp Version of Mediathekview
31 stars 12 forks source link

Automatic downloads #16

Closed lukengda closed 5 months ago

lukengda commented 2 years ago

Hi, i was trying to get automatic downloads with a periodic download updates to work.

This way i could set this container image as a service that would run on my server and download all configured subscriptions whenever a new episode is airing.

Have i missed something obvious? I will describe how far i have come:

Issues that i have with this approach:

Other ideas how to implement the scenario

Am i the only one with this feature request? Has anyone an idea where i could look at?

conrad784 commented 2 years ago

Because of this I am still running 13.2.1 in a custom container with a special binary where headless and fastauto was working. I remember finding this version somewhere in the forums some time ago. I am currently deleting the filmliste before running to download the most recent list.

lukengda commented 2 years ago

I am currently working on a fork that will provide a way to automate downloads with the latest version. I am willing to provide a PR back to here if this is desired.

conrad784 commented 2 years ago

Whereas I personally like to use the version you are trying to build, I guess this is out of scope of just providing a webinterface and might not be needed by most people using this container here. So if you are ready, please feel free to link it here, but I won't sell your work as mine. If its a 100% replacement I would just recommend people to switch and archive this project.

lukengda commented 2 years ago

Sorry for the reference spam... I was not aware that it would always push a new reference while i get my act together with my git setup. Take a look at the two new commits if you are interested in pulling those changes into your repository. I tested it with 13.8.0 because i ran into the same issue as #15 on my synology NAS.

If you would like me to provide an option to enable the update screen suppression in case someone uses the container manually, then i would like to propose an environment variable that needs to be set to enable the background script.

Changes: https://github.com/conrad784/docker-mediathekview-webinterface/compare/master...lukengda:master

conrad784 commented 2 years ago

I just tried it out and I think its a nice idea, but we are working against the mediathekview devs here... E.g. now starting 13.8.0 leads to this in the running container (the initial upgrade step is skipped thanks to your extension) image

conrad784 commented 2 years ago

From what I know, the normal refresh will not really refresh the list, if its not old enough? But I would be interested in this script if this is working instead of deleting the filme.json file before running the container.

jk-andersen commented 1 year ago

Hej, looking for the same solution in my setup. For now I restarted the container every night, this works as long as the version of Mediathek stays the same.

skycaptain commented 10 months ago

Like @lukengda, I also use MediathekView on my Synology NAS. The recent versions of Container Manager now support docker-compose, which allows for easy rebuilding and restarting through a scheduled task running docker-compose restart ... or docker-compose up --build --pull always ....

Additionally, I have configured MediathekView to automatically update the Filmliste (refreshed if older than 3 hours) and initiate subscription downloads after reloading. Since I have just implemented this configuration, I don't have long-term experience with it yet. Let's see if this approach holds the test of time.

lukengda commented 5 months ago

i am now also just using the latest version and pull + restart the container nightly. Closing this here ticket.