Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ie/tiktok] Fix audio-only format extraction #7712

Merged
merged 4 commits into from Jul 29, 2023

Conversation

bashonly
Copy link
Member

@bashonly bashonly commented Jul 27, 2023

The original patch only fixed slideshows w/ mp3 audio, not m4a formats. mb

Closes #6608

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

Copilot Summary

🤖 Generated by Copilot at bd4d4b1

Summary

🎵🔄🎞️

Improved TikTok extractor to support more audio formats and metadata, and added tests for slideshow videos. Renamed mp3_meta to audio_meta in yt_dlp/extractor/tiktok.py and updated references.

mp3_meta grows
more formats and metadata
autumn tests updated

Walkthrough

  • Rename and modify mp3_meta function to audio_meta to support more audio formats and metadata (link, link)
  • Add skip key to test case for unavailable video in tiktok.py (link)
  • Update md5, creator, artist and track fields of test case for video with mp3 format in tiktok.py (link, link)
  • Add new test case for video with m4a format and slideshow in tiktok.py (link)

@bashonly bashonly added the site-bug Issue with a specific website label Jul 27, 2023
'ext': 'mp3',
'acodec': 'mp3',
'ext': ext,
'acodec': 'aac' if ext == 'm4a' else ext,
Copy link
Member

Choose a reason for hiding this comment

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

Many IEs incl youtube just sets acodec=m4a. So either's fine

@bashonly bashonly merged commit b09bd0c into yt-dlp:master Jul 29, 2023
13 checks passed
@bashonly bashonly deleted the fix/tiktok-audio branch December 7, 2023 15:11
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TikTok] Image gallery format listed as having a vcodec when it's only audio
2 participants