- flake8
This commit is contained in:
parent
9dd47ebbd7
commit
8ef2625c2e
@ -7,6 +7,7 @@ from ..utils import (
|
|||||||
clean_html
|
clean_html
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class VidelloIE(InfoExtractor):
|
class VidelloIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?embed.vidello\.com/[0-9]/(?P<id>[a-zA-Z0-9]+)/player.html'
|
_VALID_URL = r'https?://(?:www\.)?embed.vidello\.com/[0-9]/(?P<id>[a-zA-Z0-9]+)/player.html'
|
||||||
_TEST = {
|
_TEST = {
|
||||||
@ -25,13 +26,13 @@ class VidelloIE(InfoExtractor):
|
|||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
vidello_settings = self._parse_json(self._search_regex(
|
vidello_settings = self._parse_json(self._search_regex(
|
||||||
r'vidello_'+video_id+'_settings\s*=\s*({.+});', webpage, 'vidello settings'), video_id)
|
r'vidello_' + video_id + '_settings\s*=\s*({.+});', webpage, 'vidello settings'), video_id)
|
||||||
|
|
||||||
video_url = ""
|
video_url = ""
|
||||||
video_sources = vidello_settings.get('player').get('clip').get('sources') or {}
|
video_sources = vidello_settings.get('player').get('clip').get('sources') or {}
|
||||||
for curr_entry in video_sources:
|
for curr_entry in video_sources:
|
||||||
if curr_entry['type'] == "video/mp4":
|
if curr_entry['type'] == "video/mp4":
|
||||||
video_url = "http://"+curr_entry["src"][2:]
|
video_url = "http://" + curr_entry["src"][2:]
|
||||||
title = vidello_settings.get('cta')[0].get('values').get('product_title')
|
title = vidello_settings.get('cta')[0].get('values').get('product_title')
|
||||||
description = clean_html(vidello_settings.get('cta')[0].get('values').get('product_desc'))
|
description = clean_html(vidello_settings.get('cta')[0].get('values').get('product_desc'))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user