[Extractors] Clean up the code

This commit is contained in:
Surya Oktafendri 2018-04-03 10:36:30 +07:00
parent 17eab653e1
commit 84622e970a
No known key found for this signature in database
GPG Key ID: 8CAB076E32F1FC8D
2 changed files with 3 additions and 5 deletions

View File

@ -796,9 +796,7 @@ from .orf import (
ORFOE1IE,
ORFIPTVIE,
)
from .orfium import (
OrfiumTrackIE,
)
from .orfium import OrfiumTrackIE
from .packtpub import (
PacktPubIE,
PacktPubCourseIE,

View File

@ -10,7 +10,7 @@ from ..utils import ExtractorError
class OrfiumTrackIE(InfoExtractor):
_VALID_URL = r'https?://(www\.)?orfium\.com/track/(?P<id>\d+)'
IE_NAME = 'orfium'
_TESTS = [{
_TEST = {
'url': 'https://www.orfium.com/track/694466/misery-aciou/',
'md5': 'ceae78f12a22b05d7f796e04de5f6cae',
'info_dict': {
@ -21,7 +21,7 @@ class OrfiumTrackIE(InfoExtractor):
'url': 'https://cdn.orfium.com/tracks%2Fa281276f-8126-48aa-98ad-9121c282e6eb-1522252307.mp3',
'ext': 'mp3'
}
}]
}
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)