aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-11-06 23:45:01 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-11-06 23:45:01 +0100
commitb1a80ec1a986219e3b04fb443a2622dacfba15f6 (patch)
tree6884bd6237c5195ecae3e4d96933240689dd890d /youtube_dl
parent672fe94dcb69d6412a91c0996bf5ea1a6aa5ce93 (diff)
downloadyoutube-dl-b1a80ec1a986219e3b04fb443a2622dacfba15f6.zip
youtube-dl-b1a80ec1a986219e3b04fb443a2622dacfba15f6.tar.gz
youtube-dl-b1a80ec1a986219e3b04fb443a2622dacfba15f6.tar.bz2
[xnxx] Accept urls that start with 'www' (fixes #1734)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/xnxx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xnxx.py b/youtube_dl/extractor/xnxx.py
index 8a0eb1a..1177a4b 100644
--- a/youtube_dl/extractor/xnxx.py
+++ b/youtube_dl/extractor/xnxx.py
@@ -9,7 +9,7 @@ from ..utils import (
class XNXXIE(InfoExtractor):
- _VALID_URL = r'^(?:https?://)?video\.xnxx\.com/video([0-9]+)/(.*)'
+ _VALID_URL = r'^(?:https?://)?(?:video|www)\.xnxx\.com/video([0-9]+)/(.*)'
VIDEO_URL_RE = r'flv_url=(.*?)&amp;'
VIDEO_TITLE_RE = r'<title>(.*?)\s+-\s+XNXX.COM'
VIDEO_THUMB_RE = r'url_bigthumb=(.*?)&amp;'