diff options
author | trizen <trizen@protonmail.com> | 2020-11-21 00:23:10 +0200 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-12-02 13:09:00 -0500 |
commit | bdd6cda8011504e1d2dff30e8a3dd45cfeac3021 (patch) | |
tree | 2075be5dd997cbe6aff7b6429b1b4975a4a79f28 /lib/WWW | |
parent | aec5c1cfe10cea9da3410e38e5a0b319a15cca12 (diff) | |
download | fair-viewer-bdd6cda8011504e1d2dff30e8a3dd45cfeac3021.tar.lz fair-viewer-bdd6cda8011504e1d2dff30e8a3dd45cfeac3021.tar.xz fair-viewer-bdd6cda8011504e1d2dff30e8a3dd45cfeac3021.zip |
- Show the relative age of videos, instead of the published date (which was inaccurate awyway).
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'lib/WWW')
-rw-r--r-- | lib/WWW/FairViewer/Utils.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/WWW/FairViewer/Utils.pm b/lib/WWW/FairViewer/Utils.pm index 293bcf6..e341a57 100644 --- a/lib/WWW/FairViewer/Utils.pm +++ b/lib/WWW/FairViewer/Utils.pm @@ -631,6 +631,10 @@ sub get_publication_date { #$self->format_date($info->{snippet}{publishedAt}); #$self->format_date + if (defined $info->{publishedText}) { + return $info->{publishedText}; + } + require Encode; require Time::Piece; |