Comments (5)
Were you able to execute run_tests.sh
on Windows?
The rename seems to have failed because ''tests/data/downloads/Ceremonies For Christmas - Robert Herrick\Ceremonies For Christmas - Robert Herrick.mp3'' already exists. I'm guessing this was remnant output from a previous test that was not properly cleared.
from odmpy.
Switching over to os.replace()
seems a fairly minor change so I've gone ahead and done that on the master
branch.
from odmpy.
Yes, I ran the tests using git bash on windows, the tests with a basic charset usage pass fine, but the full UTF-8 tests fail. On windows the default charset is cp1252 it is dies on the extended characters, and I can't figure out where the windows 'default' encoding is applied when running the tests.
And yes, exactly that -above-. The remnant of the previous merge test causes the second one to fail on windows.
# download + merge into mp3
rm -rf "$TEST_DOWNLOAD_DIR" && mkdir -p "$TEST_DOWNLOAD_DIR"
python -m odmpy dl "$TEST_DATA_DIR/$TEST_ODM" -d "$TEST_DOWNLOAD_DIR" -m --hideprogress > /dev/null
python -m unittest -v tests.OdmpyTests.test_download_2
# download + merge into m4b
python -m odmpy dl "$TEST_DATA_DIR/$TEST_ODM" -d "$TEST_DOWNLOAD_DIR" -m --mergeformat m4b --hideprogress > /dev/null
python -m unittest -v tests.OdmpyTests.test_download_3
from odmpy.
not sure what your supported python versions are, but os.replace is 3.3+
you could delete if exists before os.rename if you wanted to keep it.
from odmpy.
not sure what your supported python versions are, but os.replace is 3.3+ you could delete if exists before os.rename if you wanted to keep it.
Python support is >=3.7 so I think it should be fine. Thanks for the report.
from odmpy.
Related Issues (20)
- Intermittenly, odmpy libby has time data value error HOT 2
- odmpy libby download issue HOT 2
- odmpy crashes when downloading audiobooks on 0.8.1 HOT 2
- How can i use it? I do not know python. HOT 2
- Long chapters are split into too-small chapters with duplicate names HOT 2
- Invalid date string HOT 4
- The --selectid option gets only the last ID in the list HOT 8
- [Feature] Multiple Subfolders
- 403 error upon using odmlibby HOT 11
- Breaking Changes HOT 1
- 403 Client Error HOT 4
- Error 1002 Hash Mismatch - HTTP Error while downloading license.
- Unable to access Libby through odmpy due to Traceback error HOT 1
- Magazines not downloading -- Error below HOT 1
- Program 'failed to create process'
- 403 Forbidden Error HOT 28
- audio books not downloading HOT 23
- OSError: [Errno 36] File name too long HOT 1
- ODM File Request Fails HOT 1
- odmpy libby --latest 1 consistently fails for the past few days HOT 5
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 odmpy.