Fix NAS playback: Force IPv4 and use stable clients for yt-dlp
This commit is contained in:
parent
7a58c2357d
commit
b75b6b1aa6
1 changed files with 2 additions and 0 deletions
|
|
@ -626,6 +626,8 @@ async def stream_audio(id: str):
|
||||||
'geo_bypass': True, # Bypass geo restrictions
|
'geo_bypass': True, # Bypass geo restrictions
|
||||||
'socket_timeout': 30, # Timeout for sockets
|
'socket_timeout': 30, # Timeout for sockets
|
||||||
'retries': 3, # Retry on transient errors
|
'retries': 3, # Retry on transient errors
|
||||||
|
'force_ipv4': True, # Force IPv4 (Fixes NAS/Docker IPv6 issues)
|
||||||
|
'extractor_args': {'youtube': {'player_client': ['ios', 'android', 'web']}}, # Use stable clients
|
||||||
}
|
}
|
||||||
|
|
||||||
# Extract direct URL
|
# Extract direct URL
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue