Feature: add quality command and retrytime & Refactor: move batch download into a separate function#101
Merged
WorldObservationLog merged 1 commit intoWorldObservationLog:v2from Feb 13, 2026
Conversation
b1f0715 to
46617b2
Compare
Contributor
Author
|
Docs: add the quality command to README.md |
WorldObservationLog
requested changes
Feb 13, 2026
There was a problem hiding this comment.
修改配置文件需要同时修改 config.example.toml 的 version 值与 src/config.py 的CONFIG_VERSION 值
There was a problem hiding this comment.
修改配置文件需要同时修改 config.example.toml 的 version 值与 src/config.py 的CONFIG_VERSION 值
| 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")) |
There was a problem hiding this comment.
应使用 print_formatted_text
| bit_depth=playlist.media[0].extras.get("bit_depth", None))) | ||
| return result | ||
|
|
||
| async def rip_song_quality(url: Song): |
There was a problem hiding this comment.
print_song_quality/get_song_quality 为宜
| 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)) |
46617b2 to
e49da73
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.