aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/WWW/StrawViewer.pm2
-rw-r--r--lib/WWW/StrawViewer/Utils.pm4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/WWW/StrawViewer.pm b/lib/WWW/StrawViewer.pm
index de13099..b90536f 100644
--- a/lib/WWW/StrawViewer.pm
+++ b/lib/WWW/StrawViewer.pm
@@ -20,7 +20,7 @@ use parent qw(
=head1 NAME
-WWW::StrawViewer - A very easy interface to YouTube.
+WWW::StrawViewer - A very easy interface to YouTube, using the API of invidio.us.
=cut
diff --git a/lib/WWW/StrawViewer/Utils.pm b/lib/WWW/StrawViewer/Utils.pm
index f70afc0..153aab9 100644
--- a/lib/WWW/StrawViewer/Utils.pm
+++ b/lib/WWW/StrawViewer/Utils.pm
@@ -593,6 +593,10 @@ sub get_publication_age_approx {
return "$1d";
}
+ if ($age =~ /^(\d+) week/) {
+ return "$1w";
+ }
+
if ($age =~ /^(\d+) month/) {
return "$1m";
}