diff --git a/Makefile b/Makefile
index cd43c54..0693867 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ $(SOFILE): $(OBJS)
$(CC) $(CFLAGS) -shared $(OBJS) $(LIBS) -o $@
install: $(SOFILE) install-config
- install -D $(SOFILE) $(PLGDEST)/
+ install -D $(SOFILE) $(_PLGDEST)/
clean:
@-rm -f $(OBJS) core* *~ *.so
diff --git a/configs/tvsp.xsl b/configs/tvsp.xsl
index 72c0232..226f69b 100644
--- a/configs/tvsp.xsl
+++ b/configs/tvsp.xsl
@@ -1,347 +1,217 @@
-
+ xmlns:str="http://exslt.org/strings">
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Spielfilm
-
-
- Serie
-
-
- Kinder
-
-
- Sport
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- GoldTipp
-
-
- TagesTipp
-
-
- TopTipp
-
-
- Tipp
-
-
-
-
-
- Einer der besten Filme aller Zeiten
-
-
- Sehr empfehlenswert
-
-
- Empfehlenswert
-
-
- Eher durchschnittlich
-
-
- Eher uninteressant
-
-
-
-
-
- 5
-
-
-
-
-
-
-
-
-
-
- / Spaß
-
-
- / Action
-
-
- / Erotik
-
-
- / Spannung
-
-
- / Anspruch
-
-
-
-
-
-
-
-
-
-
-
- Stereo
-
-
-
-
-
-
-
-
- [HDTV]
-
-
- [Live]
-
-
- [Neu]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- jpg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Spielfilm
+
+
+ Serie
+
+
+ Kinder
+
+
+ Sport
+
+
+
+
-
-
-
-
-
-
-
- ....
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Sonstige
-
-
+ GoldTipp
+ TagesTipp
+ TopTipp
+ Tipp
-
-
\ No newline at end of file
+
+
+ Einer der besten Filme aller Zeiten
+
+
+ Sehr empfehlenswert
+
+
+ Empfehlenswert
+
+
+ Eher durchschnittlich
+
+
+ Eher uninteressant
+
+
+
+
+ 5
+
+
+
+
+ / Spaß
+ / Action
+ / Erotik
+ / Spannung
+ / Anspruch
+
+
+
+
+
+ Stereo
+
+
+
+
+ [HDTV]
+ [Live]
+ [Neu]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jpg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ....
+
+
+
+
+
+ Sonstige
+
+
+
+
+
diff --git a/tvsp.c b/tvsp.c
index a6f32ec..5181ecb 100644
--- a/tvsp.c
+++ b/tvsp.c
@@ -263,7 +263,9 @@ int Tvsp::processDay(int day, int fullupdate, Statistic *stat) {
}
obj->connection->commit();
- downloadImages();
+
+ if (!obj->doShutDown())
+ downloadImages();
return success;
}
@@ -450,7 +452,7 @@ void Tvsp::downloadImages() {
tell(0, "Downloading images...");
int n = 0;
- for (std::set::iterator it = imagefileSet.begin(); it != imagefileSet.end(); ++it) {
+ for (std::set::iterator it = imagefileSet.begin(); it != imagefileSet.end() && !obj->doShutDown(); ++it) {
// check if file is not on disk
std::size_t found = it->find_last_of("/");
if (found == std::string::npos) continue;
diff --git a/tvsp.h b/tvsp.h
index db234c8..8c8970b 100644
--- a/tvsp.h
+++ b/tvsp.h
@@ -19,11 +19,10 @@
#include
#include
-#include "../../epgd.h"
-#include "../../lib/common.h"
-#include "../../lib/curl.h"
+#include "epgd.h"
+#include "lib/curl.h"
-#define TVSP_VERSION "0.0.2"
+#define TVSP_VERSION "0.0.3"
class Tvsp : public Plugin {
private: