Merge branch 'master' into feature/ISSUE-23
This commit is contained in:
commit
138643a682
|
@ -21,8 +21,11 @@ from youtube_transcript_api import (
|
||||||
|
|
||||||
|
|
||||||
def load_asset(filename):
|
def load_asset(filename):
|
||||||
with open('{dirname}/assets/{filename}'.format(dirname=os.path.dirname(__file__), filename=filename)) as file:
|
filepath = '{dirname}/assets/{filename}'.format(
|
||||||
return file.read()
|
dirname=os.path.dirname(__file__), filename=filename)
|
||||||
|
|
||||||
|
with open(filepath, mode="rb") as file:
|
||||||
|
return file.read().decode('utf-8')
|
||||||
|
|
||||||
|
|
||||||
class TestYouTubeTranscriptApi(TestCase):
|
class TestYouTubeTranscriptApi(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue