Skip to content

Add track types to audio streams#1041

Merged
AudricV merged 8 commits intoTeamNewPipe:devfrom
Theta-Dev:audio-track-type
Mar 27, 2023
Merged

Add track types to audio streams#1041
AudricV merged 8 commits intoTeamNewPipe:devfrom
Theta-Dev:audio-track-type

Conversation

@Theta-Dev
Copy link
Copy Markdown
Contributor

I replaced the descriptiveAudio property of streams added by #1026 with the enum property audioTrackType.

The reason for this is that YouTube supports multiple types of audio streams. The ones that I have encountered are:

  • Original audio (acont=original)
  • Dubbed (acont=dubbed)
  • Descriptive audio (acont=descriptive)

The new property allows creating unique, localized names for every audio track without relying on the trackName which is always fetched in English.

Copy link
Copy Markdown
Member

@AudricV AudricV left a comment

Choose a reason for hiding this comment

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

Thanks for your PR!

Comment thread extractor/src/main/java/org/schabi/newpipe/extractor/stream/AudioTrackType.java Outdated
Comment thread extractor/src/test/java/org/schabi/newpipe/downloader/DownloaderFactory.java Outdated
@Theta-Dev
Copy link
Copy Markdown
Contributor Author

Alright, I have fixed the issues.

@Theta-Dev Theta-Dev requested a review from AudricV March 20, 2023 12:37
@AudricV AudricV requested review from FireMasterK and Stypox March 20, 2023 12:47
@AudricV AudricV dismissed their stale review March 20, 2023 12:47

Outdated review

Copy link
Copy Markdown
Member

@FireMasterK FireMasterK left a comment

Choose a reason for hiding this comment

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

I think it looks great for the most part!

Copy link
Copy Markdown
Member

@AudricV AudricV left a comment

Choose a reason for hiding this comment

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

Almost good, you only have some small changes remaining (the ones below + the ones of FireMasterK). Thanks again!

Comment thread extractor/src/main/java/org/schabi/newpipe/extractor/stream/AudioTrackType.java Outdated
Comment thread extractor/src/main/java/org/schabi/newpipe/extractor/stream/AudioTrackType.java Outdated
Comment thread extractor/src/main/java/org/schabi/newpipe/extractor/stream/AudioTrackType.java Outdated
@Theta-Dev Theta-Dev requested review from AudricV and removed request for Stypox March 21, 2023 15:05
Copy link
Copy Markdown
Member

@AudricV AudricV left a comment

Choose a reason for hiding this comment

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

I just pushed a commit removing unused imports, public method modifiers and the IP you used to generate stream URLs in YoutubeParsingHelperTest, which were the remaining changes that were needed to be done for me.

The commits of this PR will be squashed and merged to avoid unneeded mocks additions and deletions to the Git repository.

Thanks again!

@AudricV AudricV changed the title Add audio track type enum Add track types to audio streams Mar 27, 2023
@AudricV AudricV added enhancement New feature or request YouTube Service, https://www.youtube.com/ labels Mar 27, 2023
@AudricV AudricV merged commit 8d1303e into TeamNewPipe:dev Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request YouTube Service, https://www.youtube.com/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants