diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-09 18:10:00 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-09 19:51:11 +0300 |
| commit | 2a2af44eacf0e962853dba0b6ecae19fe18f9ea3 (patch) | |
| tree | 093f8bf465af54711dce6eb5f8eb97f75cb3718f /tests/utils | |
| parent | 9fb20553d9f9e21c012f730a728c33d368e09bf2 (diff) | |
| download | csca5028-2a2af44eacf0e962853dba0b6ecae19fe18f9ea3.tar.gz csca5028-2a2af44eacf0e962853dba0b6ecae19fe18f9ea3.zip | |
Add the ability to use YouTube API
This is to circumvent YouTube blocking.
Diffstat (limited to 'tests/utils')
| -rw-r--r-- | tests/utils/vid_url_to_html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils/vid_url_to_html.py b/tests/utils/vid_url_to_html.py index 60f6ccc..91fcb40 100644 --- a/tests/utils/vid_url_to_html.py +++ b/tests/utils/vid_url_to_html.py @@ -18,5 +18,5 @@ def get_vid_html_from_url(url: str) -> str: with open(f'tests/data/video@{extract_vid_id(url)}.html', 'r') as file: return file.read() -def obtain_vid_duration(url:str, html: str = '') -> int: +def obtain_vid_duration(url:str, vid_id:str, html:str='', api_key:str='') -> int: return get_random_vid_duration(url) |
