summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-22 00:15:19 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-22 00:15:19 +0100
commitbe793fb568c713a2e7aa1f703e69bfb553886b91 (patch)
tree704f42874ffcedcd4e2b27a3ac54d163fe454f2f /src/lib
parent40749e968c74845de25826c4a6cadc98801ac546 (diff)
Use NR for rating in a ISDCF name if none is specified.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/film.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 27ff07537..f87764da0 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -591,7 +591,9 @@ Film::isdcf_name (bool if_created_now) const
if (!dm.territory.empty ()) {
d << "_" << dm.territory;
- if (!dm.rating.empty ()) {
+ if (dm.rating.empty ()) {
+ d << "-NR";
+ } else {
d << "-" << dm.rating;
}
}