From 88767b0ff38992b60fb5bc0061c0074a579e7d54 Mon Sep 17 00:00:00 2001 From: Romain Lecat Date: Fri, 10 Jul 2020 22:09:08 +0200 Subject: [PATCH] Root Path must not contain series/movie folder --- index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.py b/index.py index a77f678..8617268 100644 --- a/index.py +++ b/index.py @@ -8,7 +8,7 @@ import configparser import sys import time import re -from os.path import basename +from os.path import dirname from config import ( instanceA_url, instanceA_key, instanceA_path, instanceA_profile, @@ -205,7 +205,7 @@ def sync_servers(instanceA_contents, instanceB_language_id, instanceB_contentIds for content in instanceA_contents: if content[content_id_key] not in instanceB_contentIds: title = content.get('title') or content.get('artistName') - instance_path = instanceB_path or content.get('path') + instance_path = instanceB_path or dirname(content.get('path')) # if given this, we want to filter from instance by profile id if instanceA_profile_filter_id: