Skip to content

Commit

Permalink
remove youtube restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
wchristian committed Mar 30, 2013
1 parent f8558cf commit dad4b1e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Web/Scenefinity/Import.pm
Expand Up @@ -12,6 +12,7 @@ with "Web::Scenefinity::Role::Configuration";

sub run {
my ( $self ) = @_;

my @ids = map $self->yt_ids_for_account( $_ ), $self->yt_accounts;

my $db = $self->db;
Expand All @@ -25,7 +26,7 @@ sub run {
return;
}

sub yt_accounts { qw( Annikras ) } # demosceneM0d TMCrole ReclusiveLemming
sub yt_accounts { qw( Annikras demosceneM0d TMCrole ReclusiveLemming ) }

sub jget {
my ( $url ) = @_;
Expand All @@ -44,9 +45,7 @@ sub yt_ids_for_account {
my $entries = $all->{feed}{entry};
last if !$entries or !@{$entries};
push @videos, @{$entries};
last;

# $i += 50;
$i += 50;
}
my @ids = map $_->{id}{'$t'}, @videos;
$_ =~ s/.*\/([\w\-]+)$/$1/ for @ids;
Expand Down

0 comments on commit dad4b1e

Please sign in to comment.