Giter VIP home page Giter VIP logo

Comments (7)

mikiher avatar mikiher commented on September 28, 2024 1

I am pretty sure what you did is not supported at the moment.

I believe the docker version database contains paths to covers in the docker directory space (even if they map to windows folders). When you restore a backed up version of that into your Windows install (which knows nothing about docker), those paths do not exist, so images cannot be restored.

What you're requesting seems to be a valuable feature. I'm not sure how easy it is to implement (also possible that I'm all wrong about this, and it's a very easy fix).

@advplyr what do you think?

from audiobookshelf-windows.

advplyr avatar advplyr commented on September 28, 2024

The paths to your library folders would need to be exactly the same or it will not work, so in other words you cannot do what you are trying to do without manually updating all of the file paths in the database.

I don't think this is something we will be supporting since how would we know what file paths to use?

You can do this yourself though and maybe if you can write some good SQL queries it wouldn't be too difficult.

It's not just the images that won't work, you won't be able to play the audio files either since those file paths will also be incorrect.

from audiobookshelf-windows.

mikiher avatar mikiher commented on September 28, 2024

The paths to your library folders would need to be exactly the same or it will not work, so in other words you cannot do what you are trying to do without manually updating all of the file paths in the database.

I don't think this is something we will be supporting since how would we know what file paths to use?

in abswatcher, I obtained the mapping between docker and windows folders programmatically by inspecting the audiobookshelf docker container. A similar approach can be used here.

You can do this yourself though and maybe if you can write some good SQL queries it wouldn't be too difficult.

I might get to write this docker-to-windows audiobookshelf migration tool at some point - as I said, it would be a valuable feature to have, since up until now docker was the recommended option for installing on Windows, and I'm sure many people have large docker based config and metadata directories.

I don't believe I will get to this soon, though.

It's not just the images that won't work, you won't be able to play the audio files either since those file paths will also be incorrect.

from audiobookshelf-windows.

advplyr avatar advplyr commented on September 28, 2024

It will be nice to offer as an external script but I don't think it should be part of the server. Possibly part of the Windows tray app if it is possible to add in a clean way.

from audiobookshelf-windows.

mikiher avatar mikiher commented on September 28, 2024

Agreed, that's what I meant.

from audiobookshelf-windows.

anakinsleftleg avatar anakinsleftleg commented on September 28, 2024

This would be great, since the tools to create MB4 files and do metadata embedding and chapter editing (actually I haven't checked if these are in the Windows version), are only in the docker version and are great tools. So managing all the audio files there, and then eventually importing the database into the Windows version would be ideal.

from audiobookshelf-windows.

GamerMagic12 avatar GamerMagic12 commented on September 28, 2024

Using the built-in "Find and Replace All" tool in SQLite Browser, I migrated all old Docker file paths to the new Windows paths by simply updating the beginning of each path. This allowed me to transfer all user progress and all the other data. It took at most like 5mins and was super easy.

from audiobookshelf-windows.

Related Issues (19)

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.