Comments (4)
Thank you for the report!
Interesting, I did not have success in reproducing the bug. I attached a gif of the steps I took, let me know if that differs from how you came across this error.
I also tried deleting the media after and then previewing and adding the audio to a different card, but that also did not produce an error.
It could also be a windows specific error since Linux and Windows might have different rules for os.rename
. I'll have to test it on a Windows machine at some point.
from anki-simple-forvo-audio.
Hm, strange. Either there is some other condition for this bug to appear, or this is Windows-specific, as you said.
from anki-simple-forvo-audio.
I'm betting on windows-specific, doesn't mean I won't address it of course :3
Just to be safe, I assume you have been able to reproduce the bug with the steps that you outlined for me?
from anki-simple-forvo-audio.
It seems I should have just looked up the method on the documentation
https://docs.python.org/3/library/os.html#os.rename
On Windows, if dst exists a FileExistsError is always raised. The operation may fail if src and dst are on different filesystems.
so I should probably change it to os.replace()
, which would silently overwrite the existing file (same behavior as Unix's os.rename()
)
from anki-simple-forvo-audio.
Related Issues (20)
- I am sorry, I do not how to use 1.1 on my anki. If you can help me, I would be very thankful. HOT 1
- Search comes up with no results? HOT 2
- can not be used on window 10 HOT 6
- can not be used on version of 2.1.54 QT5 HOT 8
- Preview audio and choose audio causes error HOT 2
- this addon is what i need but i cant embed the audio at the last step HOT 3
- I cannot add audios to a deck at the same time. How can i solve it? if you can help me i would be grateful. HOT 4
- MP3 audio can not be played on my ipad HOT 10
- Match text to language typed in / possible preferences of languages to search from HOT 14
- [Enhancement] Add Lingua Libre as additional source HOT 5
- Fix deprecation warnings
- Search doesn't find anything? HOT 4
- Auto Fetch different card types HOT 1
- Qt5 compatibility code will no longer be supported in the upcoming version of Anki HOT 3
- Remember language and destination field for each deck HOT 3
- Doesn't work in Anki 23.12 beta3 HOT 5
- Forvo scraping is dead (long live forvo?) aka: No results found
- No Brazilian Portuguese results HOT 1
- Дополнение перестало работать HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki-simple-forvo-audio.