From 4bc77c8417ca0340d09dcebb311d06aa7d5ba0ac Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 28 Sep 2014 13:52:21 +0200 Subject: [PATCH] [README] Use _match_id helper function --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 5d15decb5..5e0d07997 100644 --- a/README.md +++ b/README.md @@ -442,8 +442,6 @@ ### Adding support for a new site # coding: utf-8 from __future__ import unicode_literals - import re - from .common import InfoExtractor @@ -466,8 +464,7 @@ ### Adding support for a new site } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') + video_id = self._match_id(url) # TODO more code goes here, for example ... webpage = self._download_webpage(url, video_id)