move id2url to Video class
This commit is contained in:
parent
f7a92d9c72
commit
7bd936c11b
14 changed files with 69 additions and 76 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue