aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/search.py
diff options
context:
space:
mode:
authorAstounds <kirito@disroot.org>2026-04-25 01:02:17 -0500
committerAstounds <kirito@disroot.org>2026-04-25 01:02:17 -0500
commit50ad959a8051fec95f26b573f9fe067bdf3fdf6a (patch)
tree4d94f63cf9adb951d4200b0f2bb0c762d45297c4 /youtube/search.py
parenta0f315be51ef121618e73d5b450c8616c0d11d21 (diff)
downloadyt-local-50ad959a8051fec95f26b573f9fe067bdf3fdf6a.tar.lz
yt-local-50ad959a8051fec95f26b573f9fe067bdf3fdf6a.tar.xz
yt-local-50ad959a8051fec95f26b573f9fe067bdf3fdf6a.zip
refactor: replace string concatenations with f-strings
Diffstat (limited to 'youtube/search.py')
-rw-r--r--youtube/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/search.py b/youtube/search.py
index 6e62e28..7573595 100644
--- a/youtube/search.py
+++ b/youtube/search.py
@@ -51,7 +51,7 @@ def get_search_json(query, page, autocorrect, sort, filters):
'X-YouTube-Client-Name': '1',
'X-YouTube-Client-Version': '2.20180418',
}
- url += "&pbj=1&sp=" + page_number_to_sp_parameter(page, autocorrect, sort, filters).replace("=", "%3D")
+ url += f"&pbj=1&sp={page_number_to_sp_parameter(page, autocorrect, sort, filters).replace('=', '%3D')}"
content = util.fetch_url(url, headers=headers, report_text="Got search results", debug_name='search_results')
info = json.loads(content)
return info