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

Add content-hub support #61

Open
popey opened this issue Sep 2, 2014 · 5 comments
Open

Add content-hub support #61

popey opened this issue Sep 2, 2014 · 5 comments

Comments

@popey
Copy link

popey commented Sep 2, 2014

One of the features I'd love to see is to be able to get files into Beru more easily using content hub.

A good example app is pdfjs https://github.com/bobo1993324/pdfjsViewer which can load in PDF files via the file manager. Would be great if Beru could call out to the file manager to pull files into the Beru directory, files that have been selected by the user. These could have been dragged/dropped onto the phone via MTP or that have been put on an SD card and inserted (for devices which support this) :)

(of course it would be more ideal if we had an ~/Books folder which was read directly, but in lieu of that)

@rschroll
Copy link
Owner

rschroll commented Sep 2, 2014

Every time I've looked at the content hub documentation in the past,
I've gone crosseyed two paragraphs in. I guess it's time for another
attempt.

For the record, Beru is perfectly happy to read books from ~/Books, or
wherever you put them. I've compiled several methods for enabling this
here: http://rschroll.github.io/beru/confinement.html

@rschroll
Copy link
Owner

I got a chance to talk with Ken Vandine about this, and unfortunately the Content Hub isn't ready for us yet. There are two issues:

  1. There's no ebook content type. I've filed a bug about this, and Ken thinks it'll be addressed pretty soon. This will allow us to download epubs from the web browser and open them with Beru.
  2. There's no support for getting files from the file system, as opposed to other apps. Thus, there's no way to get files from a folder on your desktop or drag epub files to your phone.

@rschroll rschroll added the sdk label Oct 23, 2014
@popey
Copy link
Author

popey commented Feb 18, 2015

  1. is done now
  2. can be done if you have file manager installed.

If you add an import handler then things downloaded from the browser can be passed to beru. However it may pass you .mobi or other "ebooks" which you don't support, in which case you'll need to error appropriately.

@rschroll
Copy link
Owner

I've written a little importer as a test, but it doesn't work with
anything other than ContentType.Pictures. This is not encouraging....

How can I tell if the EBooks content type has made it into the devel
images?

rschroll added a commit that referenced this issue Apr 12, 2015
In preparation for Content Hub imports, we need a way to see if a given
file has already been imported.

Refs #61.
rschroll added a commit that referenced this issue Apr 12, 2015
It should support multiple imports, but I haven't had a chance to test
that.  The import dialog probably won't be that useful in that case,
especially if there are errors.

The import dialog generaly doesn't show as soon as it should, since the
import processing happens before it has a chance to draw the dialog on
the screen.

Refs #61.
rschroll added a commit that referenced this issue Apr 12, 2015
rschroll added a commit that referenced this issue Apr 12, 2015
There is now a separate import page which lists the imports and their
states, and lets the user open them.

Refs #61.
@rschroll
Copy link
Owner

Beru now supports imports. Export support will wait for a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants