|
|
@ -3,6 +3,10 @@ from __future__ import unicode_literals
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
|
|
from .common import InfoExtractor
|
|
|
|
from .common import InfoExtractor
|
|
|
|
|
|
|
|
from ..utils import (
|
|
|
|
|
|
|
|
HEADRequest,
|
|
|
|
|
|
|
|
urlhandle_detect_ext,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SoulAnimeWatchingIE(InfoExtractor):
|
|
|
|
class SoulAnimeWatchingIE(InfoExtractor):
|
|
|
@ -31,8 +35,10 @@ class SoulAnimeWatchingIE(InfoExtractor):
|
|
|
|
r'<div id="download">[^<]*<a href="(?P<url>[^"]+)"', page, 'url')
|
|
|
|
r'<div id="download">[^<]*<a href="(?P<url>[^"]+)"', page, 'url')
|
|
|
|
video_url = "http://www.soul-anime." + domain + video_url_encoded
|
|
|
|
video_url = "http://www.soul-anime." + domain + video_url_encoded
|
|
|
|
|
|
|
|
|
|
|
|
vid = self._request_webpage(video_url, video_id)
|
|
|
|
ext_req = HEADRequest(video_url)
|
|
|
|
ext = vid.info().gettype().split("/")[1]
|
|
|
|
ext_handle = self._request_webpage(
|
|
|
|
|
|
|
|
ext_req, video_id, note='Determining extension')
|
|
|
|
|
|
|
|
ext = urlhandle_detect_ext(ext_handle)
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'id': video_id,
|
|
|
|
'id': video_id,
|
|
|
|