Skip to content

Commit

Permalink
tokyomotion: opt out from using compat_urllib_parse_quote
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesmiscore committed Apr 18, 2022
1 parent 0339a15 commit a9e2b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/extractor/tokyomotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

import re
import functools
import urllib.parse

from .common import InfoExtractor
from ..utils import (
ExtractorError,
OnDemandPagedList,
try_get,
)
from ..compat import compat_urllib_parse_quote


class TokyoMotionBaseIE(InfoExtractor):
Expand All @@ -20,7 +20,7 @@ class TokyoMotionBaseIE(InfoExtractor):

@staticmethod
def _extract_video_urls(variant, webpage):
return ('https://www.%smotion.net%s' % (variant, compat_urllib_parse_quote(frg.group()))
return ('https://www.%smotion.net%s' % (variant, urllib.parse.quote(frg.group()))
for frg in re.finditer(r'/video/(?P<id>\d+)/[^#?&"\']+', webpage))

def _do_paging(self, variant, user_id, index):
Expand Down

0 comments on commit a9e2b48

Please sign in to comment.