muplr


Namemuplr JSON
Version 2.1.21 PyPI version JSON
download
home_pageNone
Summarymupl: Bulk MangaDex Upload Tool
upload_time2025-08-04 00:15:32
maintainerNone
docs_urlNone
authorArdaxHz
requires_python>=3.10
licenseNone
keywords manga upload bulk mangadex
VCS
bugtrack_url
requirements requests natsort packaging Pillow tqdm
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mupl - MangaDex Bulk Uploader
Bulk uploads folders and archives (.zip/.cbz) to MangaDex in a quick and easy way.

*You will need to accept MangaDex's [terms and conditions](https://mangadex.org/compliance) to use this tool. Mupl is not liable for uploads that are against the terms and conditions.*

Read this in other languages:  
[Português (Brasil)](doc/readme.pt-br.md)\
[Español (LATAM)](doc/readme.es-la.md)\
[Français](doc/readme.fr.md)\
[Euskara](doc/readme.eu.md)\
[Tiếng Việt](doc/readme.vi.md)

***There will be a release for each language, with English included in each one. To download all the languages, download the source files zip.***

## Table of Contents
- [How to use](#usage)
  - [As a dependency](#dependency)
  - [Downloading](#downloading)
  - [Installing](#installing)
  - [Running](#running)
  - [Updating](#updating)
  - [Command Line Arguments](#command-line-arguments)
- [Upload file name structure](#file-name-structure)
  - [Name convention](#name-convention)
  - [Name parameters](#name-parameters)
    - [Chapter title replacement characters](#chapter-title-replacement-characters)
  - [Accepted Image Formats](#accepted-image-formats)
  - [Image size](#image-size)
    - [Image Splitting](#image-splitting)
    - [Image Combining](#image-combining)
- [Config](#config)
  - [User Options](#options)
  - [MangaDex Credentials](#credentials)
  - [Program Paths](#paths)
- [Name to ID File](#name-to-id-map)
  - [Map File Examples](#example)
- [Contribution](#contribution)
- [Translation](#translation)


## Usage
### This uploader is tested for Python 3.10+.

#### This uploader can be run from the command line directly, or used as a dependency in other scripts.

### Dependency
To use this uploader in other scripts, install the latest version through pypi `pip install muplr`

```python
from mupl import Mupl
from datetime import datetime
from pathlib import Path

# Initialize Mupl
# Most parameters have sensible defaults, provide credentials as needed.
# Home path on Unix/Mac is /Users/<>/mupl, on Windows it's C:\Users\<>\mupl.

mupl = Mupl(
    mangadex_username="your_username",             # Your MangaDex username
    mangadex_password="your_password",             # Your MangaDex password
    client_id="your_client_id",                    # Your MangaDex API client ID (optional if using username/password)
    client_secret="your_client_secret",            # Your MangaDex API client secret (optional if using username/password)
    # --- Optional Parameters ---       
    # move_files=True,                             # Move files from upload dir to 'uploaded_files' dir after success
    # verbose_level=0,                             # Logging level (0=INFO, 1=DEBUG)
    # number_of_images_upload=10,                  # Number of images per upload session commit request
    # upload_retry=3,                              # Number of retries for failed image uploads
    # ratelimit_time=2,                            # Seconds to wait between API calls
    # logs_dir_path=None,                          # Directory where to store logs. Defaults to home path. Will create 'logs' folder in this directory.
    # max_log_days=30,                             # Days to keep log files
    # group_fallback_id=None,                      # Default group UUID if not found in filename/map
    # number_threads=3,                            # Number of threads for concurrent image uploads
    # language="en",                               # Language code for mupl localisation
    # name_id_map_filename="name_id_map.json",     # Filename for manga/group name-to-ID mapping (relative to home_path or absolute path), not required for single_chapter uploads
    # uploaded_dir_path="uploaded",                # Directory name/path for successfully uploaded files (relative to home_path or absolute path to folder)
    # mangadex_api_url="https://api.mangadex.org", # Base URL for MangaDex API
    # mangadex_auth_url="https://auth.mangadex.org/realms/mangadex/protocol/openid-connect", # Base URL for MangaDex Auth
)

# --- Uploading a Directory ---
# Directory path containing chapter archives (zip/cbz) or folders named according to convention.
# See File Naming Convention section below.
upload_directory_path = Path("path/to/your/chapters_folder") # or "path/to/your/chapters_folder"

failed_uploads_list = mupl.upload_directory(
    upload_dir_path=upload_directory_path,
    # --- Optional Keyword Arguments for upload_directory ---
    # widestrip=False, # Mark chapters as widestrip format
    # combine=False    # Combine small images vertically
)

# Returns:
# 'None' if no valid files are found, otherwise a pathlib objects list of failed uploads is returned.
# If the returned list is empty, there were no failed uploads.

# --- Uploading a Single Chapter ---
# Provide metadata explicitly for a single chapter file or folder.
chapter_file_or_folder_path = Path("path/to/your/chapter.zip") # Or Path("path/to/your/chapter_folder") or a string value "path/to/your/chapter.zip"
manga_uuid = "manga-uuid-here"
group_uuids = ["group-uuid-1", "group-uuid-2"] # List of group UUIDs

upload_successful = mupl.upload_chapter(
    file_path=chapter_file_or_folder_path,
    manga_id=manga_uuid,
    group_ids=group_uuids,
    # --- Optional Keyword Arguments for upload_chapter ---
    # language="en",                        # Chapter language code
    # oneshot=False,                        # Mark as oneshot (True) or regular chapter (False)
    # chapter_number="10",                  # Chapter number (e.g., "10", "10.5"). Ignored if oneshot=True.
    # volume_number="2",                    # Volume number (optional)
    # chapter_title="Chapter Title Here",   # Chapter title (optional)
    # publish_date=None,                    # datetime object for scheduled publishing (optional)
    # widestrip=False,                      # Mark chapter as widestrip format
    # combine=False                         # Combine small images vertically
)

# Returns:
# 'True' if upload was successful, otherwise 'False'.

print(f"Failed directory uploads: {failed_uploads_list}")
print(f"Single chapter upload successful: {upload_successful}")
```


### Downloading
Download the [latest version](https://github.com/ArdaxHz/mupl/releases/latest) from the releases page.

Extract the archive to a folder, and open a new terminal window. On the terminal, navigate to the folder created using `cd "<path_to_folder>"`.

### Installing

Before running the uploader, you will need to install the required modules. 
To install the modules, run the command `pip install -r requirements.txt`, use `pip3` if on mac or linux instead of `pip`.

In the folder you extracted the archive to, create the `to_upload` and `uploaded` folders.

### Running

To run the uploader, in the terminal window, use `python mupl.py` to start the uploader. Use `python3` instead if on mac or linux.

### Updating

The updater will automatically check at the start of the program if there is a new version available on the releases page. If there is a new version, it will prompt you to update.

If you want to disable the updater, you can add the `--update` flag to the command line arguments. For example: `python mupl.py --update`.

### Command Line Arguments
There are command line arguments that can be added after the main command to change the behaviour of the program, for example: `python mupl.py -t`.

##### Options:
- `--update` `-u` Don't check for a new update at the start of the program.
- `--verbose` `-v` Make the command line messages and logs more verbose.
- `--threaded` `-t` Run the threaded uploader. *Default: False*
- `--combine` `-c` Combine images that are smaller than or equal to 128px with the previous image. *Default: False*
- `--widestrip` `-w` Splits images over 10000px wide into multiple, smaller images. *Default: False*

## File Name Structure
#### Name convention
`manga_title [lang] - cXXX (vYY) (chapter_title) {publish_date} [group]`

#### Name parameters
- `manga_title` Manga title (same as the key in `name_id_map.json`) or the MangaDex ID.
- `[lang]` Language code in the ISO format. *Omitted for English.*
- `cXXX` Chapter number. *Omit the chapter prefix if the chapter is a oneshot, e.g. `cXXX` > `XXX`.*
- `(vYY)` Chapter volume. *Optional.*
- `(chapter_title)` Chapter title. See [Chapter title replacement characters](#chapter-title-replacement-characters) for special characters. *Optional.*
- `{publish_date}` Future date of when chapter is released from MangaDex's side. ***MUST** be in the format `YYYY-MM-DDTHH-MM-SS` if included.* *Optional.*
- `[group]` List of group names or IDs. If group names, they must be included in the `name_id_map.json` for the IDs. *Separate multiple groups using `+`.* *Optional.*

##### Chapter title replacement characters
- `{asterisk}` `*` *`{asterisk}` will be replaced with `*` during the upload process.*
- `{backslash}` `\` *`{backslash}` will be replaced with `\` during the upload process.*
- `{slash}` `/` *`{slash}` will be replaced with `/` during the upload process.*
- `{colon}` `:` *`{colon}` will be replaced with `:` during the upload process.*
- `{greater_than}` `>` *`{greater_than}` will be replaced with `>` during the upload process.*
- `{less_than}` `<` *`{less_than}` will be replaced with `<` during the upload process.*
- `{question_mark}` `?` *`{question_mark}` will be replaced with `?` during the upload process.*
- `{quote}` `"` *`{quote}` will be replaced with `"` during the upload process.*
- `{pipe}` `|` *`{pipe}` will be replaced with `|` during the upload process.*

#### Accepted Image formats
- `png`
- `jpg`/`jpeg`
- `gif`
- `webp` *Will be converted to either `png`, `jpg`, or `gif` during the upload process. This will not change the local file.*

#### Image size
##### Image Splitting
Images cannot exceed `10000px` in width or height. Images over 10000px height will be split as a longstrip image. To split a widestrip image, use the CLI argument `--widestrip` `-w`. 


##### Image Combining
If the `--combine` flag is used, images smaller than or equal to `128px` will be combined with the previous image **IF** they are the same width or height as the previous image. (Depends on if the image is a longstrip or widestrip.)

If the flag is not used or the images are not the same width or height as the previous image, the image **WILL* be skipped.


## Config
User changeable settings are available in the `config.json` file. This is also where you put your MangaDex credentials.
Copy and remove the `.example` from `config.json.example` to start using the config file.

*Note: JSON values cannot be empty, and the type of value matters*
- Use (`null`) where a value is meant to be empty
- Text should be in quotation marks (`"username"`)
- Numbers are numbers by themselves (`1.1`)


#### Options
- `number_of_images_upload` Number of images to upload at once. *Default: `10`*
- `upload_retry` Attempts to retry image or chapter upload. *Default: `3`*
- `ratelimit_time` Time (in seconds) to sleep after API calls. *Default: `2`*
- `max_log_days` Days to keep logs. *Default: `30`*
- `group_fallback_id` Group ID to use if not found in file or ID map, leave blank to not upload to a group. *Default: `null`*
- `number_threads`: Number of thread for concurrent image upload. **This can rate limit you.** Threads are limited to the range 1-3 (inclusive). *Default: `3`*
- `language`: Language for command line messages. *Default: `en`*

#### Credentials
***These values cannot be empty, otherwise the uploader will not run.***
- `mangadex_username` MangaDex username.
- `mangadex_password` MangaDex password.
- `client_id` Client ID for the MangaDex API Client.
- `client_secret` Client Secret for the MangaDex API Client.

#### Paths
*These options can be left as is, they do not need to be changed.*
- `name_id_map_file` File name for the name-to-id map. *Default: `name_id_map.json`*
- `uploads_folder` Directory to get new uploads from. *Default: `to_upload`*
- `uploaded_files` Directory to move uploaded chapters to. *Default: `uploaded`*
- `mangadex_api_url` MangaDex API url. *Default: `https://api.mangadex.org`*
- `mangadex_auth_url` MangaDex Authentication url. *Default: `https://auth.mangadex.org/realms/mangadex/protocol/openid-connect`*
- `mdauth_path` Local save file for MangaDex login token. *Default: `.mdauth`*

<details>
  <summary>How to obtain a client ID and secret.</summary>

  ![a screenshot of the mangadex-mass-uploader](https://github.com/Xnot/mangadex-mass-uploader/blob/main/assets/usage_1.png?raw=true)
  ![a screenshot of the mangadex-mass-uploader](https://github.com/Xnot/mangadex-mass-uploader/blob/main/assets/usage_2.png?raw=true)
</details>
<br />


## Name to ID map
The `name_id_map.json` has the following format:
```json
{
    "manga": {
        "hyakkano": "efb4278c-a761-406b-9d69-19603c5e4c8b"
    },
    "group": {
        "XuN": "b6d57ade-cab7-4be7-b2b8-be68484b3ad3"
    }
}
```
`manga` and `group` contain the map of name to ID for the manga to upload to and group to upload to respectively. The name should be the same as the upload file. To avoid potential problems when uploading, try use a name that is lowercase and doesn't have spaces.

Each new name-id pair should be separated by a comma at the end of the line and a colon between the name and ID. The last pair of each map should not have a comma.

#### Example

Take `hyakkano - c025 (v04) [XuN].cbz` as the chapter I want to upload. In my `name_id_map.json`, I would have the key `hyakkano` and the value `efb4278c-a761-406b-9d69-19603c5e4c8b` for the manga ID to upload to. I would also have `XuN` for the group map with the value `b6d57ade-cab7-4be7-b2b8-be68484b3ad3`.

The uploader would then look through this file for the `hyakkano` key and for the `XuN` key for their assigned ids.

If I have a file named `efb4278c-a761-406b-9d69-19603c5e4c8b [es] - 000 (Momi-san) [XuN+00e03853-1b96-4f41-9542-c71b8692033b]`, the uploader would take the manga id directly from the file, the language as Spanish with the code `es`, chapter number as null (oneshot) with no volume, chapter title as `Momi-san` with groups `XuN` (id taken form `name_id_map.json`) and `00e03853-1b96-4f41-9542-c71b8692033b`.


## Contribution
- Make sure there aren't any duplicate issues opened before opening one.
- Pull requests are free to be opened if you think it is needed, but please format any code with Python Black (default settings) before doing so.

### Translation
There are two files to translate, this readme and the [mupl/loc/en.json](mupl/loc/en.json) file.

- The translated README should be placed in [doc/](doc/) with the name `readme.<>.md` with the ISO language code between the periods, for example: `readme.pt-br.md`. Update your readme to link back to this readme under the "Read this in other languages" list.
- The translated json file should be named `<>.json` with the ISO language code being used and placed inside the directory [mupl/loc/](mupl/loc/), for example: `pt-br.json`. 

After you have translated these files, update this readme with the link to your translated readme. Please submit a PR with these changes.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "muplr",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "manga, upload, bulk, mangadex",
    "author": "ArdaxHz",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/8c/8a/3f30c645259ca722bc411fff48e67864540c3104cd85bde1f4c87699562e/muplr-2.1.21.tar.gz",
    "platform": null,
    "description": "# mupl - MangaDex Bulk Uploader\nBulk uploads folders and archives (.zip/.cbz) to MangaDex in a quick and easy way.\n\n*You will need to accept MangaDex's [terms and conditions](https://mangadex.org/compliance) to use this tool. Mupl is not liable for uploads that are against the terms and conditions.*\n\nRead this in other languages:  \n[Portugu\u00eas (Brasil)](doc/readme.pt-br.md)\\\n[Espa\u00f1ol (LATAM)](doc/readme.es-la.md)\\\n[Fran\u00e7ais](doc/readme.fr.md)\\\n[Euskara](doc/readme.eu.md)\\\n[Ti\u1ebfng Vi\u1ec7t](doc/readme.vi.md)\n\n***There will be a release for each language, with English included in each one. To download all the languages, download the source files zip.***\n\n## Table of Contents\n- [How to use](#usage)\n  - [As a dependency](#dependency)\n  - [Downloading](#downloading)\n  - [Installing](#installing)\n  - [Running](#running)\n  - [Updating](#updating)\n  - [Command Line Arguments](#command-line-arguments)\n- [Upload file name structure](#file-name-structure)\n  - [Name convention](#name-convention)\n  - [Name parameters](#name-parameters)\n    - [Chapter title replacement characters](#chapter-title-replacement-characters)\n  - [Accepted Image Formats](#accepted-image-formats)\n  - [Image size](#image-size)\n    - [Image Splitting](#image-splitting)\n    - [Image Combining](#image-combining)\n- [Config](#config)\n  - [User Options](#options)\n  - [MangaDex Credentials](#credentials)\n  - [Program Paths](#paths)\n- [Name to ID File](#name-to-id-map)\n  - [Map File Examples](#example)\n- [Contribution](#contribution)\n- [Translation](#translation)\n\n\n## Usage\n### This uploader is tested for Python 3.10+.\n\n#### This uploader can be run from the command line directly, or used as a dependency in other scripts.\n\n### Dependency\nTo use this uploader in other scripts, install the latest version through pypi `pip install muplr`\n\n```python\nfrom mupl import Mupl\nfrom datetime import datetime\nfrom pathlib import Path\n\n# Initialize Mupl\n# Most parameters have sensible defaults, provide credentials as needed.\n# Home path on Unix/Mac is /Users/<>/mupl, on Windows it's C:\\Users\\<>\\mupl.\n\nmupl = Mupl(\n    mangadex_username=\"your_username\",             # Your MangaDex username\n    mangadex_password=\"your_password\",             # Your MangaDex password\n    client_id=\"your_client_id\",                    # Your MangaDex API client ID (optional if using username/password)\n    client_secret=\"your_client_secret\",            # Your MangaDex API client secret (optional if using username/password)\n    # --- Optional Parameters ---       \n    # move_files=True,                             # Move files from upload dir to 'uploaded_files' dir after success\n    # verbose_level=0,                             # Logging level (0=INFO, 1=DEBUG)\n    # number_of_images_upload=10,                  # Number of images per upload session commit request\n    # upload_retry=3,                              # Number of retries for failed image uploads\n    # ratelimit_time=2,                            # Seconds to wait between API calls\n    # logs_dir_path=None,                          # Directory where to store logs. Defaults to home path. Will create 'logs' folder in this directory.\n    # max_log_days=30,                             # Days to keep log files\n    # group_fallback_id=None,                      # Default group UUID if not found in filename/map\n    # number_threads=3,                            # Number of threads for concurrent image uploads\n    # language=\"en\",                               # Language code for mupl localisation\n    # name_id_map_filename=\"name_id_map.json\",     # Filename for manga/group name-to-ID mapping (relative to home_path or absolute path), not required for single_chapter uploads\n    # uploaded_dir_path=\"uploaded\",                # Directory name/path for successfully uploaded files (relative to home_path or absolute path to folder)\n    # mangadex_api_url=\"https://api.mangadex.org\", # Base URL for MangaDex API\n    # mangadex_auth_url=\"https://auth.mangadex.org/realms/mangadex/protocol/openid-connect\", # Base URL for MangaDex Auth\n)\n\n# --- Uploading a Directory ---\n# Directory path containing chapter archives (zip/cbz) or folders named according to convention.\n# See File Naming Convention section below.\nupload_directory_path = Path(\"path/to/your/chapters_folder\") # or \"path/to/your/chapters_folder\"\n\nfailed_uploads_list = mupl.upload_directory(\n    upload_dir_path=upload_directory_path,\n    # --- Optional Keyword Arguments for upload_directory ---\n    # widestrip=False, # Mark chapters as widestrip format\n    # combine=False    # Combine small images vertically\n)\n\n# Returns:\n# 'None' if no valid files are found, otherwise a pathlib objects list of failed uploads is returned.\n# If the returned list is empty, there were no failed uploads.\n\n# --- Uploading a Single Chapter ---\n# Provide metadata explicitly for a single chapter file or folder.\nchapter_file_or_folder_path = Path(\"path/to/your/chapter.zip\") # Or Path(\"path/to/your/chapter_folder\") or a string value \"path/to/your/chapter.zip\"\nmanga_uuid = \"manga-uuid-here\"\ngroup_uuids = [\"group-uuid-1\", \"group-uuid-2\"] # List of group UUIDs\n\nupload_successful = mupl.upload_chapter(\n    file_path=chapter_file_or_folder_path,\n    manga_id=manga_uuid,\n    group_ids=group_uuids,\n    # --- Optional Keyword Arguments for upload_chapter ---\n    # language=\"en\",                        # Chapter language code\n    # oneshot=False,                        # Mark as oneshot (True) or regular chapter (False)\n    # chapter_number=\"10\",                  # Chapter number (e.g., \"10\", \"10.5\"). Ignored if oneshot=True.\n    # volume_number=\"2\",                    # Volume number (optional)\n    # chapter_title=\"Chapter Title Here\",   # Chapter title (optional)\n    # publish_date=None,                    # datetime object for scheduled publishing (optional)\n    # widestrip=False,                      # Mark chapter as widestrip format\n    # combine=False                         # Combine small images vertically\n)\n\n# Returns:\n# 'True' if upload was successful, otherwise 'False'.\n\nprint(f\"Failed directory uploads: {failed_uploads_list}\")\nprint(f\"Single chapter upload successful: {upload_successful}\")\n```\n\n\n### Downloading\nDownload the [latest version](https://github.com/ArdaxHz/mupl/releases/latest) from the releases page.\n\nExtract the archive to a folder, and open a new terminal window. On the terminal, navigate to the folder created using `cd \"<path_to_folder>\"`.\n\n### Installing\n\nBefore running the uploader, you will need to install the required modules. \nTo install the modules, run the command `pip install -r requirements.txt`, use `pip3` if on mac or linux instead of `pip`.\n\nIn the folder you extracted the archive to, create the `to_upload` and `uploaded` folders.\n\n### Running\n\nTo run the uploader, in the terminal window, use `python mupl.py` to start the uploader. Use `python3` instead if on mac or linux.\n\n### Updating\n\nThe updater will automatically check at the start of the program if there is a new version available on the releases page. If there is a new version, it will prompt you to update.\n\nIf you want to disable the updater, you can add the `--update` flag to the command line arguments. For example: `python mupl.py --update`.\n\n### Command Line Arguments\nThere are command line arguments that can be added after the main command to change the behaviour of the program, for example: `python mupl.py -t`.\n\n##### Options:\n- `--update` `-u` Don't check for a new update at the start of the program.\n- `--verbose` `-v` Make the command line messages and logs more verbose.\n- `--threaded` `-t` Run the threaded uploader. *Default: False*\n- `--combine` `-c` Combine images that are smaller than or equal to 128px with the previous image. *Default: False*\n- `--widestrip` `-w` Splits images over 10000px wide into multiple, smaller images. *Default: False*\n\n## File Name Structure\n#### Name convention\n`manga_title [lang] - cXXX (vYY) (chapter_title) {publish_date} [group]`\n\n#### Name parameters\n- `manga_title` Manga title (same as the key in `name_id_map.json`) or the MangaDex ID.\n- `[lang]` Language code in the ISO format. *Omitted for English.*\n- `cXXX` Chapter number. *Omit the chapter prefix if the chapter is a oneshot, e.g. `cXXX` > `XXX`.*\n- `(vYY)` Chapter volume. *Optional.*\n- `(chapter_title)` Chapter title. See [Chapter title replacement characters](#chapter-title-replacement-characters) for special characters. *Optional.*\n- `{publish_date}` Future date of when chapter is released from MangaDex's side. ***MUST** be in the format `YYYY-MM-DDTHH-MM-SS` if included.* *Optional.*\n- `[group]` List of group names or IDs. If group names, they must be included in the `name_id_map.json` for the IDs. *Separate multiple groups using `+`.* *Optional.*\n\n##### Chapter title replacement characters\n- `{asterisk}` `*` *`{asterisk}` will be replaced with `*` during the upload process.*\n- `{backslash}` `\\` *`{backslash}` will be replaced with `\\` during the upload process.*\n- `{slash}` `/` *`{slash}` will be replaced with `/` during the upload process.*\n- `{colon}` `:` *`{colon}` will be replaced with `:` during the upload process.*\n- `{greater_than}` `>` *`{greater_than}` will be replaced with `>` during the upload process.*\n- `{less_than}` `<` *`{less_than}` will be replaced with `<` during the upload process.*\n- `{question_mark}` `?` *`{question_mark}` will be replaced with `?` during the upload process.*\n- `{quote}` `\"` *`{quote}` will be replaced with `\"` during the upload process.*\n- `{pipe}` `|` *`{pipe}` will be replaced with `|` during the upload process.*\n\n#### Accepted Image formats\n- `png`\n- `jpg`/`jpeg`\n- `gif`\n- `webp` *Will be converted to either `png`, `jpg`, or `gif` during the upload process. This will not change the local file.*\n\n#### Image size\n##### Image Splitting\nImages cannot exceed `10000px` in width or height. Images over 10000px height will be split as a longstrip image. To split a widestrip image, use the CLI argument `--widestrip` `-w`. \n\n\n##### Image Combining\nIf the `--combine` flag is used, images smaller than or equal to `128px` will be combined with the previous image **IF** they are the same width or height as the previous image. (Depends on if the image is a longstrip or widestrip.)\n\nIf the flag is not used or the images are not the same width or height as the previous image, the image **WILL* be skipped.\n\n\n## Config\nUser changeable settings are available in the `config.json` file. This is also where you put your MangaDex credentials.\nCopy and remove the `.example` from `config.json.example` to start using the config file.\n\n*Note: JSON values cannot be empty, and the type of value matters*\n- Use (`null`) where a value is meant to be empty\n- Text should be in quotation marks (`\"username\"`)\n- Numbers are numbers by themselves (`1.1`)\n\n\n#### Options\n- `number_of_images_upload` Number of images to upload at once. *Default: `10`*\n- `upload_retry` Attempts to retry image or chapter upload. *Default: `3`*\n- `ratelimit_time` Time (in seconds) to sleep after API calls. *Default: `2`*\n- `max_log_days` Days to keep logs. *Default: `30`*\n- `group_fallback_id` Group ID to use if not found in file or ID map, leave blank to not upload to a group. *Default: `null`*\n- `number_threads`: Number of thread for concurrent image upload. **This can rate limit you.** Threads are limited to the range 1-3 (inclusive). *Default: `3`*\n- `language`: Language for command line messages. *Default: `en`*\n\n#### Credentials\n***These values cannot be empty, otherwise the uploader will not run.***\n- `mangadex_username` MangaDex username.\n- `mangadex_password` MangaDex password.\n- `client_id` Client ID for the MangaDex API Client.\n- `client_secret` Client Secret for the MangaDex API Client.\n\n#### Paths\n*These options can be left as is, they do not need to be changed.*\n- `name_id_map_file` File name for the name-to-id map. *Default: `name_id_map.json`*\n- `uploads_folder` Directory to get new uploads from. *Default: `to_upload`*\n- `uploaded_files` Directory to move uploaded chapters to. *Default: `uploaded`*\n- `mangadex_api_url` MangaDex API url. *Default: `https://api.mangadex.org`*\n- `mangadex_auth_url` MangaDex Authentication url. *Default: `https://auth.mangadex.org/realms/mangadex/protocol/openid-connect`*\n- `mdauth_path` Local save file for MangaDex login token. *Default: `.mdauth`*\n\n<details>\n  <summary>How to obtain a client ID and secret.</summary>\n\n  ![a screenshot of the mangadex-mass-uploader](https://github.com/Xnot/mangadex-mass-uploader/blob/main/assets/usage_1.png?raw=true)\n  ![a screenshot of the mangadex-mass-uploader](https://github.com/Xnot/mangadex-mass-uploader/blob/main/assets/usage_2.png?raw=true)\n</details>\n<br />\n\n\n## Name to ID map\nThe `name_id_map.json` has the following format:\n```json\n{\n    \"manga\": {\n        \"hyakkano\": \"efb4278c-a761-406b-9d69-19603c5e4c8b\"\n    },\n    \"group\": {\n        \"XuN\": \"b6d57ade-cab7-4be7-b2b8-be68484b3ad3\"\n    }\n}\n```\n`manga` and `group` contain the map of name to ID for the manga to upload to and group to upload to respectively. The name should be the same as the upload file. To avoid potential problems when uploading, try use a name that is lowercase and doesn't have spaces.\n\nEach new name-id pair should be separated by a comma at the end of the line and a colon between the name and ID. The last pair of each map should not have a comma.\n\n#### Example\n\nTake `hyakkano - c025 (v04) [XuN].cbz` as the chapter I want to upload. In my `name_id_map.json`, I would have the key `hyakkano` and the value `efb4278c-a761-406b-9d69-19603c5e4c8b` for the manga ID to upload to. I would also have `XuN` for the group map with the value `b6d57ade-cab7-4be7-b2b8-be68484b3ad3`.\n\nThe uploader would then look through this file for the `hyakkano` key and for the `XuN` key for their assigned ids.\n\nIf I have a file named `efb4278c-a761-406b-9d69-19603c5e4c8b [es] - 000 (Momi-san) [XuN+00e03853-1b96-4f41-9542-c71b8692033b]`, the uploader would take the manga id directly from the file, the language as Spanish with the code `es`, chapter number as null (oneshot) with no volume, chapter title as `Momi-san` with groups `XuN` (id taken form `name_id_map.json`) and `00e03853-1b96-4f41-9542-c71b8692033b`.\n\n\n## Contribution\n- Make sure there aren't any duplicate issues opened before opening one.\n- Pull requests are free to be opened if you think it is needed, but please format any code with Python Black (default settings) before doing so.\n\n### Translation\nThere are two files to translate, this readme and the [mupl/loc/en.json](mupl/loc/en.json) file.\n\n- The translated README should be placed in [doc/](doc/) with the name `readme.<>.md` with the ISO language code between the periods, for example: `readme.pt-br.md`. Update your readme to link back to this readme under the \"Read this in other languages\" list.\n- The translated json file should be named `<>.json` with the ISO language code being used and placed inside the directory [mupl/loc/](mupl/loc/), for example: `pt-br.json`. \n\nAfter you have translated these files, update this readme with the link to your translated readme. Please submit a PR with these changes.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "mupl: Bulk MangaDex Upload Tool",
    "version": "2.1.21",
    "project_urls": {
        "Bug Tracker": "https://github.com/ArdaxHz/mupl/issues",
        "Homepage": "https://github.com/ArdaxHz/mupl",
        "Repository": "https://github.com/ArdaxHz/mupl"
    },
    "split_keywords": [
        "manga",
        " upload",
        " bulk",
        " mangadex"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "57dddf3e2bc2a69b59bc86db7b509bf3a4cecb1a38537155ab9007c33c790119",
                "md5": "174bd626c3bb5a1e279998a8d52e8cd7",
                "sha256": "c0daef228a51aa80b0d2cbd66a1c593e568dd089c375be2c8eb2863ab17eb234"
            },
            "downloads": -1,
            "filename": "muplr-2.1.21-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "174bd626c3bb5a1e279998a8d52e8cd7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 53528,
            "upload_time": "2025-08-04T00:15:30",
            "upload_time_iso_8601": "2025-08-04T00:15:30.810969Z",
            "url": "https://files.pythonhosted.org/packages/57/dd/df3e2bc2a69b59bc86db7b509bf3a4cecb1a38537155ab9007c33c790119/muplr-2.1.21-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8c8a3f30c645259ca722bc411fff48e67864540c3104cd85bde1f4c87699562e",
                "md5": "356e82b1639c47aa8017ded5d35cdd8b",
                "sha256": "d01479955c55b03088209d1ad9255d3109be4ceebce160210e2498f7b48d4c21"
            },
            "downloads": -1,
            "filename": "muplr-2.1.21.tar.gz",
            "has_sig": false,
            "md5_digest": "356e82b1639c47aa8017ded5d35cdd8b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 52054,
            "upload_time": "2025-08-04T00:15:32",
            "upload_time_iso_8601": "2025-08-04T00:15:32.256902Z",
            "url": "https://files.pythonhosted.org/packages/8c/8a/3f30c645259ca722bc411fff48e67864540c3104cd85bde1f4c87699562e/muplr-2.1.21.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-04 00:15:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ArdaxHz",
    "github_project": "mupl",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "natsort",
            "specs": []
        },
        {
            "name": "packaging",
            "specs": []
        },
        {
            "name": "Pillow",
            "specs": []
        },
        {
            "name": "tqdm",
            "specs": []
        }
    ],
    "lcname": "muplr"
}
        
Elapsed time: 0.59234s