Browse Source

[xhamster] Add support for xhamster.one (closes #20508)

master
Sergey M․ 6 years ago
parent
commit
b43c5f474a
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/extractor/xhamster.py

+ 4
- 1
youtube_dl/extractor/xhamster.py View File

@ -20,7 +20,7 @@ from ..utils import (
class XHamsterIE(InfoExtractor): class XHamsterIE(InfoExtractor):
_VALID_URL = r'''(?x) _VALID_URL = r'''(?x)
https?:// https?://
(?:.+?\.)?xhamster\.com/
(?:.+?\.)?xhamster\.(?:com|one)/
(?: (?:
movies/(?P<id>\d+)/(?P<display_id>[^/]*)\.html| movies/(?P<id>\d+)/(?P<display_id>[^/]*)\.html|
videos/(?P<display_id_2>[^/]*)-(?P<id_2>\d+) videos/(?P<display_id_2>[^/]*)-(?P<id_2>\d+)
@ -91,6 +91,9 @@ class XHamsterIE(InfoExtractor):
# new URL schema # new URL schema
'url': 'https://pt.xhamster.com/videos/euro-pedal-pumping-7937821', 'url': 'https://pt.xhamster.com/videos/euro-pedal-pumping-7937821',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://xhamster.one/videos/femaleagent-shy-beauty-takes-the-bait-1509445',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):


Loading…
Cancel
Save