Using youtube api (v3) instead of v2 to get the video duration .
TNL-2413
This commit is contained in:
@@ -67,8 +67,7 @@ def is_youtube_available():
|
||||
|
||||
youtube_api_urls = {
|
||||
'main': 'https://www.youtube.com/',
|
||||
'player': 'http://www.youtube.com/iframe_api',
|
||||
'metadata': 'http://gdata.youtube.com/feeds/api/videos/',
|
||||
'player': 'https://www.youtube.com/iframe_api',
|
||||
# For transcripts, you need to check an actual video, so we will
|
||||
# just specify our default video and see if that one is available.
|
||||
'transcript': 'http://video.google.com/timedtext?lang=en&v=3_yD_cEKoCk',
|
||||
|
||||
Reference in New Issue
Block a user