24
24
25
25
import datetime
26
26
import time
27
- from typing import TYPE_CHECKING , List , Optional , Union , Tuple
27
+ from typing import TYPE_CHECKING , List , Optional , Union , Tuple , Dict
28
28
29
29
from .enums import BroadcasterTypeEnum , UserTypeEnum
30
30
from .errors import HTTPException , Unauthorized
@@ -878,7 +878,15 @@ async def create_prediction(
878
878
)
879
879
return Prediction (self ._http , data [0 ])
880
880
881
- async def modify_stream (self , token : str , game_id : int = None , language : str = None , title : str = None ):
881
+ async def modify_stream (
882
+ self ,
883
+ token : str ,
884
+ game_id : int = None ,
885
+ language : str = None ,
886
+ title : str = None ,
887
+ content_classification_labels : List [Dict [str , Union [str , bool ]]] = None ,
888
+ is_branded_content : bool = None ,
889
+ ):
882
890
"""|coro|
883
891
884
892
Modify stream information
@@ -893,6 +901,19 @@ async def modify_stream(self, token: str, game_id: int = None, language: str = N
893
901
Optional language of the channel. A language value must be either the ISO 639-1 two-letter code for a supported stream language or “other”.
894
902
title: :class:`str`
895
903
Optional title of the stream.
904
+ content_classification_labels: List[Dict[:class:`str`, Union[:class:`str`, :class:`bool`]]]
905
+ List of labels that should be set as the Channel's CCLs.
906
+ is_branded_content: :class:`bool`
907
+ Boolean flag indicating if the channel has branded content.
908
+
909
+ .. note::
910
+
911
+ Example of a content classification labels
912
+ .. code:: py
913
+
914
+ ccl = [{"id": "Gambling", "is_enabled": False}, {"id": "DrugsIntoxication", "is_enabled": False}]
915
+ await my_partial_user.modify_stream(token="abcd", content_classification_labels=ccl)
916
+
896
917
"""
897
918
if game_id is not None :
898
919
game_id = str (game_id )
@@ -902,6 +923,8 @@ async def modify_stream(self, token: str, game_id: int = None, language: str = N
902
923
game_id = game_id ,
903
924
language = language ,
904
925
title = title ,
926
+ content_classification_labels = content_classification_labels ,
927
+ is_branded_content = is_branded_content ,
905
928
)
906
929
907
930
async def fetch_schedule (
0 commit comments