diff options
author | trizen <trizen@protonmail.com> | 2020-02-15 08:39:16 +0200 |
---|---|---|
committer | trizen <trizen@protonmail.com> | 2020-02-15 08:39:16 +0200 |
commit | 0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3 (patch) | |
tree | 2ca5403537ec7aadb40429ea2e95b3013e5bb842 /lib/WWW/StrawViewer.pm | |
parent | d3c5fe3152d72c9ff8e926f5371b26441ba27e80 (diff) | |
download | fair-viewer-0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3.tar.lz fair-viewer-0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3.tar.xz fair-viewer-0d4bcd362455bbbe245f3b1b8a5b7bc1f4ed2ac3.zip |
Support input URLs
Diffstat (limited to 'lib/WWW/StrawViewer.pm')
-rw-r--r-- | lib/WWW/StrawViewer.pm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/WWW/StrawViewer.pm b/lib/WWW/StrawViewer.pm index 42206d1..de13099 100644 --- a/lib/WWW/StrawViewer.pm +++ b/lib/WWW/StrawViewer.pm @@ -130,6 +130,39 @@ sub _our_smartmatch { return 0; } +sub basic_video_info_fields { + join(',', + qw( + title + videoId + description + published + publishedText + viewCount + likeCount + dislikeCount + genre + author + authorId + lengthSeconds + rating + liveNow + ) + ) +} + +sub extra_video_info_fields { + my ($self) = @_; + join(',', + $self->basic_video_info_fields, + qw( + subCountText + captions + isFamilyFriendly + ) + ); +} + { no strict 'refs'; |