Skip to content

Commit

Permalink
[YTDLPWrapper]
Browse files Browse the repository at this point in the history
* add usenetrc

Close #3228
  • Loading branch information
jbleyel committed Feb 24, 2024
1 parent 7392656 commit fd3a0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Plugins/Extensions/YTDLPWrapper/plugin.py
Expand Up @@ -17,7 +17,7 @@ def zap(session, service, **kwargs):
url = url.replace("YT-DLP%3a//", "")
url = url.replace("%3a", ":")
try:
ydl = YoutubeDL({"format": "b", "no_color": True})
ydl = YoutubeDL({"format": "b", "no_color": True, "usenetrc": True})
result = ydl.extract_info(url, download=False)
result = ydl.sanitize_info(result)
if result and result.get("url"):
Expand Down

0 comments on commit fd3a0f3

Please sign in to comment.