projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8070db
)
[primesharetv] Use `_form_hidden_inputs`
author
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:56:41 +0000
(21:56 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:56:41 +0000
(21:56 +0600)
youtube_dl/extractor/primesharetv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/primesharetv.py
b/youtube_dl/extractor/primesharetv.py
index 01cc3d9ea3ff845476a7f7b306c3bfee25078b96..94c9fb2cb29c33cb4d7353d468f36fec32e75593 100644
(file)
--- a/
youtube_dl/extractor/primesharetv.py
+++ b/
youtube_dl/extractor/primesharetv.py
@@
-31,12
+31,7
@@
class PrimeShareTVIE(InfoExtractor):
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._form_hidden_inputs(webpage)
headers = {
'Referer': url,