Browse Source

use eztv-proxy instead of eztv.ch

themage
theMage 4 years ago
parent
commit
5d3578c148
1 changed files with 4 additions and 2 deletions
  1. 4 2
      lib/CinePantufas/Source/EZTV.pm

+ 4 - 2
lib/CinePantufas/Source/EZTV.pm

@ -22,6 +22,8 @@ my %prio = (
22 22
23 23
my $ua;
24 24
25
my $base = 'https://eztv-proxy.net/';
26
25 27
sub _ua {
26 28
  return $ua ||= HTTP::Tiny->new(
27 29
      cookie_jar  => HTTP::CookieJar->new(),
@ -39,7 +41,7 @@ sub import {
39 41
sub retrieve_show_list {
40 42
  my $class = shift;
41 43
42
  my $resp = _ua->get('https://eztv.ch');
44
  my $resp = _ua->get($base);
43 45
44 46
  die "Failed: $resp->{status} $resp->{reason}\n"
45 47
    unless $resp->{success};
@ -64,7 +66,7 @@ sub retrieve_show_list {
64 66
sub get_episode_list {
65 67
  my ($class,$show) = @_;
66 68
67
  my $resp = _ua->post_form('https://eztv.ch/search/',
69
  my $resp = _ua->post_form("$base/search/",
68 70
        $show->{params}
69 71
    );
70 72