Skip to content

Commit 27dc8a5

Browse files
authored
no log: Fixed Assrt provider failing to download single-file subtitles
1 parent 70bd5d5 commit 27dc8a5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • custom_libs/subliminal_patch/providers

custom_libs/subliminal_patch/providers/assrt.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ def _get_detail(self):
9494
return False
9595
sub = result['sub']['subs'][0]
9696
if not len(sub['filelist']):
97+
# Single-file subtitle: URL is directly in the sub entry
98+
if 'url' in sub and sub['url']:
99+
self._detail = sub
100+
return sub
97101
logger.error('Can\'t get filelist from subtitle details')
98102
return False
99103
files = sub['filelist']

0 commit comments

Comments
 (0)