mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-09 06:48:30 +00:00
Fix Quotes in speedrun.py
This commit is contained in:
parent
4b0e5a0ef0
commit
6637787de1
@ -1,19 +1,22 @@
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
|
||||||
# Speedrun.com has the ability to host twitch embeds as well which is why this script was needed.
|
# Speedrun.com has the ability to host twitch embeds as well which is why this
|
||||||
|
# script was needed, otherwise there would've been no use for it.
|
||||||
|
# However the Youtube embed scraper is prone to flase positives hence
|
||||||
|
# this script's existance.
|
||||||
|
|
||||||
class SpeedRunIE(InfoExtractor):
|
class SpeedRunIE(InfoExtractor):
|
||||||
IE_NAME = "speedrun"
|
IE_NAME = 'speedrun'
|
||||||
_VALID_URL = r'https?://(?:www\.)?speedrun\.com/[^/?#]+/runs/(?P<id>[^?/#]+)'
|
_VALID_URL = r'https?://(?:www\.)?speedrun\.com/[^/?#]+/runs/(?P<id>[^?/#]+)'
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
"url":"https://www.speedrun.com/smg1/runs/yvnjr9om",
|
'url':'https://www.speedrun.com/smg1/runs/yvnjr9om',
|
||||||
'only_matching': True
|
'only_matching': True,
|
||||||
}, {
|
}, {
|
||||||
"url":"https://www.speedrun.com/pm64/runs/y96x462y",
|
'url':'https://www.speedrun.com/pm64/runs/y96x462y',
|
||||||
'only_matching': True
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user