mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
tell dropbox support to use new media url location
This commit is contained in:
parent
42ac12975b
commit
2c946fe366
1 changed files with 4 additions and 4 deletions
|
|
@ -2977,10 +2977,10 @@ is next loaded."""))
|
||||||
else:
|
else:
|
||||||
self.config['dropboxPublicFolder'] = os.path.dirname(txt[0])
|
self.config['dropboxPublicFolder'] = os.path.dirname(txt[0])
|
||||||
if self.config['dropboxPublicFolder']:
|
if self.config['dropboxPublicFolder']:
|
||||||
# update media urls
|
# update media url
|
||||||
deck.s.statement("update models set features = :url",
|
deck.setVar(
|
||||||
url=self.config['dropboxPublicFolder'] + "/" +
|
"mediaURL", self.config['dropboxPublicFolder'] + "/" +
|
||||||
os.path.basename(deck.mediaDir()) + "/")
|
os.path.basename(deck.mediaDir()) + "/")
|
||||||
|
|
||||||
# Advanced features
|
# Advanced features
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue