[Extractors] Clean up the code
This commit is contained in:
parent
17eab653e1
commit
84622e970a
@ -796,9 +796,7 @@ from .orf import (
|
|||||||
ORFOE1IE,
|
ORFOE1IE,
|
||||||
ORFIPTVIE,
|
ORFIPTVIE,
|
||||||
)
|
)
|
||||||
from .orfium import (
|
from .orfium import OrfiumTrackIE
|
||||||
OrfiumTrackIE,
|
|
||||||
)
|
|
||||||
from .packtpub import (
|
from .packtpub import (
|
||||||
PacktPubIE,
|
PacktPubIE,
|
||||||
PacktPubCourseIE,
|
PacktPubCourseIE,
|
||||||
|
@ -10,7 +10,7 @@ from ..utils import ExtractorError
|
|||||||
class OrfiumTrackIE(InfoExtractor):
|
class OrfiumTrackIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(www\.)?orfium\.com/track/(?P<id>\d+)'
|
_VALID_URL = r'https?://(www\.)?orfium\.com/track/(?P<id>\d+)'
|
||||||
IE_NAME = 'orfium'
|
IE_NAME = 'orfium'
|
||||||
_TESTS = [{
|
_TEST = {
|
||||||
'url': 'https://www.orfium.com/track/694466/misery-aciou/',
|
'url': 'https://www.orfium.com/track/694466/misery-aciou/',
|
||||||
'md5': 'ceae78f12a22b05d7f796e04de5f6cae',
|
'md5': 'ceae78f12a22b05d7f796e04de5f6cae',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -21,7 +21,7 @@ class OrfiumTrackIE(InfoExtractor):
|
|||||||
'url': 'https://cdn.orfium.com/tracks%2Fa281276f-8126-48aa-98ad-9121c282e6eb-1522252307.mp3',
|
'url': 'https://cdn.orfium.com/tracks%2Fa281276f-8126-48aa-98ad-9121c282e6eb-1522252307.mp3',
|
||||||
'ext': 'mp3'
|
'ext': 'mp3'
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user