summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/iwara.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
commit137f07c27a88b07df57df5b2cdebebe3c7722bac (patch)
tree4ebdcbea6b540f69c40ba0be6ac766008030d149 /yt_dlp/extractor/iwara.py
parentAdding debian version 2024.05.27-1. (diff)
downloadyt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.tar.xz
yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.zip
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--yt_dlp/extractor/iwara.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/yt_dlp/extractor/iwara.py b/yt_dlp/extractor/iwara.py
index a11f3f1..5b5c367 100644
--- a/yt_dlp/extractor/iwara.py
+++ b/yt_dlp/extractor/iwara.py
@@ -2,7 +2,6 @@ import functools
import hashlib
import json
import time
-import urllib.error
import urllib.parse
from .common import InfoExtractor
@@ -41,7 +40,7 @@ class IwaraBaseIE(InfoExtractor):
'https://api.iwara.tv/user/login', None, note='Logging in',
headers={'Content-Type': 'application/json'}, data=json.dumps({
'email': username,
- 'password': password
+ 'password': password,
}).encode(), expected_status=lambda x: True)
user_token = traverse_obj(response, ('token', {str}))
if not user_token:
@@ -65,7 +64,7 @@ class IwaraBaseIE(InfoExtractor):
'https://api.iwara.tv/user/token', None, note='Fetching media token',
data=b'', headers={
'Authorization': f'Bearer {IwaraBaseIE._USERTOKEN}',
- 'Content-Type': 'application/json'
+ 'Content-Type': 'application/json',
})['accessToken']
return {'Authorization': f'Bearer {IwaraBaseIE._MEDIATOKEN}'}
@@ -107,7 +106,7 @@ class IwaraIE(IwaraBaseIE):
'uploader': 'Lyu ya',
'uploader_id': 'user792540',
'tags': [
- 'uncategorized'
+ 'uncategorized',
],
'like_count': int,
'view_count': int,
@@ -129,7 +128,7 @@ class IwaraIE(IwaraBaseIE):
'uploader': 'Fe_Kurosabi',
'uploader_id': 'fekurosabi',
'tags': [
- 'pee'
+ 'pee',
],
'like_count': int,
'view_count': int,