Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么搭配Metube(ytdlp)? #513

Open
gygy opened this issue May 9, 2024 · 10 comments
Open

怎么搭配Metube(ytdlp)? #513

gygy opened this issue May 9, 2024 · 10 comments
Labels
bug Something isn't working question Further information is requested

Comments

@gygy
Copy link

gygy commented May 9, 2024

Ask your question here:

metube安装
services: metube: image: ghcr.io/alexta69/metube:latest container_name: metube restart: unless-stopped ports: - "8081:8081" #network_mode: host volumes: - /download/dlp:/downloads

download 配置
yt-dlp: type: ytdlp_download_provider enable: true http_endpoint_host: http://192.168.80.3 http_endpoint_port: 8081 auto_format_convet: false target_format: mp4 download_proxy: priority: 1 handle_host: - www.youtube.com - youtube.com - www.ted.com - youtu.be - m.youtube.com

错误日志
2024-05-10 06:16:19,798-INFO: Download general file with downloader(yt-dlp)
2024-05-10 06:16:19,804-INFO: Send general task:{"dataSource": "https://www.youtube.com/watch?v=r7h4zNC1-2M", "path": "VideoMixed/", "autoFormatConvert": false, "targetFormat": "mp4", "downloadProxy": null}
2024-05-10 06:16:19,808-ERROR: Send general task error:405

@gitautomator gitautomator bot added bug Something isn't working question Further information is requested labels May 9, 2024
@richardli1598
Copy link
Contributor

我试试

@richardli1598
Copy link
Contributor

之前没这么用过

@richardli1598
Copy link
Contributor

这个解决了吗?

@gygy
Copy link
Author

gygy commented Jun 26, 2024

还是一样错误。

下载器配置
`yt-dlp:
type: ytdlp_download_provider
enable: true
http_endpoint_host: http://192.168.80.3
http_endpoint_port: 8081
auto_format_convet: false
target_format: mp4
download_proxy:

By default, yt-dlp supports downloading resources from various websites.

Therefore, we set it with the highest priority.

priority: 1
handle_host:
- www.youtube.com
- youtube.com
- www.ted.com
- youtu.be
- m.youtube.com错误信息2024-06-26 21:57:38,962-INFO: Get webhook trigger:https://www.youtube.com/watch?v=xt9oG2dc1212xxx
2024-06-26 21:57:38,962-INFO: https://www.youtube.com/watch?v=xt9oG2dc1212xxxx belongs to youtube_source_provider
2024-06-26 21:57:38,974-INFO: filter downloader type:ytdlp_download_provider, names:['yt-dlp']
2024-06-26 21:57:38,974-INFO: download link type general, with provider size 1
2024-06-26 21:57:38,974-INFO: Download general file with downloader(yt-dlp)
2024-06-26 21:57:38,979-INFO: Send general task:{"dataSource": "https://www.youtube.com/watch?v=xt9oG2dc1212xxxx ", "path": "VideoMixed/", "autoFormatConvert": false, "targetFormat": "mp4", "downloadProxy": null}
2024-06-26 21:57:38,982-ERROR: Send general task error:405`

@richardli1598
Copy link
Contributor

ok,我看看

@richardli1598
Copy link
Contributor

richardli1598 commented Jun 26, 2024

我这边用 hack/install_ytdlp.sh 安装的,测试可以用,这是我的配置:

yt-dlp:
  type: ytdlp_download_provider
  enable: true
  http_endpoint_host: http://127.0.0.1
  http_endpoint_port: 3082
  auto_format_convet: false
  target_format: mp4
  download_proxy: http://192.168.31.175:7890
  # By default, yt-dlp supports downloading resources from various websites.
  # Therefore, we set it with the highest priority.
  priority: 0
  handle_host:
    - www.youtube.com
    - youtube.com
    - www.ted.com
    - youtu.be
    - m.youtube.com

可以确认一下你的配置吗?

http_endpoint_host: http://192.168.80.3
http_endpoint_port: 8081

这里的ip和端口是否正确

@richardli1598
Copy link
Contributor

richardli1598 commented Jun 27, 2024

哦,Metube和yt-dlp接口不一样,ks还没有适配。

有兴趣的话,可以适配下,实现几个接口就行

@gygy
Copy link
Author

gygy commented Jun 28, 2024

哦,Metube和yt-dlp接口不一样,ks还没有适配。

有兴趣的话,可以适配下,实现几个接口就行

yt dlp可以docker安装吗?Metube 主要优点有前台界面

@richardli1598
Copy link
Contributor

可以的

@gygy
Copy link
Author

gygy commented Jun 29, 2024

使用yt-dlp docker版本
services: yt-dlp-webui: image: marcobaobao/yt-dlp-webui container_name: yt-dlp-webui ports: - "3033:3033" volumes: - /tv/10-metube:/downloads - /app/yt-dlp-webui:/config # optional restart: unless-stopped

下载提示如下错误:
2024-06-29 18:50:44,985-INFO: Download general file with downloader(yt-dlp)
2024-06-29 18:50:44,992-INFO: Send general task:{"dataSource": "https://www.youtube.com/watch?v=33bZIOLX4do", "path": "VideoMixed/", "autoFormatConvert": false, "targetFormat": "mp4", "downloadProxy": null}
2024-06-29 18:50:44,998-ERROR: Send general task error:404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants