Skip to content

Commit f0f4861

Browse files
feat: Implement core ripping logic with enhanced task management and status update callbacks.
1 parent 710276f commit f0f4861

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/rip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ async def rip_song(self, url: Song, codec: str, flags: Flags = Flags(),
119119
return
120120

121121
if not m3u8_url:
122+
task.logger.logger.error("Lossless audio does not exist")
122123
task.update_status(Status.FAILED)
123-
task.error = Exception("Failed to fetch M3U8 URL")
124+
task.error = Exception("Lossless audio does not exist")
124125
return
125126

126127
try:
@@ -252,7 +253,6 @@ async def _rip_song_legacy(self, task: Task, timeout_sec: int = 0):
252253
try:
253254
task.m3u8Info = await legacy_extract_media(await it(WrapperManager).webPlayback(task.adamId))
254255

255-
task.logger.logger.info("Waiting for available download streams...")
256256
async with it(WebAPI).download_lock:
257257
async def _phase2():
258258
task.logger.downloading()

0 commit comments

Comments
 (0)