split media and regular server urls
This commit is contained in:
parent
1099b743b7
commit
df72c5a55f
@ -48,7 +48,7 @@ MODEL_CLOZE = 1
|
|||||||
SCHEMA_VERSION = 11
|
SCHEMA_VERSION = 11
|
||||||
SYNC_ZIP_SIZE = int(2.5*1024*1024)
|
SYNC_ZIP_SIZE = int(2.5*1024*1024)
|
||||||
SYNC_ZIP_COUNT = 25
|
SYNC_ZIP_COUNT = 25
|
||||||
SYNC_BASE = os.environ.get("SYNC_BASE") or "https://ankiweb.net/"
|
SYNC_BASE = "https://ankiweb.net/"
|
||||||
SYNC_VER = 8
|
SYNC_VER = 8
|
||||||
|
|
||||||
HELP_SITE="http://ankisrs.net/docs/manual.html"
|
HELP_SITE="http://ankisrs.net/docs/manual.html"
|
||||||
|
@ -607,6 +607,8 @@ class RemoteServer(HttpSyncer):
|
|||||||
HttpSyncer.__init__(self, hkey)
|
HttpSyncer.__init__(self, hkey)
|
||||||
|
|
||||||
def syncURL(self):
|
def syncURL(self):
|
||||||
|
if os.getenv("DEV"):
|
||||||
|
return "http://localhost:5000/sync/"
|
||||||
return SYNC_BASE + "sync/"
|
return SYNC_BASE + "sync/"
|
||||||
|
|
||||||
def hostKey(self, user, pw):
|
def hostKey(self, user, pw):
|
||||||
@ -845,6 +847,8 @@ class RemoteMediaServer(HttpSyncer):
|
|||||||
HttpSyncer.__init__(self, hkey, con)
|
HttpSyncer.__init__(self, hkey, con)
|
||||||
|
|
||||||
def syncURL(self):
|
def syncURL(self):
|
||||||
|
if os.getenv("DEV"):
|
||||||
|
return "http://localhost:5001/"
|
||||||
return SYNC_BASE + "msync/"
|
return SYNC_BASE + "msync/"
|
||||||
|
|
||||||
def begin(self):
|
def begin(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user