move id2url to Video class

This commit is contained in:
Christophe Benz 2010-04-28 14:49:50 +02:00
commit 7bd936c11b
14 changed files with 69 additions and 76 deletions

View file

@ -18,12 +18,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""
import urllib
from weboob.tools.browser import BaseBrowser
from . import tools
from .pages import VideoPage
from .video import YoutubeVideo
__all__ = ['YoutubeBrowser']
@ -32,5 +30,5 @@ class YoutubeBrowser(BaseBrowser):
}
def get_video(self, _id):
self.location(tools.id2url(_id))
self.location(YoutubeVideo.id2url(_id))
return self.page.video