-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Implement WEB_REMIX search endpoint
Merge pull request #5 from tombulled/feature/search-albums
- Loading branch information
Showing
24 changed files
with
386 additions
and
170 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Sequence | ||
|
||
from youtubei.parse.validated_types import Dynamic | ||
from youtubei.renderers.chip_cloud_chip import ChipCloudChipRenderer | ||
from .._registries import WEB_REMIX_REGISTRY | ||
from ._base import BaseRenderer | ||
|
||
__all__ = ("ChipCloudRenderer",) | ||
|
||
|
||
@WEB_REMIX_REGISTRY | ||
class ChipCloudRenderer(BaseRenderer): | ||
chips: Sequence[Dynamic[ChipCloudChipRenderer]] | ||
collapsed_row_count: int | ||
horizontal_scrollable: bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from typing import Optional | ||
|
||
from youtubei.models.accessibility import Accessibility | ||
from youtubei.models.endpoints import SearchEndpoint | ||
from youtubei.models.other import Icon, Style | ||
from youtubei.models.text import ComplexText | ||
from youtubei.validated_types import DynamicCommand | ||
|
||
from .._registries import WEB_REMIX_REGISTRY | ||
from ._base import BaseRenderer | ||
|
||
__all__ = ("ChipCloudChipRenderer",) | ||
|
||
|
||
@WEB_REMIX_REGISTRY | ||
class ChipCloudChipRenderer(BaseRenderer): | ||
style: Style | ||
text: Optional[ComplexText] = None | ||
icon: Optional[Icon] = None | ||
navigation_endpoint: DynamicCommand[SearchEndpoint] | ||
accessibility_data: Accessibility | ||
is_selected: bool | ||
unique_id: Optional[str] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from typing import Sequence | ||
from youtubei.models.endpoints import BrowseEndpoint | ||
from youtubei.models.other import Icon | ||
from youtubei.models.text import ComplexText | ||
from youtubei.parse.validated_types import Dynamic | ||
from youtubei.renderers.button import ButtonRenderer | ||
from youtubei.renderers.menu import MenuRenderer | ||
from youtubei.renderers.music_card_shelf_header_basic import MusicCardShelfHeaderBasicRenderer | ||
from youtubei.renderers.music_responsive_list_item import MusicResponsiveListItemRenderer | ||
from youtubei.renderers.music_thumbnail import MusicThumbnailRenderer | ||
from youtubei.validated_types import DynamicCommand | ||
from .._registries import WEB_REMIX_REGISTRY | ||
from ._base import BaseRenderer | ||
|
||
__all__ = ("MusicCardShelfRenderer",) | ||
|
||
|
||
@WEB_REMIX_REGISTRY | ||
class MusicCardShelfRenderer(BaseRenderer): | ||
thumbnail: Dynamic[MusicThumbnailRenderer] | ||
title: ComplexText | ||
subtitle: ComplexText | ||
contents: Sequence[Dynamic[MusicResponsiveListItemRenderer]] | ||
buttons: Sequence[Dynamic[ButtonRenderer]] | ||
menu: Dynamic[MenuRenderer] | ||
on_tap: DynamicCommand[BrowseEndpoint] | ||
header: Dynamic[MusicCardShelfHeaderBasicRenderer] | ||
end_icon: Icon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from youtubei.models.text import ComplexText | ||
from .._registries import WEB_REMIX_REGISTRY | ||
from ._base import BaseRenderer | ||
|
||
__all__ = ("MusicCardShelfHeaderBasicRenderer",) | ||
|
||
|
||
@WEB_REMIX_REGISTRY | ||
class MusicCardShelfHeaderBasicRenderer(BaseRenderer): | ||
title: ComplexText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from youtubei.models.accessibility import Accessibility | ||
from youtubei.models.other import Icon | ||
from .._registries import WEB_REMIX_REGISTRY | ||
from ._base import BaseRenderer | ||
|
||
__all__ = ("MusicInlineBadgeRenderer",) | ||
|
||
|
||
@WEB_REMIX_REGISTRY | ||
class MusicInlineBadgeRenderer(BaseRenderer): | ||
icon: Icon | ||
accessibility_data: Accessibility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.