diff options
author | Timo Eskola <timo@tolleri.net> | 2018-10-02 11:02:10 +0300 |
---|---|---|
committer | Timo Eskola <timo@tolleri.net> | 2018-10-02 11:02:10 +0300 |
commit | 68739fd72beb9745b3e47b9e466311ef23a8ca97 (patch) | |
tree | 8ee07082c71e6fbcbde9e3f715e5ef2f720748d5 /recording.c | |
parent | eb2e8591e2e79ac456f0edabda644586ad6a520b (diff) | |
download | vdr-plugin-duplicates-master.tar.gz vdr-plugin-duplicates-master.tar.bz2 |
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recording.c b/recording.c index 0217b1e..887c879 100644 --- a/recording.c +++ b/recording.c @@ -66,6 +66,14 @@ cDuplicateRecording::~cDuplicateRecording() { delete duplicates; } +bool cDuplicateRecording::HasDescription(void) const { + if (!description.empty()) + return true; + else if (duplicates && duplicates->First()) + return duplicates->First()->HasDescription(); + return false; +} + bool cDuplicateRecording::IsDuplicate(cDuplicateRecording *DuplicateRecording) { if (!HasDescription() || !DuplicateRecording->HasDescription()) return false; |