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

Unable to fast forward streamed tracks #15

Open
callunaborealis opened this issue Apr 5, 2021 · 0 comments
Open

Unable to fast forward streamed tracks #15

callunaborealis opened this issue Apr 5, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@callunaborealis
Copy link
Owner

callunaborealis commented Apr 5, 2021

Already tried these solutions

Using the ytdl.downloadOptions.begin param

Doesn't work with audioonly. Also, reportedly does not work consistently for all videos. It was unrecommended for use by the author a few years back too.

Using the t search param

t search param is currently ignored by ytdl so it never passes through.

const trackUrl = (() => {
    if (ff) {
      const url = new URL(track.url);
      url.searchParams.set('t', `${ff}s`);
      return url.toString();
    }
    return track.url;
  })();

  const dispatcher = playlist.connection.play(ytdl(trackUrl, { filter: 'audioonly' }))

Even if this solution worked, I rather not use it as it would most likely trigger 429 errors if the user spams the fast forward function.

Possible solutions

  • Using miniget directly or exploring another plugin. Probably if I have the time for this.
@callunaborealis callunaborealis added help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Apr 5, 2021
callunaborealis added a commit that referenced this issue Apr 5, 2021
@callunaborealis callunaborealis added the help wanted Extra attention is needed label Apr 6, 2021
callunaborealis added a commit that referenced this issue Sep 13, 2021
callunaborealis added a commit that referenced this issue Oct 29, 2021
callunaborealis added a commit that referenced this issue Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant