-
Notifications
You must be signed in to change notification settings - Fork 155
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
Creator controls and queue management and Fix issue #49 #38
Conversation
please add back the pnpm-lock |
added it back |
const res = await youtubesearchapi.GetVideoDetails(extractedId); | ||
|
||
// Check if the user is not the creator | ||
if (user.id !== data.creatorId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I added this comment uin the other PR
creator should be able to add unlimited links to the queue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
creator is able to add unlimited links to the queue, only a normal user is rate limited
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only applying rate limits and duplicity checks for !creator
Tag me for review when done @Bot-Rakshit |
@hkirat good for review, LGTM |
this pr also solves #49 |
} catch(e) { | ||
|
||
const res = await fetch("/api/streams/empty-queue", { | ||
method: "POST" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have used it here @hkirat
/bounty $100 |
#Description:
Added creator-specific controls:
Implemented an "Empty Queue" button for creators
Added a confirmation dialog for emptying the queue
Creators can now remove individual songs from the queue
Added rate limiting( not for creators):
Normal users will get rate limited, they can add only 2 songs per 2 minutes, and 5 songs in 10 minutes ( can be changed according to connivence)
3.Avoided Duplicate songs ( not for creators)
if the same song has been added in the last 10 minutes it throws an error to the user.