Skip to content

Commit

Permalink
Vodafone.pt Grabber - load channel.list by using the grabber path
Browse files Browse the repository at this point in the history
  • Loading branch information
nsenica committed Dec 31, 2024
1 parent 34c115b commit 50fcf39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion grab/pt_vodafone/tv_grab_pt_vodafone
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ use URI::Escape qw/ uri_escape /;
use URI::Encode qw/ uri_encode uri_decode/;
# use Data::Dump qw/pp/; # uncomment to debug

# needed to find the channel.list location
use File::Basename;
my $dirname = dirname(__FILE__);

my $maxdays = 1+6; # data source is limited to 7 days (including today)

my $grabber_name = 'tv_grab_pt_vodafone';
Expand All @@ -127,7 +131,7 @@ my $json_baseurl = 'https://cdn.pt.vtv.vodafone.com/epg/';

# Generate with:
# jq -r '.channels[]|(.epgId,.title,.logo.color.uri)' channel.list.new | sed 'N;N; s/\n/\t/g' | sort > channel.list
my $input_file = 'channel.list';
my $input_file = $dirname . '/channel.list';

my $ua = LWP::UserAgent->new(ssl_opts => {
SSL_cipher_list => 'DEFAULT:!DH',
Expand Down

0 comments on commit 50fcf39

Please sign in to comment.