Skip to content

Commit

Permalink
v0.27.0
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
awirthy committed Feb 21, 2023
1 parent e89bc9d commit 68fb218
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion DownloadYouTubePlex.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def Run_YTDLP(sMediaFolder, pName, pChannelID, pFileFormat, pDownloadArchive, pF
# ======================================================== #

pubDate = time.strftime('%Y%m%d%H%M')
bashcmd = "yt-dlp -v -o " + sMediaFolder + pChannelID + "/Season_1/s1.e%(upload_date)s%(duration)s%(like_count)s_%(id)s.%(ext)s --write-info-json --no-write-playlist-metafiles --playlist-items 1,2 --restrict-filenames --download-archive " + pDownloadArchive + " --add-metadata --merge-output-format " + pFileFormat + " --format " + pFileQuality + " --abort-on-error --abort-on-unavailable-fragment --no-overwrites --continue --write-description " + pYouTubeURL
bashcmd = "yt-dlp -v -o " + sMediaFolder + pChannelID + "/Season_1/s1.e%(upload_date)s%(duration)s%(like_count)s_%(id)s.%(ext)s --write-info-json --no-write-playlist-metafiles --playlist-items 1,2 --restrict-filenames --download-archive " + pDownloadArchive + " --add-metadata --no-embed-thumbnail --merge-output-format " + pFileFormat + " --format " + pFileQuality + " --abort-on-error --abort-on-unavailable-fragment --no-overwrites --continue --write-description " + pYouTubeURL
# bashcmd = "yt-dlp -v -o '" + sMediaFolder + pChannelID + "/%(id)s.%(ext)s' --write-info-json --external-downloader aria2c --external-downloader-args '-c -j 10 -x 10 -s 10 -k 1M' --playlist-items 1,2,3,4,5,3,4,5 --restrict-filenames --download-archive '" + pDownloadArchive + "' --add-metadata --merge-output-format " + pFileFormat + " --format " + pFileQuality + " --abort-on-error --abort-on-unavailable-fragment --no-overwrites --continue --write-description " + pYouTubeURL
print ('------------------ \n\n')
print("bashcmd: " + bashcmd)
Expand Down Expand Up @@ -170,6 +170,7 @@ def Run_YTDLP(sMediaFolder, pName, pChannelID, pFileFormat, pDownloadArchive, pF
ytvideo_webpage_url = data['webpage_url']
ytvideo_filesize = data['filesize_approx']
ytvideo_thumbnail = data['thumbnail']
ytvideo_thumbnail = "https://i.ytimg.com/vi/" + ytvideo_uid + "/maxresdefault.jpg"

print("ytvideo_uid: " + ytvideo_uid)
print("ytvideo_title: " + ytvideo_title)
Expand Down
2 changes: 1 addition & 1 deletion DownloadYouTubePlex.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# /etc/cron.d/ytdl
#
python3 -m pip install -U yt-dlp
python3 /opt/DownloadYouTubePlex/DownloadYouTubePlex-0.26.0/DownloadYouTubePlex.py >> /proc/1/fd/1;
python3 /opt/DownloadYouTubePlex/DownloadYouTubePlex-0.27.0/DownloadYouTubePlex.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/DownloadYouTubePlex.tar.gz https://github.com/awirthy/DownloadYouTubePlex/archive/refs/tags/v0.26.0.tar.gz
RUN wget -O /tmp/DownloadYouTubePlex.tar.gz https://github.com/awirthy/DownloadYouTubePlex/archive/refs/tags/v0.27.0.tar.gz
RUN mkdir -p /opt/DownloadYouTubePlex
RUN tar zxf /tmp/DownloadYouTubePlex.tar.gz -C /opt/DownloadYouTubePlex
RUN echo "#!/bin/sh" >> /etc/periodic/15min/DownloadYouTubePlex
RUN echo "/opt/DownloadYouTubePlex/DownloadYouTubePlex-0.26.0/DownloadYouTubePlex.sh" >> /etc/periodic/15min/DownloadYouTubePlex
RUN chmod 755 /opt/DownloadYouTubePlex/DownloadYouTubePlex-0.26.0/DownloadYouTubePlex.sh
RUN echo "/opt/DownloadYouTubePlex/DownloadYouTubePlex-0.27.0/DownloadYouTubePlex.sh" >> /etc/periodic/15min/DownloadYouTubePlex
RUN chmod 755 /opt/DownloadYouTubePlex/DownloadYouTubePlex-0.27.0/DownloadYouTubePlex.sh
RUN chmod 755 /etc/periodic/15min/DownloadYouTubePlex
CMD ["crond", "-f","-l","8"]

Expand Down

0 comments on commit 68fb218

Please sign in to comment.