summaryrefslogtreecommitdiff
path: root/pcr/youtube-viewer/libre.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/youtube-viewer/libre.patch')
-rw-r--r--pcr/youtube-viewer/libre.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pcr/youtube-viewer/libre.patch b/pcr/youtube-viewer/libre.patch
new file mode 100644
index 000000000..491b34ee3
--- /dev/null
+++ b/pcr/youtube-viewer/libre.patch
@@ -0,0 +1,26 @@
+diff --git a/lib/WWW/YoutubeViewer.pm b/lib/WWW/YoutubeViewer.pm
+index a68b11c..bdacb08 100644
+--- a/lib/WWW/YoutubeViewer.pm
++++ b/lib/WWW/YoutubeViewer.pm
+@@ -535,10 +535,10 @@ sub get_video_tops {
+ sub _get_formats_from_ytdl {
+ my ($self, $videoID) = @_;
+
+- ((state $x = $self->proxy_system('youtube-dl', '--version')) == 0)
++ ((state $x = $self->proxy_system('avideo', '--version')) == 0)
+ || return;
+
+- my $json = $self->proxy_stdout('youtube-dl', '--all-formats', '--dump-single-json',
++ my $json = $self->proxy_stdout('avideo', '--all-formats', '--dump-single-json',
+ quotemeta("https://www.youtube.com/watch?v=" . $videoID));
+
+ my @array;
+@@ -705,7 +705,7 @@ sub get_streaming_urls {
+ Data::Dump::pp(\@caption_urls);
+ }
+
+- # Try again with youtube-dl
++ # Try again with avideo
+ if (!@streaming_urls or $info{status} =~ /fail|error/i) {
+ @streaming_urls = $self->_get_formats_from_ytdl($videoID);
+ }