mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -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:
|
||||
self.config['dropboxPublicFolder'] = os.path.dirname(txt[0])
|
||||
if self.config['dropboxPublicFolder']:
|
||||
# update media urls
|
||||
deck.s.statement("update models set features = :url",
|
||||
url=self.config['dropboxPublicFolder'] + "/" +
|
||||
os.path.basename(deck.mediaDir()) + "/")
|
||||
# update media url
|
||||
deck.setVar(
|
||||
"mediaURL", self.config['dropboxPublicFolder'] + "/" +
|
||||
os.path.basename(deck.mediaDir()) + "/")
|
||||
|
||||
# Advanced features
|
||||
##########################################################################
|
||||
|
|
|
|||
Loading…
Reference in a new issue