iokernel / movesonarrdb Goto Github PK
View Code? Open in Web Editor NEWa script to move the Sonarr database from windows to Linux
a script to move the Sonarr database from windows to Linux
I am sharing this in case someone else ran into my issue and how I fixed it...
So on my Windows machine everything is stored under..
C:\Storage\Shows
C:\Storage\Shows - Complete
C:\Storage\Shows - Kids
etc....
On the linux box it was all stored under /Media
When I ran the script it would crash out with an error...
Traceback (most recent call last): File "../../fixdb.py", line 76, in <module> Series() File "../../fixdb.py", line 28, in Series directory, filename = row[0][3:].split("\\") ValueError: too many values to unpack
I solved this by editing the database on the Windows machine through Sonarr. I created empty placeholder folders on the C drive for C:\Shows, C:\Shows - Complete, etc... and then edited the database through Sonar pointing the shows at those folders. (Remember you can select multiple shows by click/checking the first and SHIFT/clicking/checking the last one. Once all my main folders were moved to the root of the C:\ I was able to then backup and run the script on the database with no trouble. It also goes without saying that I edited the script its self changing the variable and if statements to match my /Media folder as opposed to the original /media folder.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.