aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-08-15 03:15:05 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-08-15 03:41:45 +0530
commit1e4fca9a87b0ff6b7316261a2f081493af3885b2 (patch)
tree06f9da6aa5b739539c527149abf0aecf33b1de04 /yt_dlp
parent49b4ceaedf92db85177cfa10542bddbed16529c7 (diff)
downloadhypervideo-pre-1e4fca9a87b0ff6b7316261a2f081493af3885b2.tar.lz
hypervideo-pre-1e4fca9a87b0ff6b7316261a2f081493af3885b2.tar.xz
hypervideo-pre-1e4fca9a87b0ff6b7316261a2f081493af3885b2.zip
[cleanup] Misc
Diffstat (limited to 'yt_dlp')
-rw-r--r--yt_dlp/YoutubeDL.py2
-rw-r--r--yt_dlp/extractor/jixie.py17
-rw-r--r--yt_dlp/extractor/kompas.py2
-rw-r--r--yt_dlp/extractor/mlb.py2
-rw-r--r--yt_dlp/extractor/parler.py3
-rw-r--r--yt_dlp/extractor/twitch.py2
-rw-r--r--yt_dlp/extractor/zattoo.py5
7 files changed, 11 insertions, 22 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 498e8dd8e..7a2b03cb5 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -301,7 +301,7 @@ class YoutubeDL:
should act on each input URL as opposed to for the entire queue
cookiefile: File name or text stream from where cookies should be read and dumped to
cookiesfrombrowser: A tuple containing the name of the browser, the profile
- name/pathfrom where cookies are loaded, and the name of the
+ name/path from where cookies are loaded, and the name of the
keyring, e.g. ('chrome', ) or ('vivaldi', 'default', 'BASICTEXT')
legacyserverconnect: Explicitly allow HTTPS connection to servers that do not
support RFC 5746 secure renegotiation
diff --git a/yt_dlp/extractor/jixie.py b/yt_dlp/extractor/jixie.py
index 3bb685e01..7480af050 100644
--- a/yt_dlp/extractor/jixie.py
+++ b/yt_dlp/extractor/jixie.py
@@ -1,17 +1,14 @@
from .common import InfoExtractor
-from ..utils import (
- clean_html,
- float_or_none,
- traverse_obj,
- try_call,
-)
-
-# more info about jixie:
-# [1] https://jixie.atlassian.net/servicedesk/customer/portal/2/article/1339654214?src=-1456335525,
-# [2] https://scripts.jixie.media/jxvideo.3.1.min.js
+from ..utils import clean_html, float_or_none, traverse_obj, try_call
class JixieBaseIE(InfoExtractor):
+ """
+ API Reference:
+ https://jixie.atlassian.net/servicedesk/customer/portal/2/article/1339654214?src=-1456335525,
+ https://scripts.jixie.media/jxvideo.3.1.min.js
+ """
+
def _extract_data_from_jixie_id(self, display_id, video_id, webpage):
json_data = self._download_json(
'https://apidam.jixie.io/api/public/stream', display_id,
diff --git a/yt_dlp/extractor/kompas.py b/yt_dlp/extractor/kompas.py
index 03f5f30bd..8bad96190 100644
--- a/yt_dlp/extractor/kompas.py
+++ b/yt_dlp/extractor/kompas.py
@@ -1,7 +1,5 @@
from .jixie import JixieBaseIE
-# Video from video.kompas.com seems use jixie player
-
class KompasVideoIE(JixieBaseIE):
_VALID_URL = r'https?://video\.kompas\.com/\w+/(?P<id>\d+)/(?P<slug>[\w-]+)'
diff --git a/yt_dlp/extractor/mlb.py b/yt_dlp/extractor/mlb.py
index 48baecc47..ab0edbae3 100644
--- a/yt_dlp/extractor/mlb.py
+++ b/yt_dlp/extractor/mlb.py
@@ -325,7 +325,7 @@ class MLBTVIE(InfoExtractor):
airings = self._download_json(
f'https://search-api-mlbtv.mlb.com/svc/search/v2/graphql/persisted/query/core/Airings?variables=%7B%22partnerProgramIds%22%3A%5B%22{video_id}%22%5D%2C%22applyEsniMediaRightsLabels%22%3Atrue%7D',
video_id)['data']['Airings']
-
+
formats, subtitles = [], {}
for airing in airings:
m3u8_url = self._download_json(
diff --git a/yt_dlp/extractor/parler.py b/yt_dlp/extractor/parler.py
index 5d60134e0..68a60bc84 100644
--- a/yt_dlp/extractor/parler.py
+++ b/yt_dlp/extractor/parler.py
@@ -1,8 +1,5 @@
-import json
-
from .common import InfoExtractor
from .youtube import YoutubeIE
-
from ..utils import (
clean_html,
format_field,
diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.py
index a667d6ec2..975e09c30 100644
--- a/yt_dlp/extractor/twitch.py
+++ b/yt_dlp/extractor/twitch.py
@@ -1169,7 +1169,7 @@ class TwitchClipsIE(TwitchBaseIE):
'id': clip.get('id') or video_id,
'_old_archive_ids': [make_archive_id(self, old_id)] if old_id else None,
'display_id': video_id,
- 'title': clip.get('title') or video_id,
+ 'title': clip.get('title'),
'formats': formats,
'duration': int_or_none(clip.get('durationSeconds')),
'view_count': int_or_none(clip.get('viewCount')),
diff --git a/yt_dlp/extractor/zattoo.py b/yt_dlp/extractor/zattoo.py
index 9ce15b388..2bd684c7e 100644
--- a/yt_dlp/extractor/zattoo.py
+++ b/yt_dlp/extractor/zattoo.py
@@ -2,10 +2,7 @@ import re
from uuid import uuid4
from .common import InfoExtractor
-from ..compat import (
- compat_HTTPError,
- compat_str,
-)
+from ..compat import compat_HTTPError, compat_str
from ..utils import (
ExtractorError,
int_or_none,