Skip to content

Feature: add quality command and retrytime & Refactor: move batch download into a separate function#101

Merged
WorldObservationLog merged 1 commit intoWorldObservationLog:v2from
uright008:feature/quality
Feb 13, 2026
Merged

Feature: add quality command and retrytime & Refactor: move batch download into a separate function#101
WorldObservationLog merged 1 commit intoWorldObservationLog:v2from
uright008:feature/quality

Conversation

@uright008
Copy link
Copy Markdown
Contributor

No description provided.

@uright008
Copy link
Copy Markdown
Contributor Author

Docs: add the quality command to README.md

@uright008 uright008 closed this Feb 13, 2026
Comment thread config.example.toml
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改配置文件需要同时修改 config.example.toml 的 version 值与 src/config.py 的CONFIG_VERSION 值

Comment thread src/config.py
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改配置文件需要同时修改 config.example.toml 的 version 值与 src/config.py 的CONFIG_VERSION 值

Comment thread src/quality.py Outdated
audio_qualities = await get_available_audio_quality(m3u8_url)
audio_qualities = [[aq.__dict__[field] for field in AudioQuality.model_fields.keys()] for aq in audio_qualities]
it(GlobalLogger).logger.info("Available audio qualities for song: {} - {}".format(metadata.artist,metadata.artist))
print(tabulate(audio_qualities, headers=Headers, tablefmt="grid"))
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应使用 print_formatted_text

Comment thread src/quality.py Outdated
bit_depth=playlist.media[0].extras.get("bit_depth", None)))
return result

async def rip_song_quality(url: Song):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print_song_quality/get_song_quality 为宜

Comment thread src/quality.py Outdated
m3u8_url = await it(WrapperManager).m3u8(url.id)
audio_qualities = await get_available_audio_quality(m3u8_url)
audio_qualities = [[aq.__dict__[field] for field in AudioQuality.model_fields.keys()] for aq in audio_qualities]
it(GlobalLogger).logger.info("Available audio qualities for song: {} - {}".format(metadata.artist,metadata.artist))
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

统一使用 f-string

@WorldObservationLog WorldObservationLog merged commit 2d0bc19 into WorldObservationLog:v2 Feb 13, 2026
@uright008 uright008 deleted the feature/quality branch February 13, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants