Do not try to add an empty rating.
This commit is contained in:
1 parent
32ccc43d42
commit
44615c9dbe
1 file changed
+1
-1
@@ -130,7 +130,7 @@ public struct TheTVDB : MetadataService, MetadataNameService {
|
||||
result[SBMetadataResultTrackNumber] = episode.airedEpisodeNumber
|
||||
|
||||
// Rating
|
||||
if let rating = info.rating {
|
||||
if let rating = info.rating, rating.count > 0 {
|
||||
result[SBMetadataResultRating] = MP42Ratings.defaultManager.ratingStringForiTunesCountry("USA",
|
||||
media: "TV",
|
||||
ratingString: rating)
|
||||
|
||||
Reference in new issue
Block a user