From 08e872d09f35cddccbbeb1c5af0fdcf311b55e00 Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Wed, 22 Jul 2020 17:30:42 +0300 Subject: [PATCH] apply suggestion --- src/components/mediainfo/mediainfo.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/mediainfo/mediainfo.js b/src/components/mediainfo/mediainfo.js index 724d3462fb..71acc5bbce 100644 --- a/src/components/mediainfo/mediainfo.js +++ b/src/components/mediainfo/mediainfo.js @@ -66,7 +66,7 @@ import 'emby-button'; miscInfo.push(text); } catch (e) { - console.error(`error parsing date: ${item.StartDate}`); + console.error('error parsing date:', item.StartDate); } } @@ -152,7 +152,7 @@ import 'emby-button'; text = datetime.toLocaleDateString(date); miscInfo.push(text); } catch (e) { - console.error(`error parsing date: ${item.PremiereDate}`); + console.error('error parsing date:', item.PremiereDate); } } } @@ -185,7 +185,7 @@ import 'emby-button'; miscInfo.push(text); } } catch (e) { - console.error(`error parsing date: ${item.StartDate}`); + console.error('error parsing date:', item.StartDate); } } @@ -209,7 +209,7 @@ import 'emby-button'; } } catch (e) { - console.error(`error parsing date: ${item.EndDate}`); + console.error('error parsing date:', item.EndDate); } } @@ -257,7 +257,7 @@ import 'emby-button'; text = globalize.translate('OriginalAirDateValue', datetime.toLocaleDateString(date)); miscInfo.push(text); } catch (e) { - console.error(`error parsing date: ${item.PremiereDate}`); + console.error('error parsing date:', item.PremiereDate); } } else if (item.ProductionYear) { miscInfo.push(item.ProductionYear); @@ -276,7 +276,7 @@ import 'emby-button'; text = datetime.parseISO8601Date(item.PremiereDate).getFullYear(); miscInfo.push(text); } catch (e) { - console.error(`error parsing date: ${item.PremiereDate}`); + console.error('error parsing date:', item.PremiereDate); } } }