-# coding: utf-8
-from __future__ import unicode_literals
-
import hashlib
import time
import urllib.parse
info = self._download_json(
self.get_api_with_st_token(video_id, int(slug_episode) - 1 if slug_episode else 0), video_id)
formats, subtitles = self._extract_m3u8_formats_and_subtitles(info['data']['url'], video_id, 'mp4')
- self._sort_formats(formats)
return {
'id': video_id,
'title': join_nonempty(title, real_episode, delim=' - '),