Root Path must not contain series/movie folder

pull/42/head
Romain Lecat 4 years ago
parent 65f07f2d59
commit 88767b0ff3
No known key found for this signature in database
GPG Key ID: 1C13FBFFD7A29594

@ -8,7 +8,7 @@ import configparser
import sys import sys
import time import time
import re import re
from os.path import basename from os.path import dirname
from config import ( from config import (
instanceA_url, instanceA_key, instanceA_path, instanceA_profile, 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: for content in instanceA_contents:
if content[content_id_key] not in instanceB_contentIds: if content[content_id_key] not in instanceB_contentIds:
title = content.get('title') or content.get('artistName') 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 given this, we want to filter from instance by profile id
if instanceA_profile_filter_id: if instanceA_profile_filter_id:

Loading…
Cancel
Save