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

Allows yt-dlp usage as another youtube-dl fork #90

Merged
merged 1 commit into from
Oct 10, 2021

Conversation

Miezhiko
Copy link
Contributor

@vilgotf
Copy link
Contributor

vilgotf commented Aug 27, 2021

How about instead of having one feature / yt-dl backend we could expose a compile-time env variable (using std::option_env!, default to youtube-dl if unset)?

@Miezhiko
Copy link
Contributor Author

Miezhiko commented Aug 27, 2021

for me personally it's more handy to depend with feature, easier than making build script involving env variable for that

features = [ "yt-dlp"
           , "serenity-rustls"
           , "driver"
           , "gateway"
           ]

another possibility is to allow override/provide path to youtube-dl app in runtime instead of compile time but actually I still prefer just to specify feature, I'd mark youtube-dlc as deprecated but don't know how.

@vilgotf
Copy link
Contributor

vilgotf commented Aug 27, 2021

Note that build scripts for env vars won't be necessary as of 1.56 (source).

@FelixMcFelix
Copy link
Member

FelixMcFelix commented Aug 27, 2021 via email

@Miezhiko
Copy link
Contributor Author

@FelixMcFelix mawa is me, I didn't understood idea with ytdl_like function, but env variable with what @vilgotf posted in last message could be fine I think, however still possible known forks should be documented and yet I think dlc should be marked as deprecated and maybe for only one or two forks current way is okay.

@FelixMcFelix FelixMcFelix added enhancement New feature or request input Relates to raw audio data handling. labels Oct 10, 2021
Copy link
Member

@FelixMcFelix FelixMcFelix left a comment

Choose a reason for hiding this comment

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

Apologies it's been so long to get to this. This is simple enough for now; I'm not fond of this design in the long run, so I'd like to change/deprecate it on next before long to something more generic.

@FelixMcFelix FelixMcFelix merged commit 6fcb196 into serenity-rs:current Oct 10, 2021
@Miezhiko Miezhiko deleted the yt-dlp branch October 11, 2021 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request input Relates to raw audio data handling.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants