diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..c5cf3a11 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,8 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: pip3 install -r requirements.txt diff --git a/ytdlbot/downloader.py b/ytdlbot/downloader.py index d34bd9d2..8dcb6f71 100644 --- a/ytdlbot/downloader.py +++ b/ytdlbot/downloader.py @@ -171,7 +171,7 @@ def ytdl_download(url: str, tempdir: str, bm, **kwargs) -> list: ] formats = [ # webm and av01 are not streamable on telegram, so we'll extract mp4 and not av01 codec - "bestvideo[ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/bestvideo+bestaudio", + "bestvideo[ext=mp4][vcodec!*=av01][vcodec!*=vp09]+bestaudio[ext=m4a]/bestvideo+bestaudio", "bestvideo[vcodec^=avc]+bestaudio[acodec^=mp4a]/best[vcodec^=avc]/best", None, ]