projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] More explicit player config JSON extraction (fixes #7468)
[youtube-dl]
/
youtube_dl
/
extractor
/
primesharetv.py
diff --git
a/youtube_dl/extractor/primesharetv.py
b/youtube_dl/extractor/primesharetv.py
index 01cc3d9ea3ff845476a7f7b306c3bfee25078b96..304359dc5b189b8ce27c967c2d369b26db334532 100644
(file)
--- a/
youtube_dl/extractor/primesharetv.py
+++ b/
youtube_dl/extractor/primesharetv.py
@@
-1,7
+1,5
@@
from __future__ import unicode_literals
from __future__ import unicode_literals
-import re
-
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
@@
-31,12
+29,7
@@
class PrimeShareTVIE(InfoExtractor):
if '>File not exist<' in webpage:
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
if '>File not exist<' in webpage:
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
- fields = dict(re.findall(r'''(?x)<input\s+
- type="hidden"\s+
- name="([^"]+)"\s+
- (?:id="[^"]+"\s+)?
- value="([^"]*)"
- ''', webpage))
+ fields = self._hidden_inputs(webpage)
headers = {
'Referer': url,
headers = {
'Referer': url,