Skip to content

Commit

Permalink
docs(revision): 📝 add some tips for deprecated field and parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MerleLiuKun committed Mar 19, 2024
1 parent 0a2e59a commit 770a698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyyoutube/models/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class ChannelBrandingSettingChannel(BaseModel):
description: Optional[str] = field(default=None)
keywords: Optional[str] = field(default=None, repr=False)
trackingAnalyticsAccountId: Optional[str] = field(default=None, repr=False)
# Important:
# moderateComments has been deprecated at March 7, 2024.
moderateComments: Optional[bool] = field(default=None, repr=False)
unsubscribedTrailer: Optional[str] = field(default=None, repr=False)
defaultLanguage: Optional[str] = field(default=None, repr=False)
Expand Down
4 changes: 4 additions & 0 deletions pyyoutube/resources/captions.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def insert(
file with the audio track of the video.
If you set the value to true, YouTube will disregard any time codes that are in the uploaded
caption file and generate new time codes for the captions.
Important:
This parameter will be deprecated at April 12, 2024.
**kwargs:
Additional parameters for system parameters.
Refer: https://cloud.google.com/apis/docs/system-parameters.
Expand Down Expand Up @@ -141,6 +143,8 @@ def update(
file with the audio track of the video.
If you set the value to true, YouTube will disregard any time codes that are in the uploaded
caption file and generate new time codes for the captions.
Important:
This parameter will be deprecated at April 12, 2024.
return_json:
Type for returned data. If you set True JSON data will be returned.
**kwargs:
Expand Down

0 comments on commit 770a698

Please sign in to comment.