mirror of
https://github.com/ciromattia/kcc
synced 2026-08-07 04:15:52 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31be01cbcc | ||
|
|
2076775d94 | ||
|
|
59df22b62d | ||
|
|
ff5edc5ce5 |
@@ -27,7 +27,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v7
|
||||||
with:
|
with:
|
||||||
python-version: 3.11
|
python-version: 3.11
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v7
|
||||||
with:
|
with:
|
||||||
python-version: 3.11
|
python-version: 3.11
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v7
|
||||||
with:
|
with:
|
||||||
python-version: 3.11
|
python-version: 3.11
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v7
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ KCC avoids many common formatting issues (some of which occur [even on the Kindl
|
|||||||
4) incorrect page turn direction for manga that's read right to left
|
4) incorrect page turn direction for manga that's read right to left
|
||||||
5) unaligned two page spreads in landscape, where pages are shifted over by 1
|
5) unaligned two page spreads in landscape, where pages are shifted over by 1
|
||||||
6) Removing without blur the rainbow effect on color eink Kaleido 3 due to manga screentones
|
6) Removing without blur the rainbow effect on color eink Kaleido 3 due to manga screentones
|
||||||
|
7) Fixing page order problems due to Windows sort being different than Kindle/Kobo sort
|
||||||
|
|
||||||
The GUI looks like this, built in Qt6, with my most commonly used settings:
|
The GUI looks like this, built in Qt6, with my most commonly used settings:
|
||||||
|
|
||||||
|
|||||||
@@ -979,9 +979,16 @@ def getWorkFolder(afile, workdir=None):
|
|||||||
os.path.join(fullPath, tdir[0], 'ComicInfo.xml')
|
os.path.join(fullPath, tdir[0], 'ComicInfo.xml')
|
||||||
)
|
)
|
||||||
if len(tdir) == 1 and os.path.isdir(os.path.join(fullPath, tdir[0])):
|
if len(tdir) == 1 and os.path.isdir(os.path.join(fullPath, tdir[0])):
|
||||||
|
if options.tempdir:
|
||||||
|
workdir2 = mkdtemp('', 'KCC-', os.path.dirname(afile))
|
||||||
|
else:
|
||||||
|
workdir2 = mkdtemp('', 'KCC-')
|
||||||
|
fullPath2 = os.path.join(workdir2, 'OEBPS', 'Images')
|
||||||
|
os.makedirs(fullPath2, exist_ok=True)
|
||||||
for file in os.listdir(os.path.join(fullPath, tdir[0])):
|
for file in os.listdir(os.path.join(fullPath, tdir[0])):
|
||||||
move(os.path.join(fullPath, tdir[0], file), fullPath)
|
move(os.path.join(fullPath, tdir[0], file), fullPath2)
|
||||||
os.rmdir(os.path.join(fullPath, tdir[0]))
|
rmtree(workdir, True)
|
||||||
|
return workdir2
|
||||||
|
|
||||||
if options.legacyextract:
|
if options.legacyextract:
|
||||||
return workdir
|
return workdir
|
||||||
|
|||||||
Reference in New Issue
Block a user