From 770a69849e66d6a9e61eef242969cc5bd4df71cf Mon Sep 17 00:00:00 2001 From: ikaroskun Date: Tue, 19 Mar 2024 16:06:52 +0800 Subject: [PATCH] docs(revision): :memo: add some tips for deprecated field and parameter --- pyyoutube/models/channel.py | 2 ++ pyyoutube/resources/captions.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/pyyoutube/models/channel.py b/pyyoutube/models/channel.py index 4986602..b39478e 100644 --- a/pyyoutube/models/channel.py +++ b/pyyoutube/models/channel.py @@ -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) diff --git a/pyyoutube/resources/captions.py b/pyyoutube/resources/captions.py index cebf11e..1a433f1 100644 --- a/pyyoutube/resources/captions.py +++ b/pyyoutube/resources/captions.py @@ -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. @@ -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: