Filter out private and deleted videos from playlists.

Esse commit está contido em:
trizen
2020-11-28 03:04:43 +02:00
commit 91f7d9594c
4 arquivos alterados com 7 adições e 4 exclusões
+1 -1
Ver Arquivo
@@ -29,7 +29,7 @@ use warnings;
no warnings 'once';
my $DEVEL; # true in devel mode
use if ($DEVEL = 0), lib => qw(../lib); # devel only
use if ($DEVEL = 1), lib => qw(../lib); # devel only
use WWW::PipeViewer v0.0.4;
use WWW::PipeViewer::RegularExpressions;
+1 -1
Ver Arquivo
@@ -44,7 +44,7 @@ use warnings;
no warnings 'once';
my $DEVEL; # true in devel mode
use if ($DEVEL = 0), lib => qw(../lib); # devel mode
use if ($DEVEL = 1), lib => qw(../lib); # devel mode
use WWW::PipeViewer v0.0.4;
use WWW::PipeViewer::RegularExpressions;
+3
Ver Arquivo
@@ -592,6 +592,9 @@ sub select_good_invidious_instances {
sub pick_random_instance {
my ($self) = @_;
# TODO: make sure the selected invidious instance actually works.
my @candidates = $self->select_good_invidious_instances();
if (not @candidates) {
+2 -2
Ver Arquivo
@@ -302,8 +302,8 @@ sub _extract_itemSection_entry {
$video{title} = _extract_title($info) // return;
$video{lengthSeconds} = _extract_length_seconds($info) || 0;
$video{liveNow} = ($video{lengthSeconds} == 0);
$video{author} = _extract_author_name($info);
$video{authorId} = _extract_channel_id($info);
$video{author} = _extract_author_name($info) // return;
$video{authorId} = _extract_channel_id($info) // return;
$video{publishedText} = _extract_published_text($info);
$video{viewCountText} = _extract_view_count_text($info);
$video{videoThumbnails} = _extract_thumbnails($info);