Upgrade yt_dlp and download script

This commit is contained in:
2025-05-02 16:11:08 -05:00
parent 3a2e8eeb08
commit d68d9ce4f9
1194 changed files with 60099 additions and 44436 deletions

View File

@@ -1,9 +1,8 @@
import functools
import urllib.parse
import urllib.error
import hashlib
import json
import time
import urllib.parse
from .common import InfoExtractor
from ..utils import (
@@ -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,