diff --git a/Dockerfile.debian b/Dockerfile.debian index 9a55040..571492c 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -31,7 +31,7 @@ RUN echo "##### Downloading Runtime Packages #####" && \ yes | python3 -m pip uninstall wheel setuptools && \ echo "##### Cron setup #####" && \ # Execute the cron job every 2 hours at 15 mins after. - echo "0 */12 * * * root /app/ta-wrapper.sh" >> /etc/crontab && \ + echo "0 */8 * * * root /app/ta-wrapper.sh" >> /etc/crontab && \ echo "##### Removing Unnecessary NGINX Files#####" && \ rm -rf \ /etc/init.d/* \ diff --git a/rootfs/app/PlutoTV/PlutoTV/pluto_tv.py b/rootfs/app/PlutoTV/PlutoTV/pluto_tv.py index 59d76ea..51587e2 100644 --- a/rootfs/app/PlutoTV/PlutoTV/pluto_tv.py +++ b/rootfs/app/PlutoTV/PlutoTV/pluto_tv.py @@ -20,7 +20,6 @@ from xsdata.models.xsd import Any from PlutoTV import ptvChannels -import ssl import urllib from urllib.request import urlopen @@ -60,10 +59,12 @@ class PlutoTv: TV_OBJECT: xmltv.Tv def main(self): + _start_time = datetime.now().replace(minute=0, second=0, microsecond=0) + _stop_time = _start_time + timedelta(days=1) self.GUIDE_URL =\ self.GUIDE_URL + \ - '?start={}'.format(self.get_proper_date_time(datetime.today(), _URL_TIME_FORMAT)) + \ - '&stop={}'.format(self.get_proper_date_time(datetime.today() + timedelta(days=1), _URL_TIME_FORMAT)) + \ + '?start={}'.format(self.get_proper_date_time(_start_time, _URL_TIME_FORMAT)) + \ + '&stop={}'.format(self.get_proper_date_time(_stop_time, _URL_TIME_FORMAT)) + \ '&appName={}'.format('web') + \ '&appVersion={}'.format('unknown') + \ '&appStoreUrl={}'.format('unknown') + \