Update scdl.py (#296)

master
kellergoech 2019-12-19 12:32:31 +01:00 committed by Ronan
parent a251a82a9a
commit 16f414d7cc
1 changed files with 4 additions and 0 deletions

View File

@ -443,6 +443,10 @@ def download_original_file(track, title):
if r.status_code == 401:
logger.info('The original file has no download left.')
return None
if r.status_code == 404:
logger.info('Could not get name from stream - using basic name')
return None
# Find filename
d = r.headers.get('content-disposition')