Skip to content

Commit

Permalink
Revert yt-dlp manual installation
Browse files Browse the repository at this point in the history
yt-dlp/yt-dlp#6369 was fixed and released upstream. `youtube-dl-exec`
always download the latest version, so it is already fixed here.

Docker images just need to be rebuilt.
  • Loading branch information
weltonrodrigo committed Mar 6, 2023
1 parent a4dbba7 commit 863822e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM ubuntu:22.10
RUN apt-get update && apt-get install -y sudo
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
RUN apt-get install -y python3
RUN apt-get install -y nodejs npm
RUN apt-get install --reinstall libgtk2.0-0 -y
RUN apt-get install -y libgbm-dev
Expand All @@ -16,16 +15,10 @@ COPY package.json /package.json
RUN npm ci
COPY src /src

# Temporarily get master yt-dlp for bug https://github.com/yt-dlp/yt-dlp/issues/6369
RUN apt install python3-pip -y
RUN python3 -m pip install https://codeload.github.com/yt-dlp/yt-dlp/zip/5b28cef72db3b531680d89c121631c73ae05354f

COPY entrypoint.sh /entrypoint.sh
COPY episode.json /episode.json

RUN chmod 777 /entrypoint.sh
ENV LC_ALL=en_US.UTF-8



ENTRYPOINT [ "/entrypoint.sh" ]
3 changes: 1 addition & 2 deletions src/youtube-yt-dlp/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { create: createYoutubeDl } = require('youtube-dl-exec')
const youtubedl = createYoutubeDl('/usr/local/bin/yt-dlp')
const youtubedl = require('youtube-dl-exec');
const env = require('../environment-variables');
const { AUDIO_FILE_FORMAT, THUMBNAIL_FILE_FORMAT } = require('../environment-variables');

Expand Down

0 comments on commit 863822e

Please sign in to comment.