Skip to content

AnimeMoi/Tachiyomi-To-Paperbackup-Converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tachiyomi and Paperback Backup Converter

Features

  • Tachiyomi to Paperback backup conversion Convert the library, read chapter markers and categories

  • Paperback to Tachiyomi backup conversion Convert the library and read chapter markers NOTE: Library tabs are currently not converted, see Limitations NOTE: Sources used may not be in the correct language, requiring a migration, see Limitations

Supported sources: only source of extension-vn

  • Tachiyomi backup manager Allow to inflate, decode, export, encode and gzip Tachiyomi backups.

  • Light representation Export Tachiyomi and Paperback backups into a small representation, easily usable to display their library content.

Where can I use this tool

On Paperback and Tachiyomi websites Using this repository scripts and ressources


How to use

  1. Fork and clone this repository

  2. Run:

Make sure you have node

npm install
  1. Get file backup from tachiyomi and put it '/ressources/backup-examples/youfilebackup.proto.gz'

  2. Edit file 'ressources/convertTachiToPaperBackup.ts'

backupPath = 'ressources/backup-examples/youfilebackup.proto.gz'
  1. Run convert:
npx ts-node ressources/convertPaperToTachiBackup.ts 
  1. You can see result from 'ressources/converted-backup-examples/'

You will then be able to modify this tool.

To add support for a new source, simply create a new class, inheriting from AbstractConversionSource. Update ConversionSources.ts with the new source converter to make it accessible for the backup converters.

To test your modifications, you can use this repository's scripts and ressources


Limitations

Paperback to Tachiyomi converter does not include categories to not raise the error "Expected wire type 0, found 2" when the backup is restored in the app. See src/BackupConverters/PaperToTachiBackupConverter.ts parseBackupManga() definition

If Tachiyomi use a different source for each language, Paperback only have a multi-languages source. Thus when converting from Paperback to Tachiyomi, the source used may be the English one, requiring a migration to use the correct one.

Tachiyomi use numeric sources ids like 2499283573021220255. To prevent an overflow, these ids should be used as Long. See src/BackupConverters/PaperToTachiBackupConverter.ts parseBackupManga() definition

About

Converts Tachiyomi backups to Paperback backup files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.0%
  • TypeScript 34.0%