mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-22 21:59:49 +00:00
increase timeout for fetch track
This commit is contained in:
parent
0e6b7cccbf
commit
395800f280
@ -34,7 +34,7 @@ def create_playlist_file(track_list):
|
|||||||
def filter_tracks(tracks):
|
def filter_tracks(tracks):
|
||||||
def remove_unreach_tracks(track):
|
def remove_unreach_tracks(track):
|
||||||
try:
|
try:
|
||||||
r = requests.head(track['listen_url'], timeout=1)
|
r = requests.head(track['listen_url'], timeout=2)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
return 1
|
return 1
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user