sonarrsync's People
sonarrsync's Issues
Possible to add multiple paths?
Great script.
At the moment I run multiple versions as I have multiple file paths e.g.
# If this path exists
current_path = /user/mount_mergerfs/tdrive_vfs/tv_adults_gd/
# Replace with this path
new_path = /user/mount_mergerfs/tdrive_vfs/uhd/tv_adults_gd/
and
# If this path exists
current_path = /user/mount_mergerfs/tdrive_vfs/tv_kids_gd/
# Replace with this path
new_path = /user/mount_mergerfs/tdrive_vfs/uhd/tv_kids_gd/
Is it possible to process multiple filepaths in one iteration?
Thanks
Sonarr V3
Hey, thanks for this awesome script !
I use both instance with sonarrV3 and it works but returns an error still and I think it is because of the lang profile
on instance 1 I have multiple lang profile, example : "languageProfileId": 2"
But on second instance only one profile
so as you can see in the json return it has pushed "languageProfileId": 2," but it doesn't exist
I think my second sonarr instance still add it because I only have one
Is it possible to add this field on the config ? May be of use for others.
Thanks !
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] title: Immortality
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] qualityProfileId: 1
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] titleSlug: immortality
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] http://plex.lagoon.nc:8989/MediaCover/794/poster.jpg?lastWrite=636960055532272270
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] tvdbId: 365443
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] path: /NFS/ovrld1/TV_MULTI/Immortality
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] monitored: True
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] payload: {'title': 'Immortality', 'qualityProfileId': '1', 'titleSlug': 'immortality', 'tvdbId': 365443, 'path': '/NFS/ovrld1/TV_MULTI/Immortality', 'monitored': True, 'images': [{'coverType': 'poster', 'url': 'http://plex.lagoon.nc:8989/MediaCover/794/poster.jpg?lastWrite=636960055532272270'}], 'profileId': '1', 'seasons': [{'seasonNumber': 1, 'monitored': True, 'statistics': {'previousAiring': '2018-03-26T04:00:00Z', 'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 8, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}], 'seasonFolder': True, 'seriesType': 'standard'}
2019-06-13 18:22:35,001 [MainThread ] [DEBUG] Sleeping for: 5 seconds.
2019-06-13 18:22:42,315 [MainThread ] [DEBUG] http://plex.lagoon.nc:8990 "POST /api/series?apikey=5cf281987bf54421a41359c6c7e50922 HTTP/1.1" 201 None
2019-06-13 18:22:42,316 [MainThread ] [ERROR] adding Immortality to Sonarr 4k server failed. Response {
"title": "Immortality",
"alternateTitles": [],
"sortTitle": "immortality",
"seasonCount": 1,
"totalEpisodeCount": 0,
"episodeCount": 0,
"episodeFileCount": 0,
"sizeOnDisk": 0,
"status": "continuing",
"network": "Blackpills",
"images": [
{
"coverType": "poster",
"url": "/MediaCover/1473/poster.jpg"
}
],
"seasons": [
{
"seasonNumber": 1,
"monitored": true
}
],
"year": 2018,
"path": "/NFS/ovrld1/TV_MULTI/Immortality",
"profileId": 1,
"languageProfileId": 2,
"seasonFolder": true,
"monitored": true,
"useSceneNumbering": false,
"runtime": 10,
"tvdbId": 365443,
"tvRageId": 0,
"tvMazeId": 0,
"firstAired": "2018-03-25T13:00:00Z",
"seriesType": "standard",
"cleanTitle": "immortality",
"imdbId": "tt8297266",
"titleSlug": "immortality",
"certification": "TV-MA",
"genres": [
"Drama",
"Science-Fiction"
],
"tags": [],
"added": "2019-06-13T07:22:41.381044Z",
"ratings": {
"votes": 0,
"value": 0.0
},
"qualityProfileId": 1,
"id": 1473
}
rootFolders doesn't seem to work
I've set up my config like so:
[SyncServers]
# Ensure the servers start with 'Sonarr_'
[Sonarr_4k]
url = http://localhost:8989
key = CENSORED
# Only sync series that are in these root folders. ';' (semicolon) separated list. Remove line to disable.
rootFolders = N:\Series\
# If this path exists
current_path = N:\Series\
# Replace with this path
new_path = N:\Series 4k\
# This is the profile ID the series will be added to.
profileId = 5
# This is the profile ID the series must have on the Master server.
profileIdMatch = 8
[Sonarr_4k_2]
url = http://localhost:8989
key = CENSORED
# Only sync series that are in these root folders. ';' (semicolon) separated list. Remove line to disable.
rootFolders = N:\Documentary Series\
# If this path exists
current_path = N:\Documentary Series\
# Replace with this path
new_path = N:\Documentary Series 4k\
# This is the profile ID the series will be added to.
profileId = 5
# This is the profile ID the series must have on the Master server.
profileIdMatch = 8
What I expected above, was series with the root path of N:\Series\
would be added with root path of N:\Series 4k\
.
And for Sonarr_4k_2 it would add series with root path of N:\Documentary Series\
would be added with root path of N:\Documentary Series 4k\
.
However, it seems like it's also processing the same show for Sonarr_4k_2
, even though the root folder doesn't match.
2019-08-14 22:38:30,578 [MainThread ] [DEBUG] Updating serie path from: N:\Series\Game Of Thrones to N:\Series 4k\Game Of Thrones
2019-08-14 22:38:30,579 [MainThread ] [DEBUG] server: 4k
2019-08-14 22:38:30,581 [MainThread ] [DEBUG] title: Game of Thrones
2019-08-14 22:38:30,582 [MainThread ] [DEBUG] qualityProfileId: 5
2019-08-14 22:38:30,582 [MainThread ] [DEBUG] titleSlug: game-of-thrones
2019-08-14 22:38:30,583 [MainThread ] [DEBUG] http://192.168.0.21:8989/MediaCover/29/fanart.jpg?lastWrite=636922880141039567
2019-08-14 22:38:30,583 [MainThread ] [DEBUG] http://192.168.0.21:8989/MediaCover/29/banner.jpg?lastWrite=636942807338535734
2019-08-14 22:38:30,584 [MainThread ] [DEBUG] http://192.168.0.21:8989/MediaCover/29/poster.jpg?lastWrite=636996957573271186
2019-08-14 22:38:30,584 [MainThread ] [DEBUG] tvdbId: 121361
2019-08-14 22:38:30,585 [MainThread ] [DEBUG] path: N:\Series 4k\Game Of Thrones
2019-08-14 22:38:30,585 [MainThread ] [DEBUG] monitored: True
2019-08-14 22:38:30,585 [MainThread ] [DEBUG] payload: {'title': 'Game of Thrones', 'qualityProfileId': '5', 'titleSlug': 'game-of-thrones', 'tvdbId': 121361, 'path': 'N:\\Series 4k\\Game Of Thrones', 'monitored': True, 'images': [{'coverType': 'fanart', 'url': 'http://192.168.0.21:8989/MediaCover/29/fanart.jpg?lastWrite=636922880141039567'}, {'coverType': 'banner', 'url': 'http://192.168.0.21:8989/MediaCover/29/banner.jpg?lastWrite=636942807338535734'}, {'coverType': 'poster', 'url': 'http://192.168.0.21:8989/MediaCover/29/poster.jpg?lastWrite=636996957573271186'}], 'profileId': '5', 'seasons': [{'seasonNumber': 0, 'monitored': False, 'statistics': {'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 54, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 1, 'monitored': False, 'statistics': {'previousAiring': '2011-06-20T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 43089781860, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 2, 'monitored': False, 'statistics': {'previousAiring': '2012-06-04T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 46903114906, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 3, 'monitored': False, 'statistics': {'previousAiring': '2013-06-10T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 46914059126, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 4, 'monitored': False, 'statistics': {'previousAiring': '2014-06-16T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 19192532251, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 5, 'monitored': True, 'statistics': {'previousAiring': '2015-06-15T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 10320891797, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 6, 'monitored': True, 'statistics': {'previousAiring': '2016-06-27T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 12266305645, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 7, 'monitored': True, 'statistics': {'previousAiring': '2017-08-28T01:00:00Z', 'episodeFileCount': 7, 'episodeCount': 7, 'totalEpisodeCount': 7, 'sizeOnDisk': 37272756752, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 8, 'monitored': True, 'statistics': {'previousAiring': '2019-05-20T01:00:00Z', 'episodeFileCount': 6, 'episodeCount': 6, 'totalEpisodeCount': 6, 'sizeOnDisk': 25075125399, 'percentOfEpisodes': 100.0}}], 'seasonFolder': True, 'seriesType': 'standard'}
2019-08-14 22:38:30,587 [MainThread ] [DEBUG] WhatIf: Not actually adding serie to Sonarr 4k.
2019-08-14 22:38:30,588 [MainThread ] [DEBUG] Updating serie path from: N:\Series\Game Of Thrones to N:\Series\Game Of Thrones
2019-08-14 22:38:30,588 [MainThread ] [DEBUG] server: 4k_2
2019-08-14 22:38:30,588 [MainThread ] [DEBUG] title: Game of Thrones
2019-08-14 22:38:30,589 [MainThread ] [DEBUG] qualityProfileId: 5
2019-08-14 22:38:30,589 [MainThread ] [DEBUG] titleSlug: game-of-thrones
2019-08-14 22:38:30,590 [MainThread ] [DEBUG] http://192.168.0.21:8989http://192.168.0.21:8989/MediaCover/29/fanart.jpg?lastWrite=636922880141039567
2019-08-14 22:38:30,593 [MainThread ] [DEBUG] http://192.168.0.21:8989http://192.168.0.21:8989/MediaCover/29/banner.jpg?lastWrite=636942807338535734
2019-08-14 22:38:30,594 [MainThread ] [DEBUG] http://192.168.0.21:8989http://192.168.0.21:8989/MediaCover/29/poster.jpg?lastWrite=636996957573271186
2019-08-14 22:38:30,594 [MainThread ] [DEBUG] tvdbId: 121361
2019-08-14 22:38:30,594 [MainThread ] [DEBUG] path: N:\Series\Game Of Thrones
2019-08-14 22:38:30,595 [MainThread ] [DEBUG] monitored: True
2019-08-14 22:38:30,595 [MainThread ] [DEBUG] payload: {'title': 'Game of Thrones', 'qualityProfileId': '5', 'titleSlug': 'game-of-thrones', 'tvdbId': 121361, 'path': 'N:\\Series\\Game Of Thrones', 'monitored': True, 'images': [{'coverType': 'fanart', 'url': 'http://192.168.0.21:8989http://192.168.0.21:8989/MediaCover/29/fanart.jpg?lastWrite=636922880141039567'}, {'coverType': 'banner', 'url': 'http://192.168.0.21:8989http://192.168.0.21:8989/MediaCover/29/banner.jpg?lastWrite=636942807338535734'}, {'coverType': 'poster', 'url': 'http://192.168.0.21:8989http://192.168.0.21:8989/MediaCover/29/poster.jpg?lastWrite=636996957573271186'}], 'profileId': '5', 'seasons': [{'seasonNumber': 0, 'monitored': False, 'statistics': {'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 54, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 1, 'monitored': False, 'statistics': {'previousAiring': '2011-06-20T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 43089781860, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 2, 'monitored': False, 'statistics': {'previousAiring': '2012-06-04T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 46903114906, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 3, 'monitored': False, 'statistics': {'previousAiring': '2013-06-10T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 46914059126, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 4, 'monitored': False, 'statistics': {'previousAiring': '2014-06-16T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 19192532251, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 5, 'monitored': True, 'statistics': {'previousAiring': '2015-06-15T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 10320891797, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 6, 'monitored': True, 'statistics': {'previousAiring': '2016-06-27T01:00:00Z', 'episodeFileCount': 10, 'episodeCount': 10, 'totalEpisodeCount': 10, 'sizeOnDisk': 12266305645, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 7, 'monitored': True, 'statistics': {'previousAiring': '2017-08-28T01:00:00Z', 'episodeFileCount': 7, 'episodeCount': 7, 'totalEpisodeCount': 7, 'sizeOnDisk': 37272756752, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 8, 'monitored': True, 'statistics': {'previousAiring': '2019-05-20T01:00:00Z', 'episodeFileCount': 6, 'episodeCount': 6, 'totalEpisodeCount': 6, 'sizeOnDisk': 25075125399, 'percentOfEpisodes': 100.0}}], 'seasonFolder': True, 'seriesType': 'standard'}
2019-08-14 22:38:30,597 [MainThread ] [DEBUG] WhatIf: Not actually adding serie to Sonarr 4k_2.
If you examine above log. Then first it does rename path to N:\Series 4k\Game Of Thrones
, which is correct. However, then it starts to process the show again for Sonarr_4k_2
. Look from the following place in the log:
2019-08-14 22:38:30,588 [MainThread ] [DEBUG] Updating serie path from: N:\Series\Game Of Thrones to N:\Series\Game Of Thrones
2019-08-14 22:38:30,588 [MainThread ] [DEBUG] server: 4k_2
2019-08-14 22:38:30,588 [MainThread ] [DEBUG] title: Game of Thrones
2019-08-14 22:38:30,589 [MainThread ] [DEBUG] qualityProfileId: 5
2019-08-14 22:38:30,589 [MainThread ] [DEBUG] titleSlug: game-of-thrones
Did I misunderstand how root folders work, or?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.