rapid video; v3.4.4

master
Vishnunarayan K I 2018-08-23 22:06:01 +05:30
parent ed7a483be8
commit 7eafb8cce8
2 changed files with 9 additions and 6 deletions

View File

@ -1 +1 @@
__version__ = '3.4.3'
__version__ = '3.4.4'

View File

@ -12,11 +12,14 @@ class RapidVideo(BaseExtractor):
logging.debug('Calling Rapid url: {}'.format(url))
headers = self.headers
headers['referer'] = url
r = requests.post(url, {
'cursor.x': 12,
'cursor.y': 12,
'block': 1,
}, headers=headers)
try:
r = requests.get(url, headers=headers)
except:
r = requests.post(url, {
'cursor.x': 12,
'cursor.y': 12,
'block': 1,
}, headers=headers)
soup = BeautifulSoup(r.text, 'html.parser')
# TODO: Make these a different function. Can be reused in other classes