Skip to content

Commit

Permalink
[CI] auto update yt_dlp to upstream commit cfa76f35d25eaf993437df8b83…
Browse files Browse the repository at this point in the history
…3befbbf9255331
  • Loading branch information
github-actions[bot] committed Dec 4, 2024
1 parent 8ae0ff8 commit ecff6a1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/yt_dlp/extractor/adn.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def _real_extract(self, url):

error = self._parse_json(e.cause.response.read(), video_id)
message = error.get('message')
if e.cause.code == 403 and error.get('code') == 'player-bad-geolocation-country':
if e.cause.status == 403 and error.get('code') == 'player-bad-geolocation-country':
self.raise_geo_restricted(msg=message)
raise ExtractorError(message)
else:
Expand Down
6 changes: 0 additions & 6 deletions lib/yt_dlp/extractor/cultureunplugged.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import time

from .common import InfoExtractor
from ..networking import HEADRequest
from ..utils import int_or_none


Expand Down Expand Up @@ -31,9 +28,6 @@ def _real_extract(self, url):
video_id = mobj.group('id')
display_id = mobj.group('display_id') or video_id

# request setClientTimezone.php to get PHPSESSID cookie which is need to get valid json data in the next request
self._request_webpage(HEADRequest(
'http://www.cultureunplugged.com/setClientTimezone.php?timeOffset=%d' % -(time.timezone / 3600)), display_id)
movie_data = self._download_json(
f'http://www.cultureunplugged.com/movie-data/cu-{video_id}.json', display_id)

Expand Down
5 changes: 3 additions & 2 deletions lib/yt_dlp/extractor/pixivsketch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .common import InfoExtractor
from ..networking.exceptions import HTTPError
from ..utils import (
ExtractorError,
traverse_obj,
Expand Down Expand Up @@ -110,8 +111,8 @@ def _real_extract(self, url):
if not traverse_obj(data, 'is_broadcasting'):
try:
self._call_api(user_id, 'users/current.json', url, 'Investigating reason for request failure')
except ExtractorError as ex:
if ex.cause and ex.cause.code == 401:
except ExtractorError as e:
if isinstance(e.cause, HTTPError) and e.cause.status == 401:
self.raise_login_required(f'Please log in, or use direct link like https://sketch.pixiv.net/@{user_id}/1234567890', method='cookies')
raise ExtractorError('This user is offline', expected=True)

Expand Down
6 changes: 3 additions & 3 deletions lib/yt_dlp/version.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Autogenerated by devscripts/update-version.py

__version__ = '2024.11.18'
__version__ = '2024.12.03'

RELEASE_GIT_HEAD = '7ea2787920cccc6b8ea30791993d114fbd564434'
RELEASE_GIT_HEAD = '2b67ac300ac8b44368fb121637d1743cea8c5b6b'

VARIANT = None

Expand All @@ -12,4 +12,4 @@

ORIGIN = 'yt-dlp/yt-dlp'

_pkg_version = '2024.11.18'
_pkg_version = '2024.12.03'
2 changes: 1 addition & 1 deletion lib/yt_dlp_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c038a7b187ba24360f14134842a7a2cf897c33b1
cfa76f35d25eaf993437df8b833befbbf9255331

0 comments on commit ecff6a1

Please sign in to comment.