Skip to content

Commit

Permalink
v1.22.0
Browse files Browse the repository at this point in the history
v1.22.0
  • Loading branch information
awirthy committed Apr 24, 2023
1 parent c519832 commit bee6ed7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions DownloadYouTubev2.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ def NotifyYouTube(pName, pYouTubeURL):
ytvideo_title = data['title']
ytvideo_description = data['description']
ytvideo_uploader = data['uploader']
ytvideo_uploader_id = data['uploader_id']
ytvideo_uploader_url = data['uploader_url']
ytvideo_channel_id = data['channel_id']
ytvideo_channel_url = data['channel_url']
ytvideo_duration = 0
# ytvideo_uploader_id = data['uploader_id']
# ytvideo_uploader_url = data['uploader_url']
# ytvideo_channel_id = data['channel_id']
# ytvideo_channel_url = data['channel_url']
# ytvideo_duration = 0
ytvideo_webpage_url = data['webpage_url']
ytvideo_filesize = 0
# 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.21.0/DownloadYouTubev2.py >> /proc/1/fd/1;
python3 /opt/DownloadYouTubev2/DownloadYouTubev2-1.22.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 @@ -20,12 +20,12 @@ 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.21.0.tar.gz
RUN wget -O /tmp/DownloadYouTubev2.tar.gz https://github.com/awirthy/DownloadYouTubev2/archive/refs/tags/v1.22.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.21.0/DownloadYouTubev2.sh" >> /etc/periodic/15min/DownloadYouTubev2
RUN chmod 755 /opt/DownloadYouTubev2/DownloadYouTubev2-1.21.0/DownloadYouTubev2.sh
RUN echo "/opt/DownloadYouTubev2/DownloadYouTubev2-1.22.0/DownloadYouTubev2.sh" >> /etc/periodic/15min/DownloadYouTubev2
RUN chmod 755 /opt/DownloadYouTubev2/DownloadYouTubev2-1.22.0/DownloadYouTubev2.sh
RUN chmod 755 /etc/periodic/15min/DownloadYouTubev2
CMD ["crond", "-f","-l","8"]

Expand Down

0 comments on commit bee6ed7

Please sign in to comment.