fix: implemented better and more generalized error handling for the api

This commit is contained in:
2024-04-25 12:46:57 +02:00
parent e28ae87bbe
commit 25eaa5c85c
3 changed files with 58 additions and 16 deletions

View File

@@ -1,9 +1,9 @@
from python_sponsorblock import SponsorBlock, _get_video_id
from python_sponsorblock import SponsorBlock
if __name__ == "__main__":
sb = SponsorBlock()
sb = SponsorBlock(silent=True)
print(_get_video_id("dksaödfksöldkföslkafdsölfkas"))
print(sb.get_segments("https://yt.artemislena.eu/watch?v=w5GmDRW975g"))