chore: remove apiclient (#57339)

This commit is contained in:
Diptanil Saha
2026-07-22 01:45:25 +05:30
committed by GitHub
parent a008be7f0f
commit 6d31af3a52
2 changed files with 3 additions and 3 deletions

View File

@@ -3,9 +3,9 @@
import frappe
from apiclient.discovery import build
from frappe import _
from frappe.model.document import Document
from pyyoutube import Api, PyYouTubeException
class VideoSettings(Document):
@@ -28,7 +28,7 @@ class VideoSettings(Document):
def validate_youtube_api_key(self):
if self.enable_youtube_tracking and self.api_key:
try:
build("youtube", "v3", developerKey=self.api_key)
Api(api_key=self.api_key).get_i18n_languages(parts="snippet")
except Exception:
self.log_error("Failed to authenticate API key")
frappe.throw(

View File

@@ -17,7 +17,7 @@ dependencies = [
# integration dependencies
"googlemaps~=4.10.0",
"plaid-python~=7.2.1",
"python-youtube~=0.9.8",
"python-youtube~=0.9.9",
# Not used directly - required by PyQRCode for PNG generation
"pypng~=0.20220715.0",