fix: skip insterval works
This commit is contained in:
parent
08b9492455
commit
4f9261505e
@ -403,19 +403,20 @@ class Page:
|
|||||||
self.LOGGER.info(f"{song.option_string} already exists, thus not downloading again.")
|
self.LOGGER.info(f"{song.option_string} already exists, thus not downloading again.")
|
||||||
return r
|
return r
|
||||||
|
|
||||||
source = None
|
skip_intervals = []
|
||||||
if not found_on_disc:
|
if not found_on_disc:
|
||||||
for source in sources:
|
for source in sources:
|
||||||
r = self.download_song_to_target(source=source, target=temp_target, desc=song.option_string)
|
r = self.download_song_to_target(source=source, target=temp_target, desc=song.option_string)
|
||||||
|
|
||||||
if not r.is_fatal_error:
|
if not r.is_fatal_error:
|
||||||
|
skip_intervals = self.get_skip_intervals(song, source)
|
||||||
break
|
break
|
||||||
|
|
||||||
if temp_target.exists:
|
if temp_target.exists:
|
||||||
r.merge(self._post_process_targets(
|
r.merge(self._post_process_targets(
|
||||||
song=song,
|
song=song,
|
||||||
temp_target=temp_target,
|
temp_target=temp_target,
|
||||||
interval_list=[] if found_on_disc else self.get_skip_intervals(song, source)
|
interval_list=skip_intervals,
|
||||||
))
|
))
|
||||||
|
|
||||||
return r
|
return r
|
||||||
|
Loading…
Reference in New Issue
Block a user