aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW/StrawViewer.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.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.pm')
-rw-r--r--lib/WWW/StrawViewer.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/WWW/StrawViewer.pm b/lib/WWW/StrawViewer.pm
index ecd31c9..336811e 100644
--- a/lib/WWW/StrawViewer.pm
+++ b/lib/WWW/StrawViewer.pm
@@ -485,7 +485,14 @@ sub default_arguments {
sub _make_feed_url {
my ($self, $path, %args) = @_;
- $self->get_feeds_url() . $path . '?' . $self->default_arguments(%args);
+ my $extra_args = $self->default_arguments(%args);
+ my $url = $self->get_feeds_url() . $path;
+
+ if ($extra_args) {
+ $url .= '?' . $extra_args;
+ }
+
+ return $url;
}
sub _extract_from_invidious {