parent
08f0d0cb7e
commit
9bbaf79575
@ -37,7 +37,7 @@
|
||||
"version": 6,
|
||||
"params": {
|
||||
"filename": "_hello.txt",
|
||||
"file": "/path/to/file"
|
||||
"path": "/path/to/file"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -475,7 +475,7 @@ class AnkiConnect:
|
||||
if data:
|
||||
self.deleteMediaFile(filename)
|
||||
self.media().writeData(filename, base64.b64decode(data))
|
||||
elif file:
|
||||
elif path:
|
||||
self.deleteMediaFile(filename)
|
||||
with open(path, 'rb') as f:
|
||||
data = f.read()
|
||||
|
Loading…
Reference in New Issue
Block a user