Skip to content

Commit 770a698

Browse files
committed
docs(revision): 📝 add some tips for deprecated field and parameter
1 parent 0a2e59a commit 770a698

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pyyoutube/models/channel.py

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class ChannelBrandingSettingChannel(BaseModel):
4242
description: Optional[str] = field(default=None)
4343
keywords: Optional[str] = field(default=None, repr=False)
4444
trackingAnalyticsAccountId: Optional[str] = field(default=None, repr=False)
45+
# Important:
46+
# moderateComments has been deprecated at March 7, 2024.
4547
moderateComments: Optional[bool] = field(default=None, repr=False)
4648
unsubscribedTrailer: Optional[str] = field(default=None, repr=False)
4749
defaultLanguage: Optional[str] = field(default=None, repr=False)

pyyoutube/resources/captions.py

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def insert(
8989
file with the audio track of the video.
9090
If you set the value to true, YouTube will disregard any time codes that are in the uploaded
9191
caption file and generate new time codes for the captions.
92+
Important:
93+
This parameter will be deprecated at April 12, 2024.
9294
**kwargs:
9395
Additional parameters for system parameters.
9496
Refer: https://cloud.google.com/apis/docs/system-parameters.
@@ -141,6 +143,8 @@ def update(
141143
file with the audio track of the video.
142144
If you set the value to true, YouTube will disregard any time codes that are in the uploaded
143145
caption file and generate new time codes for the captions.
146+
Important:
147+
This parameter will be deprecated at April 12, 2024.
144148
return_json:
145149
Type for returned data. If you set True JSON data will be returned.
146150
**kwargs:

0 commit comments

Comments
 (0)