s/AdopteUnMec/AuMBrowser/
This commit is contained in:
parent
ae4b7cd23b
commit
c01d2a3c6d
4 changed files with 7 additions and 10 deletions
|
|
@ -16,5 +16,5 @@
|
|||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
from .browser import AdopteUnMec
|
||||
from .browser import AuMBrowser
|
||||
from .backend import AuMBackend
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ from weboob.capabilities.dating import ICapDating, StatusField
|
|||
from weboob.capabilities.contact import ICapContact, Contact, ProfileNode
|
||||
from weboob.tools.browser import BrowserUnavailable
|
||||
|
||||
from .browser import AdopteUnMec
|
||||
from .browser import AuMBrowser
|
||||
from .exceptions import AdopteWait
|
||||
from .optim.profiles_walker import ProfilesWalker
|
||||
from .optim.visibility import Visibility
|
||||
|
|
@ -53,14 +53,11 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesReply, ICapDating, ICapC
|
|||
STORAGE = {'profiles_walker': {'viewed': []},
|
||||
'sluts': {},
|
||||
}
|
||||
BROWSER = AdopteUnMec
|
||||
BROWSER = AuMBrowser
|
||||
|
||||
def default_browser(self):
|
||||
return self.build_browser(self.config['username'], self.config['password'])
|
||||
|
||||
# Private
|
||||
_profiles_walker = None
|
||||
|
||||
def get_status(self):
|
||||
with self.browser:
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -41,10 +41,10 @@ from weboob.backends.aum.pages.wait import WaitPage
|
|||
from weboob.capabilities.chat import ChatException, ChatMessage
|
||||
|
||||
|
||||
__all__ = ['AdopteUnMec']
|
||||
__all__ = ['AuMBrowser']
|
||||
|
||||
|
||||
class AdopteUnMec(BaseBrowser):
|
||||
class AuMBrowser(BaseBrowser):
|
||||
DOMAIN = 'www.adopteunmec.com'
|
||||
PROTOCOL = 'http'
|
||||
ENCODING = 'iso-8859-1'
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
from weboob.tools.browser import BrowserUnavailable
|
||||
from weboob.capabilities.dating import Optimization
|
||||
|
||||
from ..browser import AdopteUnMec
|
||||
from ..browser import AuMBrowser
|
||||
|
||||
|
||||
__all__ = ['Visibility']
|
||||
|
|
@ -40,7 +40,7 @@ class Visibility(Optimization):
|
|||
|
||||
def reconnect(self):
|
||||
try:
|
||||
AdopteUnMec(self.browser.username,
|
||||
AuMBrowser(self.browser.username,
|
||||
self.browser.password,
|
||||
proxy=self.browser.proxy)
|
||||
except BrowserUnavailable, e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue