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

Song length limit #2

Open
ghost opened this issue May 21, 2020 · 2 comments
Open

Song length limit #2

ghost opened this issue May 21, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented May 21, 2020

A setting in config.json allowing the user to limit the duration of a song, good to prevent downloading 1 hour versions.

@ghost ghost added the enhancement New feature or request label May 21, 2020
@ghost
Copy link
Author

ghost commented May 21, 2020

The output of the video search module includes the amount of seconds of a video.
https://www.npmjs.com/package/yt-search
image

@ghost ghost pinned this issue May 21, 2020
@ghost
Copy link
Author

ghost commented May 21, 2020

It'd be possible to convert the minutes (data from config.json) to seconds and check if the video is too long. If it is, the app can move to the next search result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

0 participants