diff --git a/mythtv/libs/libmythmetadata/metadatagrabber.cpp b/mythtv/libs/libmythmetadata/metadatagrabber.cpp
index 85600a4..75db39c 100644
a
|
b
|
GrabberList MetaGrabberScript::GetList(GrabberType type, |
123 | 123 | for (it = grabberTypes.begin(); it != grabberTypes.end(); ++it) |
124 | 124 | { |
125 | 125 | QString path = (it->path).arg(GetShareDir()); |
126 | | QStringList scripts = QDir(path).entryList(QDir::Files); |
| 126 | QStringList scripts = QDir(path).entryList(QDir::Executable | QDir::Files); |
127 | 127 | if (scripts.count() == 0) |
128 | 128 | // no scripts found |
129 | 129 | continue; |
… |
… |
GrabberList MetaGrabberScript::GetList(GrabberType type, |
132 | 132 | QStringList::const_iterator it2 = scripts.begin(); |
133 | 133 | for (; it2 != scripts.end(); ++it2) |
134 | 134 | { |
135 | | QString cmd = QString("%1%2").arg(path).arg(*it2); |
| 135 | QString cmd = QDir(path).filePath(*it2); |
136 | 136 | MetaGrabberScript script(cmd); |
137 | 137 | |
138 | 138 | if (script.IsValid()) |
… |
… |
MetadataLookupList MetaGrabberScript::RunGrabber(const QStringList &args, |
453 | 453 | .arg(m_fullcommand).arg(args.join(" "))); |
454 | 454 | |
455 | 455 | grabber.Run(); |
456 | | if (grabber.Wait() != GENERIC_EXIT_OK) |
| 456 | if (grabber.Wait(60) != GENERIC_EXIT_OK) |
457 | 457 | return list; |
458 | 458 | |
459 | 459 | QByteArray result = grabber.ReadAll(); |