Skip to content

Commit

Permalink
fix: exclude vp09 for download
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Jul 7, 2023
1 parent b85b559 commit 7ba4aa2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion ytdlbot/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
Expand Down

0 comments on commit 7ba4aa2

Please sign in to comment.