Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not appear to correctly handle certain characters in filenames on the device. #61

Closed
Kirtai opened this issue Jan 4, 2014 · 2 comments

Comments

@Kirtai
Copy link

Kirtai commented Jan 4, 2014

Calibre 1.18.0
English (UK)
Windows 7/64bit
iTunes version 11.0.4.4
plugin version 1.3.3
Goodreader
iPad version 1 running iOS5

I have a pdf in Goodreader with the title "Girl Genius, Vol. 01_Agatha Heterodyne - Phil Foglio (B\W).pdf"

The plugin throws an error when encountering this book but works correctly when it is deleted. It appears to be choking on some of the characters in the filename.

The error is:

calibre, version 1.18.0
ERROR: Error: Error communicating with device

u"could not open file u'/Documents/Girl Genius/W).pdf' for reading"

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 85, in run
File "site-packages\calibre\gui2\device.py", line 491, in _books
File "C:\Users\kally\AppData\Local\Temp\calibre_bpwody\njt5hq_ios_local_db\GoodReader_overlays.py", line 154, in books
File "C:\Users\kally\AppData\Local\Temp\calibre_bpwody\njt5hq_ios_local_db\GoodReader_overlays.py", line 1091, in _localize_pdf
File "site-packages\calibre\devices\idevice\libimobiledevice.py", line 290, in copy_from_idevice
libiMobileDeviceIOException: u"could not open file u'/Documents/Girl Genius/W).pdf' for reading"

@Kirtai
Copy link
Author

Kirtai commented Jan 4, 2014

I forgot to mention this file was already on the iPad, put there by iTunes file transfer long ago. The error occurred during the initial metadata scan of files already on the iPad.

@GRiker
Copy link
Collaborator

GRiker commented Jan 4, 2014

I've updated the plugin to version 1.3.4 with a patch that should properly handle illegal POSIX characters in the filename. Please install the latest update and confirm that it's working correctly for you. If there's still a problem, feel free to reopen this issue.

@GRiker GRiker closed this as completed Jan 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants