Fixed another issue with assrt. #1953

pull/1974/head v1.1.3-beta.0
morpheus65535 2 years ago
parent 560cbc0bd4
commit 0374790ed2

@ -75,7 +75,13 @@ class AssrtSubtitle(Subtitle):
r.raise_for_status()
result = r.json()
if not len(result['sub']['subs']):
logger.error('Can\'t get subtitle details')
return False
sub = result['sub']['subs'][0]
if not len(sub['filelist']):
logger.error('Can\'t get filelist from subtitle details')
return False
files = sub['filelist']
# first pass: guessit

Loading…
Cancel
Save