From 65f07f2d5998c8470941958a77cdcaf2702a3081 Mon Sep 17 00:00:00 2001 From: Romain Lecat Date: Fri, 10 Jul 2020 21:57:34 +0200 Subject: [PATCH] Use source path when path is not specified --- index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.py b/index.py index d6f49e6..a77f678 100644 --- a/index.py +++ b/index.py @@ -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 basename(content.get('path')) + instance_path = instanceB_path or content.get('path') # if given this, we want to filter from instance by profile id if instanceA_profile_filter_id: