From f898eac5f4c62e0f2e279fc5c27c7c4892523f89 Mon Sep 17 00:00:00 2001 From: trizen Date: Wed, 26 Feb 2020 11:37:02 +0200 Subject: - Fixed the "Author -> Uploads" entry. - Set the default cache directory in /tmp --- lib/WWW/StrawViewer/Channels.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/WWW/StrawViewer/Channels.pm') diff --git a/lib/WWW/StrawViewer/Channels.pm b/lib/WWW/StrawViewer/Channels.pm index 309aa07..b2c2c99 100644 --- a/lib/WWW/StrawViewer/Channels.pm +++ b/lib/WWW/StrawViewer/Channels.pm @@ -28,6 +28,11 @@ sub videos_from_channel_id { return $self->_get_results($self->_make_feed_url("channels/$channel_id/videos")); } +sub videos_from_username { + my ($self, $channel_id) = @_; + return $self->_get_results($self->_make_feed_url("channels/$channel_id/videos")); +} + =head2 channels_from_categoryID($category_id) Return the YouTube channels associated with the specified category. -- cgit v1.2.3