From d8d1f94a8668dc19a4c4ea7fc74850b816e1afb2 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 23 Mar 2021 01:24:37 +0100 Subject: [PATCH] v0.9.12 --- copyparty/__version__.py | 2 +- copyparty/up2k.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 75e05e8f..2cc1db98 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,6 +1,6 @@ # coding: utf-8 -VERSION = (0, 9, 11) +VERSION = (0, 9, 12) CODENAME = "the strongest music server" BUILD_DT = (2021, 3, 23) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 8c4fb542..daef233d 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -288,9 +288,9 @@ class Up2k(object): self.pp.n = next(dbw[0].execute("select count(w) from up"))[0] excl = [ - vol.realpath + d.vpath[len(vol.vpath) :] + vol.realpath + "/" + d.vpath[len(vol.vpath) :].lstrip("/") for d in all_vols - if d.vpath.startswith(vol.vpath + "/") + if d != vol and (d.vpath.startswith(vol.vpath + "/") or not vol.vpath) ] n_add = self._build_dir(dbw, top, set(excl), top) n_rm = self._drop_lost(dbw[0], top)