fix: implemented better and more generalized error handling for the api
This commit is contained in:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user