Skip to content

Commit

Permalink
v1.21.0
Browse files Browse the repository at this point in the history
v1.21.0
  • Loading branch information
awirthy committed Apr 24, 2023
1 parent cd06fbd commit c519832
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions DownloadYouTubev2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import subprocess
import json
import requests
import feedparser
from email_validator import validate_email, EmailNotValidError
# from email_validator import EmailNotValidError
# from email_validator import EmailSynaxError
Expand Down
2 changes: 1 addition & 1 deletion DownloadYouTubev2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# /etc/cron.d/ytdl
#
python3 /opt/DownloadYouTubev2/DownloadYouTubev2-1.20.0/DownloadYouTubev2.py >> /proc/1/fd/1;
python3 /opt/DownloadYouTubev2/DownloadYouTubev2-1.21.0/DownloadYouTubev2.py >> /proc/1/fd/1;
echo "DONE" >> /proc/1/fd/1;
7 changes: 4 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ RUN python3 -m pip install -U yt-dlp
RUN pip install beautifulsoup4
RUN pip install lxml
RUN pip install email-validator
RUN pip install feedparser
RUN python3 -m pip install requests-html
RUN cp /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
RUN echo "Australia/Melbourne" > /etc/timezone
RUN wget -O /tmp/DownloadYouTubev2.tar.gz https://github.com/awirthy/DownloadYouTubev2/archive/refs/tags/v1.20.0.tar.gz
RUN wget -O /tmp/DownloadYouTubev2.tar.gz https://github.com/awirthy/DownloadYouTubev2/archive/refs/tags/v1.21.0.tar.gz
RUN mkdir -p /opt/DownloadYouTubev2
RUN tar zxf /tmp/DownloadYouTubev2.tar.gz -C /opt/DownloadYouTubev2
RUN echo "#!/bin/sh" >> /etc/periodic/15min/DownloadYouTubev2
RUN echo "/opt/DownloadYouTubev2/DownloadYouTubev2-1.20.0/DownloadYouTubev2.sh" >> /etc/periodic/15min/DownloadYouTubev2
RUN chmod 755 /opt/DownloadYouTubev2/DownloadYouTubev2-1.20.0/DownloadYouTubev2.sh
RUN echo "/opt/DownloadYouTubev2/DownloadYouTubev2-1.21.0/DownloadYouTubev2.sh" >> /etc/periodic/15min/DownloadYouTubev2
RUN chmod 755 /opt/DownloadYouTubev2/DownloadYouTubev2-1.21.0/DownloadYouTubev2.sh
RUN chmod 755 /etc/periodic/15min/DownloadYouTubev2
CMD ["crond", "-f","-l","8"]

Expand Down

0 comments on commit c519832

Please sign in to comment.