aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/iprima.py
diff options
context:
space:
mode:
authorSlava Shklyaev <shk.slava@gmail.com>2015-06-02 17:28:14 +0300
committerSlava Shklyaev <shk.slava@gmail.com>2015-06-02 17:42:53 +0300
commitb5597738d4de35fd6f2be7bf1cb6a32c754d873f (patch)
tree5a0f3f1568f74d2ad858b90f16aabc77f394f4f8 /youtube_dl/extractor/iprima.py
parentbc03e58565d99677a643e0a058d25c7ee9b265d6 (diff)
[iprima] Comply with review
Diffstat (limited to 'youtube_dl/extractor/iprima.py')
-rw-r--r--youtube_dl/extractor/iprima.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py
index f3536893a..502507551 100644
--- a/youtube_dl/extractor/iprima.py
+++ b/youtube_dl/extractor/iprima.py
@@ -11,11 +11,12 @@ from ..compat import (
)
from ..utils import (
ExtractorError,
+ remove_end,
)
class IPrimaIE(InfoExtractor):
- _VALID_URL = r'https?://play\.iprima\.cz/([^/]+/)*(?P<id>[^?#]+)'
+ _VALID_URL = r'https?://play\.iprima\.cz/(?:[^/]+/)*(?P<id>[^?#]+)'
_TESTS = [{
'url': 'http://play.iprima.cz/particka/particka-92',
@@ -105,7 +106,7 @@ class IPrimaIE(InfoExtractor):
return {
'id': real_id,
- 'title': self._og_search_title(webpage).replace(' | Prima PLAY', ''),
+ 'title': remove_end(self._og_search_title(webpage), ' | Prima PLAY'),
'thumbnail': self._og_search_thumbnail(webpage),
'formats': formats,
'description': self._og_search_description(webpage),