Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(revision): 📝 add some tips for deprecated field and parameter #172

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading