File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,12 @@ async def fetch_game(self) -> Game | None:
135
135
payload : GamesResponse = await self ._http .get_games (ids = [self .game_id ])
136
136
return Game (payload ["data" ][0 ], http = self ._http ) if payload ["data" ] else None
137
137
138
+ def __eq__ (self , other : object ) -> bool :
139
+ if not isinstance (other , Stream ):
140
+ return NotImplemented
141
+
142
+ return self .id == other .id and self .started_at == other .started_at
143
+
138
144
139
145
class StreamMarker :
140
146
"""Represents a stream marker.
Original file line number Diff line number Diff line change @@ -117,3 +117,9 @@ async def delete(self, token_for: str) -> None:
117
117
A user oauth token with the ``channel:manage:videos`` scope.
118
118
"""
119
119
await self ._http .delete_videos (ids = [self .id ], token_for = token_for )
120
+
121
+ def __eq__ (self , other : object ) -> bool :
122
+ if not isinstance (other , Video ):
123
+ return NotImplemented
124
+
125
+ return self .id == other .id
You can’t perform that action at this time.
0 commit comments