Skip to content

Commit

Permalink
Consolidate client details and methods for API requests
Browse files Browse the repository at this point in the history
- remove perform_v1_tv_request
  • Loading branch information
MoojMidge committed Jan 10, 2024
1 parent 398fb6e commit e2e7d13
Show file tree
Hide file tree
Showing 2 changed files with 254 additions and 257 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ def json_traverse(cls, json_data, path):
def build_client(cls, client_name, data=None):
templates = {}

client = (cls.CLIENTS.get(client_name) or cls.CLIENTS['web']).copy()
client = (cls.CLIENTS.get(client_name)
or YouTubeRequestClient.CLIENTS['web']).copy()
if data:
client = merge_dicts(client, data)
client = merge_dicts(cls.CLIENTS['_common'], client, templates)
Expand Down
Loading

0 comments on commit e2e7d13

Please sign in to comment.