fix tests
This commit is contained in:
parent
9e2b399472
commit
dd6f4bee76
1 changed files with 2 additions and 2 deletions
|
|
@ -20,8 +20,6 @@ from __future__ import with_statement
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import gdata.youtube.service
|
|
||||||
|
|
||||||
from weboob.capabilities.video import ICapVideo
|
from weboob.capabilities.video import ICapVideo
|
||||||
from weboob.tools.backend import BaseBackend, ObjectNotAvailable
|
from weboob.tools.backend import BaseBackend, ObjectNotAvailable
|
||||||
from weboob.tools.misc import to_unicode
|
from weboob.tools.misc import to_unicode
|
||||||
|
|
@ -51,6 +49,8 @@ class YoutubeBackend(BaseBackend, ICapVideo):
|
||||||
raise ObjectNotAvailable(e)
|
raise ObjectNotAvailable(e)
|
||||||
|
|
||||||
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, max_results=None):
|
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, max_results=None):
|
||||||
|
import gdata.youtube.service
|
||||||
|
|
||||||
YOUTUBE_MAX_RESULTS = 50
|
YOUTUBE_MAX_RESULTS = 50
|
||||||
YOUTUBE_MAX_START_INDEX = 1000
|
YOUTUBE_MAX_START_INDEX = 1000
|
||||||
yt_service = gdata.youtube.service.YouTubeService()
|
yt_service = gdata.youtube.service.YouTubeService()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue