aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-02-26 09:22:46 +0200
committertrizen <trizen@protonmail.com>2020-02-26 09:22:46 +0200
commit677e3367377ee3d86268ec3df4396980f6b253ac (patch)
tree72186468893a88759848d48a5a52c9a1393f93e3
parent0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3 (diff)
downloadfair-viewer-677e3367377ee3d86268ec3df4396980f6b253ac.tar.lz
fair-viewer-677e3367377ee3d86268ec3df4396980f6b253ac.tar.xz
fair-viewer-677e3367377ee3d86268ec3df4396980f6b253ac.zip
new file: META.json
new file: META.yml
-rw-r--r--.gitignore4
-rw-r--r--META.json121
-rw-r--r--META.yml81
-rw-r--r--lib/WWW/StrawViewer.pm2
-rw-r--r--lib/WWW/StrawViewer/Utils.pm4
5 files changed, 209 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index c435823..8fd35e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,7 @@
!Build/
.last_cover_stats
-/META.yml
-/META.json
+#/META.yml
+#/META.json
/MYMETA.*
*.o
*.pm.tdy
diff --git a/META.json b/META.json
new file mode 100644
index 0000000..c49deff
--- /dev/null
+++ b/META.json
@@ -0,0 +1,121 @@
+{
+ "abstract" : "A very easy interface to YouTube, using the API of invidio.us.",
+ "author" : [
+ "Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>"
+ ],
+ "dynamic_config" : 1,
+ "generated_by" : "Module::Build version 0.4231",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : 2
+ },
+ "name" : "WWW-StrawViewer",
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "Test::More" : "0"
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "Module::Build" : "0"
+ }
+ },
+ "runtime" : {
+ "recommends" : {
+ "JSON::XS" : "0",
+ "LWP::UserAgent::Cached" : "0",
+ "Mozilla::CA" : "0",
+ "Term::ReadLine::Gnu::XS" : "0"
+ },
+ "requires" : {
+ "Data::Dump" : "0",
+ "Encode" : "0",
+ "File::Path" : "0",
+ "File::Spec" : "0",
+ "File::Spec::Functions" : "0",
+ "Getopt::Long" : "0",
+ "HTTP::Request" : "0",
+ "JSON" : "0",
+ "LWP::Protocol::https" : "0",
+ "LWP::UserAgent" : "0",
+ "List::Util" : "0",
+ "MIME::Base64" : "0",
+ "Term::ANSIColor" : "0",
+ "Term::ReadLine" : "0",
+ "Text::ParseWords" : "0",
+ "Text::Wrap" : "0",
+ "URI::Escape" : "0",
+ "perl" : "5.016"
+ }
+ }
+ },
+ "provides" : {
+ "WWW::StrawViewer" : {
+ "file" : "lib/WWW/StrawViewer.pm",
+ "version" : "v3.7.4"
+ },
+ "WWW::StrawViewer::Activities" : {
+ "file" : "lib/WWW/StrawViewer/Activities.pm"
+ },
+ "WWW::StrawViewer::Authentication" : {
+ "file" : "lib/WWW/StrawViewer/Authentication.pm"
+ },
+ "WWW::StrawViewer::Channels" : {
+ "file" : "lib/WWW/StrawViewer/Channels.pm"
+ },
+ "WWW::StrawViewer::CommentThreads" : {
+ "file" : "lib/WWW/StrawViewer/CommentThreads.pm"
+ },
+ "WWW::StrawViewer::GetCaption" : {
+ "file" : "lib/WWW/StrawViewer/GetCaption.pm"
+ },
+ "WWW::StrawViewer::GuideCategories" : {
+ "file" : "lib/WWW/StrawViewer/GuideCategories.pm"
+ },
+ "WWW::StrawViewer::Itags" : {
+ "file" : "lib/WWW/StrawViewer/Itags.pm"
+ },
+ "WWW::StrawViewer::ParseJSON" : {
+ "file" : "lib/WWW/StrawViewer/ParseJSON.pm"
+ },
+ "WWW::StrawViewer::ParseXML" : {
+ "file" : "lib/WWW/StrawViewer/ParseXML.pm"
+ },
+ "WWW::StrawViewer::PlaylistItems" : {
+ "file" : "lib/WWW/StrawViewer/PlaylistItems.pm"
+ },
+ "WWW::StrawViewer::Playlists" : {
+ "file" : "lib/WWW/StrawViewer/Playlists.pm"
+ },
+ "WWW::StrawViewer::RegularExpressions" : {
+ "file" : "lib/WWW/StrawViewer/RegularExpressions.pm"
+ },
+ "WWW::StrawViewer::Search" : {
+ "file" : "lib/WWW/StrawViewer/Search.pm"
+ },
+ "WWW::StrawViewer::Subscriptions" : {
+ "file" : "lib/WWW/StrawViewer/Subscriptions.pm"
+ },
+ "WWW::StrawViewer::Utils" : {
+ "file" : "lib/WWW/StrawViewer/Utils.pm"
+ },
+ "WWW::StrawViewer::VideoCategories" : {
+ "file" : "lib/WWW/StrawViewer/VideoCategories.pm"
+ },
+ "WWW::StrawViewer::Videos" : {
+ "file" : "lib/WWW/StrawViewer/Videos.pm"
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "license" : [
+ "http://dev.perl.org/licenses/"
+ ]
+ },
+ "version" : "v3.7.4",
+ "x_serialization_backend" : "JSON::PP version 4.04"
+}
diff --git a/META.yml b/META.yml
new file mode 100644
index 0000000..f0d60d4
--- /dev/null
+++ b/META.yml
@@ -0,0 +1,81 @@
+---
+abstract: 'A very easy interface to YouTube, using the API of invidio.us.'
+author:
+ - 'Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>'
+build_requires:
+ Test::More: '0'
+configure_requires:
+ Module::Build: '0'
+dynamic_config: 1
+generated_by: 'Module::Build version 0.4231, CPAN::Meta::Converter version 2.150010'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: '1.4'
+name: WWW-StrawViewer
+provides:
+ WWW::StrawViewer:
+ file: lib/WWW/StrawViewer.pm
+ version: v3.7.4
+ WWW::StrawViewer::Activities:
+ file: lib/WWW/StrawViewer/Activities.pm
+ WWW::StrawViewer::Authentication:
+ file: lib/WWW/StrawViewer/Authentication.pm
+ WWW::StrawViewer::Channels:
+ file: lib/WWW/StrawViewer/Channels.pm
+ WWW::StrawViewer::CommentThreads:
+ file: lib/WWW/StrawViewer/CommentThreads.pm
+ WWW::StrawViewer::GetCaption:
+ file: lib/WWW/StrawViewer/GetCaption.pm
+ WWW::StrawViewer::GuideCategories:
+ file: lib/WWW/StrawViewer/GuideCategories.pm
+ WWW::StrawViewer::Itags:
+ file: lib/WWW/StrawViewer/Itags.pm
+ WWW::StrawViewer::ParseJSON:
+ file: lib/WWW/StrawViewer/ParseJSON.pm
+ WWW::StrawViewer::ParseXML:
+ file: lib/WWW/StrawViewer/ParseXML.pm
+ WWW::StrawViewer::PlaylistItems:
+ file: lib/WWW/StrawViewer/PlaylistItems.pm
+ WWW::StrawViewer::Playlists:
+ file: lib/WWW/StrawViewer/Playlists.pm
+ WWW::StrawViewer::RegularExpressions:
+ file: lib/WWW/StrawViewer/RegularExpressions.pm
+ WWW::StrawViewer::Search:
+ file: lib/WWW/StrawViewer/Search.pm
+ WWW::StrawViewer::Subscriptions:
+ file: lib/WWW/StrawViewer/Subscriptions.pm
+ WWW::StrawViewer::Utils:
+ file: lib/WWW/StrawViewer/Utils.pm
+ WWW::StrawViewer::VideoCategories:
+ file: lib/WWW/StrawViewer/VideoCategories.pm
+ WWW::StrawViewer::Videos:
+ file: lib/WWW/StrawViewer/Videos.pm
+recommends:
+ JSON::XS: '0'
+ LWP::UserAgent::Cached: '0'
+ Mozilla::CA: '0'
+ Term::ReadLine::Gnu::XS: '0'
+requires:
+ Data::Dump: '0'
+ Encode: '0'
+ File::Path: '0'
+ File::Spec: '0'
+ File::Spec::Functions: '0'
+ Getopt::Long: '0'
+ HTTP::Request: '0'
+ JSON: '0'
+ LWP::Protocol::https: '0'
+ LWP::UserAgent: '0'
+ List::Util: '0'
+ MIME::Base64: '0'
+ Term::ANSIColor: '0'
+ Term::ReadLine: '0'
+ Text::ParseWords: '0'
+ Text::Wrap: '0'
+ URI::Escape: '0'
+ perl: '5.016'
+resources:
+ license: http://dev.perl.org/licenses/
+version: v3.7.4
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
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";
}