-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
feat: Add Shorts endpoint #512
Conversation
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.
In general the pull request looks good, haven't tested it, just a few nits around the code style, performance and not parsing tracking information.
I'll let Luan decide on the naming of things, e.g. the watch route not fully matching the path name and a few mentions of renderer
in properties, which YouTube.js tries to stay away from, unless there is already a field that has it without the renderer in it's name.
src/Innertube.ts
Outdated
@@ -39,6 +41,7 @@ import type { ApiResponse } from './core/Actions.js'; | |||
import { type IBrowseResponse, type IParsedResponse } from './parser/types/index.js'; | |||
import type { INextRequest } from './types/index.js'; | |||
import type { DownloadOptions, FormatOptions } from './types/FormatUtils.js'; | |||
import {encodeReelSequence} from './proto/index.js'; |
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.
Please add spaces inside the brackets to match the code style used for the other imports, please address it in the other files too.
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.
Adapted and added a eslint rule to create warnings about this issue
Are there any other recommendations left regarding this PR. 😅 |
+1 I'd very much to get shorts as well, thanks for the work |
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.
Please fix the linting warnings triggered by this pull request (added code suggestions in the relevant places).
Co-authored-by: absidue <[email protected]>
ed89566
to
e2c506a
Compare
Fixed eslint erros as you suggested and rebased PR. :) |
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.
Please used named imports for the Parser instead of a default one, please see #535 for why. You only need to change the files you added, the linked pull request changes all other ones.
Co-authored-by: absidue <[email protected]>
Co-authored-by: absidue <[email protected]>
Author: Konstantin <[email protected]>
Authored-by: Konstantin <[email protected]>
Co-authored-by: Konstantin <[email protected]>
This PR should start integrating the short endpoints as discussed here:
#482
As I still do not have the overview over the library, the changes maybe do not fit to the library still.
Any help is welcome. :)