File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2021 Jef LeCompte
3
+ Copyright (c) 2021 Jeffrey LeCompte
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ services:
21
21
-I -D -C /config/.zap2xmlrc -o /xmltv/xmltv.xml
22
22
SLEEPTIME : 43200 # 12 hours in seconds
23
23
TZ : America/New_York
24
+ USER_AGENT : " Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" # Optional: customize user agent
24
25
volumes :
25
26
- /path/to/appdata/zap2xml:/config
26
27
- /path/to/appdata/xmltv:/xmltv # nice for mapping other drives to this that may use xmltv.xml
Original file line number Diff line number Diff line change 75
75
$allChan = 0;
76
76
$shiftMinutes = 0;
77
77
78
+ $userAgent = $ENV {USER_AGENT } || ' Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36' ;
79
+
78
80
$outputXTVD = 0;
79
81
$lineuptype ;
80
82
$lineupname ;
@@ -909,7 +911,7 @@ sub login {
909
911
$ua -> conn_cache(LWP::ConnCache-> new( total_capacity => undef ));
910
912
$ua -> cookie_jar(HTTP::Cookies-> new);
911
913
$ua -> proxy([' http' , ' https' ], $proxy ) if defined ($proxy );
912
- $ua -> agent(' Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 ' );
914
+ $ua -> agent($userAgent );
913
915
$ua -> default_headers-> push_header(' Accept-Encoding' => ' gzip, deflate' );
914
916
}
915
917
You can’t perform that action at this time.
0 commit comments