Skip to content

Commit

Permalink
Revert "[beeg] Add support for api/v6 v2 URLs without t argument (clo…
Browse files Browse the repository at this point in the history
…ses #21701)"

This reverts commit 3710af5.
  • Loading branch information
Lamieur committed Apr 20, 2020
1 parent 9d6ae4c commit dad3b25
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions youtube_dl/extractor/beeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ class BeegIE(InfoExtractor):
# api/v6 v2
'url': 'https://beeg.com/1941093077?t=911-1391',
'only_matching': True,
}, {
# api/v6 v2 w/o t
'url': 'https://beeg.com/1277207756',
'only_matching': True,
}, {
'url': 'https://beeg.porn/video/5416503',
'only_matching': True,
Expand All @@ -53,17 +49,14 @@ def _real_extract(self, url):
r'beeg_version\s*=\s*([\da-zA-Z_-]+)', webpage, 'beeg version',
default='1546225636701')

if len(video_id) >= 10:
qs = compat_urlparse.parse_qs(compat_urlparse.urlparse(url).query)
t = qs.get('t', [''])[0].split('-')
if len(t) > 1:
query = {
'v': 2,
's': t[0],
'e': t[1],
}
qs = compat_urlparse.parse_qs(compat_urlparse.urlparse(url).query)
t = qs.get('t', [''])[0].split('-')
if len(t) > 1:
query.update({
's': t[0],
'e': t[1],
})
else:
query = {'v': 1}

Expand Down

0 comments on commit dad3b25

Please sign in to comment.