mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-16 07:42:07 +00:00
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <[email protected]> Reviewed-by: Simon Sawicki <[email protected]>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import urllib.parse
|
||||
|
||||
from .once import OnceIE
|
||||
from ..compat import compat_urllib_parse_unquote
|
||||
|
||||
|
||||
class GameSpotIE(OnceIE):
|
||||
@@ -40,7 +41,7 @@ class GameSpotIE(OnceIE):
|
||||
data_video = self._parse_json(self._html_search_regex(
|
||||
r'data-video=(["\'])({.*?})\1', webpage,
|
||||
'video data', group=2), page_id)
|
||||
title = compat_urllib_parse_unquote(data_video['title'])
|
||||
title = urllib.parse.unquote(data_video['title'])
|
||||
streams = data_video['videoStreams']
|
||||
formats = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user