aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW/StrawViewer/Channels.pm
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-02-15 03:01:40 +0200
committertrizen <trizen@protonmail.com>2020-02-15 03:01:40 +0200
commit21c134c5d9e2d620998a6c0a40ee98feec266177 (patch)
tree59f986d391157b616fbfb553df082c5249089752 /lib/WWW/StrawViewer/Channels.pm
parent8e4ba906343718a4a1c2fbd939a9dbe0a75287f8 (diff)
downloadfair-viewer-21c134c5d9e2d620998a6c0a40ee98feec266177.tar.lz
fair-viewer-21c134c5d9e2d620998a6c0a40ee98feec266177.tar.xz
fair-viewer-21c134c5d9e2d620998a6c0a40ee98feec266177.zip
Basic support for channels and playlists.
Diffstat (limited to 'lib/WWW/StrawViewer/Channels.pm')
-rw-r--r--lib/WWW/StrawViewer/Channels.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/WWW/StrawViewer/Channels.pm b/lib/WWW/StrawViewer/Channels.pm
index d48c744..309aa07 100644
--- a/lib/WWW/StrawViewer/Channels.pm
+++ b/lib/WWW/StrawViewer/Channels.pm
@@ -23,6 +23,11 @@ sub _make_channels_url {
return $self->_make_feed_url('channels', %opts);
}
+sub videos_from_channel_id {
+ 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.