Skip to content

Commit

Permalink
v1.06.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awirthy committed Mar 3, 2023
1 parent 60ed0bd commit 5881242
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DownloadYouTubev2.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ def NotifyYouTube(pName, pYouTubeURL):
ytvideo_uploader_url = data['uploader_url']
ytvideo_channel_id = data['channel_id']
ytvideo_channel_url = data['channel_url']
ytvideo_duration = data['duration']
ytvideo_duration = 0
ytvideo_webpage_url = data['webpage_url']
ytvideo_filesize = data['duration']
ytvideo_filesize = 0
ytvideo_thumbnail = data['thumbnail']

print("ytvideo_uid: " + ytvideo_uid)
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.05.0/DownloadYouTubev2.py >> /proc/1/fd/1;
python3 /opt/DownloadYouTubev2/DownloadYouTubev2-1.06.0/DownloadYouTubev2.py >> /proc/1/fd/1;
echo "DONE" >> /proc/1/fd/1;
6 changes: 3 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ RUN pip install email-validator
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.05.0.tar.gz
RUN wget -O /tmp/DownloadYouTubev2.tar.gz https://github.com/awirthy/DownloadYouTubev2/archive/refs/tags/v1.06.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.05.0/DownloadYouTubev2.sh" >> /etc/periodic/15min/DownloadYouTubev2
RUN chmod 755 /opt/DownloadYouTubev2/DownloadYouTubev2-1.05.0/DownloadYouTubev2.sh
RUN echo "/opt/DownloadYouTubev2/DownloadYouTubev2-1.06.0/DownloadYouTubev2.sh" >> /etc/periodic/15min/DownloadYouTubev2
RUN chmod 755 /opt/DownloadYouTubev2/DownloadYouTubev2-1.06.0/DownloadYouTubev2.sh
RUN chmod 755 /etc/periodic/15min/DownloadYouTubev2
CMD ["crond", "-f","-l","8"]

Expand Down

0 comments on commit 5881242

Please sign in to comment.