mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
Added announce flags to play and url methods.
This commit is contained in:
@@ -140,13 +140,3 @@ def is_allowed(tweet, clients):
|
||||
|
||||
def url_is_audio(u):
|
||||
return sound.URLPlayer.is_playable(u)
|
||||
|
||||
def old_url_is_audio(u):
|
||||
try:
|
||||
response = requests.head(u,allow_redirects=True)
|
||||
if 'audio' in str(response.headers['content-type']).lower():
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
except:
|
||||
log.exception("Exception while determining audio by HTTP headers")
|
||||
|
Reference in New Issue
Block a user