diff options
author | methodus <methodus@web.de> | 2013-01-04 09:08:28 +0100 |
---|---|---|
committer | methodus <methodus@web.de> | 2013-01-04 09:08:28 +0100 |
commit | 71eb0193ff6e6c54fdd1f179e4f3f0636d7183e8 (patch) | |
tree | 5bd5092bc5900a2ab0e131c5c8153e3c6ca19483 /plugins/provider | |
parent | 529f178bd15a361baf1e83837b1e872be14795a6 (diff) | |
download | vdr-plugin-upnp-71eb0193ff6e6c54fdd1f179e4f3f0636d7183e8.tar.gz vdr-plugin-upnp-71eb0193ff6e6c54fdd1f179e4f3f0636d7183e8.tar.bz2 |
Using recording title instead of info title for recordings to include the episodes name
Diffstat (limited to 'plugins/provider')
-rw-r--r-- | plugins/provider/recProvider/recProvider.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/provider/recProvider/recProvider.cpp b/plugins/provider/recProvider/recProvider.cpp index ff4dcbb..3a77435 100644 --- a/plugins/provider/recProvider/recProvider.cpp +++ b/plugins/provider/recProvider/recProvider.cpp @@ -13,6 +13,7 @@ #include <vdr/videodir.h> #include <string> #include <sstream> +#include <algorithm> #include <tools.h> #include <pwd.h> #include <unistd.h> @@ -128,7 +129,9 @@ public: } else { fs = string(rec->FileName()).substr(vul); } - list.push_back(fs); + bool contains = std::find(list.begin(), list.end(), fs) != list.end(); + if (!contains) + list.push_back(fs); } } |