X-Git-Url: https://code.delx.au/mediapc-tools/blobdiff_plain/95809cb75c985ef101736386582da2c7a92fc43a..de823c545ac2d022f2312db08df31446a1793fa0:/mythsymlink diff --git a/mythsymlink b/mythsymlink index 7787a72..efccc17 100755 --- a/mythsymlink +++ b/mythsymlink @@ -72,6 +72,9 @@ for row in cursor: source = "%s/%s" % (recordingsdir, basename) dest = "%s/%s" % (title, filename) + if not os.path.isfile(source): + continue + dirnames = dest.split("/")[:-1] for i in xrange(1, len(dirnames)+1): dirname = "/".join(dirnames[:i])