Add CBZ mime type setting (#194)

This commit is contained in:
Mitchell Syer
2025-10-24 21:54:22 -04:00
committed by GitHub
parent bf45d9f6b1
commit 884ddcedf1
3 changed files with 76 additions and 73 deletions

View File

@@ -170,6 +170,7 @@ jobs:
-e OPDS_SHOW_ONLY_UNREAD_CHAPTERS=true \ -e OPDS_SHOW_ONLY_UNREAD_CHAPTERS=true \
-e OPDS_SHOW_ONLY_DOWNLOADED_CHAPTERS=true \ -e OPDS_SHOW_ONLY_DOWNLOADED_CHAPTERS=true \
-e OPDS_CHAPTER_SORT_ORDER=ASC \ -e OPDS_CHAPTER_SORT_ORDER=ASC \
-e OPDS_CBZ_MIME_TYPE=LEGACY \
-e KOREADER_SYNC_SERVER_URL=http://koreader:17200 \ -e KOREADER_SYNC_SERVER_URL=http://koreader:17200 \
-e KOREADER_SYNC_USERNAME=manga \ -e KOREADER_SYNC_USERNAME=manga \
-e KOREADER_SYNC_USERKEY=hello123 \ -e KOREADER_SYNC_USERKEY=hello123 \

View File

@@ -36,7 +36,7 @@ Use the template [docker-compose.yml](./docker-compose.yml) in this repo for cre
There are a number of environment variables available to configure Suwayomi: There are a number of environment variables available to configure Suwayomi:
| Variable | Server Default | Description | | Variable | Server Default | Description |
|:---------------------------------------:|:--------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| |:---------------------------------------:|:--------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| **TZ** | `Etc/UTC` | What time zone the container thinks it is. | | **TZ** | `Etc/UTC` | What time zone the container thinks it is. |
| **BIND_IP** | `0.0.0.0` | The interface to listen on, inside the container. You almost never want to change this. | | **BIND_IP** | `0.0.0.0` | The interface to listen on, inside the container. You almost never want to change this. |
| **BIND_PORT** | `4567` | Which port Suwayomi will listen on | | **BIND_PORT** | `4567` | Which port Suwayomi will listen on |
@@ -96,6 +96,7 @@ There are a number of environment variables available to configure Suwayomi:
| **OPDS_SHOW_ONLY_UNREAD_CHAPTERS** | `false` | Filter manga feed to display only chapters you haven't read | | **OPDS_SHOW_ONLY_UNREAD_CHAPTERS** | `false` | Filter manga feed to display only chapters you haven't read |
| **OPDS_SHOW_ONLY_DOWNLOADED_CHAPTERS** | `false` | Filter manga feed to display only chapters you have downloaded | | **OPDS_SHOW_ONLY_DOWNLOADED_CHAPTERS** | `false` | Filter manga feed to display only chapters you have downloaded |
| **OPDS_CHAPTER_SORT_ORDER** | `DESC` | `DESC` or `ASC` | | **OPDS_CHAPTER_SORT_ORDER** | `DESC` | `DESC` or `ASC` |
| **OPDS_CBZ_MIME_TYPE** | `MODERN` | `MODERN` or `LEGACY` or `COMPATIBLE`. Controls the MimeType that Suwayomi sends in OPDS entries for CBZ archives. Also affects global CBZ download. Modern follows recent IANA standard (2017), while LEGACY (deprecated mimetype for .cbz) and COMPATIBLE (deprecated mimetype for all comic archives) might be more compatible with older clients. |
| **KOREADER_SYNC_SERVER_URL** | `http://localhost:17200` | The URL of the KOReader Sync server | | **KOREADER_SYNC_SERVER_URL** | `http://localhost:17200` | The URL of the KOReader Sync server |
| **KOREADER_SYNC_USERNAME** | ` ` | KOReader Sync UserName | | **KOREADER_SYNC_USERNAME** | ` ` | KOReader Sync UserName |
| **KOREADER_SYNC_USERKEY** | ` ` | KOReader Sync UserKey | | **KOREADER_SYNC_USERKEY** | ` ` | KOReader Sync UserKey |

View File

@@ -115,6 +115,7 @@ sed -i -r "s/server.opdsMarkAsReadOnDownload = ([0-9]+|[a-zA-Z]+)( #)?/server.op
sed -i -r "s/server.opdsShowOnlyUnreadChapters = ([0-9]+|[a-zA-Z]+)( #)?/server.opdsShowOnlyUnreadChapters = ${OPDS_SHOW_ONLY_UNREAD_CHAPTERS:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s/server.opdsShowOnlyUnreadChapters = ([0-9]+|[a-zA-Z]+)( #)?/server.opdsShowOnlyUnreadChapters = ${OPDS_SHOW_ONLY_UNREAD_CHAPTERS:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf
sed -i -r "s/server.opdsShowOnlyDownloadedChapters = ([0-9]+|[a-zA-Z]+)( #)?/server.opdsShowOnlyDownloadedChapters = ${OPDS_SHOW_ONLY_DOWNLOADED_CHAPTERS:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s/server.opdsShowOnlyDownloadedChapters = ([0-9]+|[a-zA-Z]+)( #)?/server.opdsShowOnlyDownloadedChapters = ${OPDS_SHOW_ONLY_DOWNLOADED_CHAPTERS:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf
sed -i -r "s/server.opdsChapterSortOrder = \"*([a-zA-Z0-9_]+)\"*( #)?/server.opdsChapterSortOrder = ${OPDS_CHAPTER_SORT_ORDER:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s/server.opdsChapterSortOrder = \"*([a-zA-Z0-9_]+)\"*( #)?/server.opdsChapterSortOrder = ${OPDS_CHAPTER_SORT_ORDER:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf
sed -i -r "s/server.opdsCbzMimetype = \"*([a-zA-Z0-9_]+)\"*( #)?/server.opdsCbzMimetype = ${OPDS_CBZ_MIME_TYPE:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf
# koreader # koreader
sed -i -r "s|server.koreaderSyncServerUrl = \"(.*?)\"( #)?|server.koreaderSyncServerUrl = \"${KOREADER_SYNC_SERVER_URL:-\1}\" #|" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s|server.koreaderSyncServerUrl = \"(.*?)\"( #)?|server.koreaderSyncServerUrl = \"${KOREADER_SYNC_SERVER_URL:-\1}\" #|" /home/suwayomi/.local/share/Tachidesk/server.conf