python-sponsorblock/python_sponsorblock/__init__.py

13 lines
297 B
Python
Raw Normal View History

2024-04-24 08:58:48 +00:00
import requests
class SponsorBlockError(Exception):
pass
class SponsorBlock:
def __init__(self, session: requests.Session = None, base_url: str = "https://sponsor.ajay.app"):
self.base_url: str = base_url
self.session: requests.Session = session or requests.Session()