# Importing and Saving Manga

Addresses user stories [#1], [#3], [#8].

## Import

There should be 2 ways to import manga: from files on the user's computer, and directly over the internet (see [p2p-sharing](p2p-sharing.md) and [site-crawling](site-crawling.md)). This feature document only describes the local import.

The user should be able to navigate to the files he would like to import, using their operating system's file explorer.

A point of discussion is how the application should interpret the selected files/folders:

- One folder is one work?
- What about sub-folders?

I think a folder without sub-folders and files inside should be considered one work. If it has both, it is one work and the sub-folder should be explored further. If it has only sub-folders, it is not a work, and the sub-folders are to be explored. If it has no content, nothing happens.

Multiple folders should be selectable and importable at the same time.

## Saving

The manga should then be saved into a library folder defined by the user in the following format:\
`<author>` > `<title>` > _\*files here\*_\
This saving strategy should be extendable/configurable in the future.

## File Types

Since the application runs inside chromium, every file type supported by the browser should also be supported by the application: https://developer.mozilla.org/en-US/docs/Web/Media/Formats

This also includes video and audio files.

[#1]: ../user-stories.md#1
[#3]: ../user-stories.md#3
[#8]: ../user-stories.md#8
