summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2009-01-05 14:34:46 +0100
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2009-01-05 14:34:46 +0100
commitac8b392c635fea872b7cb97cdc858512d10aa90e (patch)
treeba35f1f3ad389c7117e312a112bd7618be7692bf
parentcc1a932981135954289d39046c15d39483ab9332 (diff)
downloadvdr-plugin-muggle-ac8b392c635fea872b7cb97cdc858512d10aa90e.tar.gz
vdr-plugin-muggle-ac8b392c635fea872b7cb97cdc858512d10aa90e.tar.bz2
last version broke importing from setup menu
-rw-r--r--HISTORY1
-rw-r--r--mg_db.c8
2 files changed, 7 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 1de8d24..a0991d1 100644
--- a/HISTORY
+++ b/HISTORY
@@ -381,3 +381,4 @@ Balke.
- updated translations by Ville Skyttä and Diego Pierotto
2009-XX-XX Version 0.2.3
+- last version broke importing from setup menu
diff --git a/mg_db.c b/mg_db.c
index dc85a76..7b11267 100644
--- a/mg_db.c
+++ b/mg_db.c
@@ -1210,11 +1210,15 @@ mgDb::SyncFile(const char *filename) {
mgSQLString c_lang(m_TLAN);
mgSQLString c_cddbid(getAlbum(filename,c_album,c_artist));
- const char *cwd = mugglepath();
+ const char *cwd;
+ if (the_setup.IsMugglei())
+ cwd = mugglepath();
+ else
+ cwd = strdup("");
int tldlen = strlen(the_setup.ToplevelDir);
int cwdlen = strlen(cwd);
const char *relpath=cwd;
- if (cwdlen>tldlen); relpath += tldlen;
+ if (cwdlen>tldlen) relpath += tldlen;
char *b;
msprintf(&b,"%s%s",relpath,cfilename);
free((void*)cwd);