Giter Site home page Giter Site logo

buried-in-code / dex-starr Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 2.53 MB

Dex-Starr helps sort and organize your comic collection by using the information stored in ComicInfo files

License: GNU General Public License v3.0

Python 100.00%
python-3 comics hatchling json xml

dex-starr's Introduction

⚠️ Deprecation Notice ⚠️

This project is now deprecated and no longer actively maintained.
This project has been transitioned to a new and improved version called Perdoo.

Dex-Starr

With test and code of crimson red,
Ripped from a program so freshly dead,
Together with our comics collate,
We'll sort you all, that is your Fate!

PyPI - Python PyPI - Status PyPI - Version PyPI - License

Hatch Pre-Commit Black isort Flake8

Github - Contributors Github Action - Testing

Dex-Starr's goal is to help sort and organize your comic collection by using the information stored in Info files.
It also formats all your digital comics into a single format (cbz or cb7), adds and/or updates the supported list of Info files.

Supported Formats

Input Extensions

  • .cbz
  • .cbr
  • .cb7 (Requires installing cb7 dependencies: pip install dex_starr[cb7])
  • .cbt

Output Extensions

  • .cbz
  • .cb7 (Requires installing cb7 dependencies: pip install dex_starr[cb7])

Info Files

Installation

PyPI (Currently not released on PyPI)

  1. Make sure you have Python installed: python --version
  2. Install the project from PyPI: pip install dex_starr

Github

  1. Make sure you have Python installed: python --version
  2. Clone the repo: git clone https://github.com/Buried-In-Code/Dex-Starr
  3. Install the project: pip install .

Execution

  • Dex-Starr <arguments>

Arguments

Argument Type Description
--manual-edit bool Pause the Script before bundling the files to allow manual removal of Ads, etc...
--version bool Display the version of Dex-Starr running
--debug bool Display extra/debug messages while running

Services

File Renaming

Series Naming

Series with volume greater than 1 will display its volume in the title.

Comic Naming

The files are named based on the format of Comic:

  • Default/Comic: {Series Title}-#{Issue Number}.cbz
  • Annual: {Series Title}-Annual-#{Issue Number}.cbz
  • Digital Chapter: {Series Title}-Chapter-#{Issue Number}.cbz
  • Hardcover ends with: -HC.cbz
  • Trade Paperback ends with: -TP.cbz
  • Graphic Novel ends with: -GN.cbz

Collection Folder Structure

Import
+-- New Comic #10.cbr
+-- New Comic #11.cbz
Collection
+-- Publisher
|  +-- Series
|  |  +-- Series-#1.cbz
|  |  +-- Series-Annual-#1.cbz
|  |  +-- Series-Chapter-#1.cbz
|  |  +-- Series-HC.cbz
|  |  +-- Series-#1-TP.cbz
|  |  +-- Series-GN.cbz
|  +-- Series-v2
|  |  +-- Series-v2-#1.cbz
|  |  +-- Series-v2-Annual-#1.cbz
|  |  +-- Series-v2-Chapter-#1.cbz
|  |  +-- Series-v2-#1-HC.cbz
|  |  +-- Series-v2-TP.cbz
|  |  +-- Series-v2-GN.cbz

Socials

Social - Discord

dex-starr's People

Watchers

 avatar

Forkers

bpepple

dex-starr's Issues

Create and use Default values for Config instead of throwing errors

After taking a closer look at how I implemented the tests rather than loading a test config, they try and load it how Comic-Organizer would for any user.

Really, I'd say this is actually a bug that was exposed.

By hard-coding a config file location without any type of error handling you're making this section of the code fairly brittle. A better solution would be to gracefully exit if the file isn't found, or to create an empty file and then error out if any info is missing when needed. Really all those variables (COMICVINE_API_KEY, LEAGUE_API_KEY, etc) should be using default values (None, "", etc) if for some reason their keys are not in config file.

There are a lot of different ways to implement this depending on your needs, for most of my simple projects I tend to use something like this:

https://github.com/bpepple/metron-tagger/blob/master/metrontagger/taggerlib/settings.py

Anyway, something to think about.

Originally posted by @bpepple in #16 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.