get-iplayer / get_iplayer

A utility for downloading TV and radio programmes from BBC iPlayer and BBC Sounds
https://github.com/get-iplayer/get_iplayer/wiki
GNU General Public License v3.0
2.12k stars 230 forks source link

--proxy flag broken. #406

Closed drpoutine closed 2 years ago

drpoutine commented 2 years ago

Do not file a bug report if you are using get_iplayer outside the UK. If you do, your report will be ignored.

Do not file a bug report if you are using get_iplayer with a VPN or proxy from any location, including the UK. If you do, your report will be ignored.

Search the repository (search field at top left) to see if a report already exists for the bug in the issue tracker. Do not create a duplicate report. Duplicate reports will be ignored.

Review recent open and closed entries in the issue tracker to see if a report already exists for the bug. Do not create a duplicate report. Duplicate reports will be ignored.

Ensure that you are using get_iplayer 3.29 or higher. If not, your report will be ignored.

Identify the operating system and version where get_iplayer demonstrates the bug

osx 12.2.2 (m1), debian 10.

Provide a clear and concise description of the bug. Do not paste get_iplayer output or screenshots into the field below. If you do, your report will be ignored.

passing the --proxy flag option on the command breaks any functionality. Program exits with (got signal PIPE)


(base) $USER@$USER-m1:~ > get_iplayer --pid=m001352v --pid-recursive --debug
DEBUG: Parsing options from /Users/$USER/.get_iplayer/options:
DEBUG: Loaded option commandtv (commandtv) = mkvmerge -o "<dir>/<fileprefix>.mkv" "<rawvideo>" "<rawaudio>" "<subsfile>"
DEBUG: Loaded option output (output) = /Users/$USER/Desktop/iplayerD/
DEBUG: Loaded option subsembed (subsembed) = 1
DEBUG: Loaded option raw (raw) = 1
DEBUG: Loaded option tvmode (tvmode) = fhd,hd,sd,web,mobile
DEBUG: Loaded option notag (notag) = 1
DEBUG: Loaded option proxy (proxy) = https://USERNAME:PASSWORD@DOMAIN.TLD:PORT
DEBUG: Loaded option subtitles (subtitles) = 1
get_iplayer 3.29-homebrew, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
  This is free software, and you are welcome to redistribute it under certain
  conditions; use --conditions for details.

INFO: Start: 2022-03-28T11:54:51 (1648486491)
INFO: encodinglocale = UTF-8
INFO: encodinglocalefs = UTF-8
INFO: encodingconsoleout = UTF-8
INFO: encodingconsolein = UTF-8
INFO: ${^UNICODE} = 0
INFO: Profile dir: /Users/$USER/.get_iplayer
INFO: User options file: /Users/$USER/.get_iplayer/options
INFO: System options file: /etc/get_iplayer/options
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
INFO: Using proxy: https://USERNAME:PASSWORD@DOMAIN.TLD:PORT
Current options:
    commandtv = mkvmerge -o "<dir>/<fileprefix>.mkv" "<rawvideo>" "<rawaudio>" "<subsfile>"
    debug = 1
    encodingconsolein = UTF-8
    encodingconsoleout = UTF-8
    encodinglocale = UTF-8
    encodinglocalefs = UTF-8
    notag = 1
    output = /Users/$USER/Desktop/iplayerD/
    pid = m001352v
    pidrecursive = 1
    proxy = https://USERNAME:PASSWORD@DOMAIN.TLD:PORT
    raw = 1
    subsembed = 1
    subsmono = 1
    subtitles = 1
    tvmode = fhd,hd,sd,web,mobile
    verbose = 1

INFO: Search args: ''
INFO: Cleaning PID - old: 'm001352v' new: 'm001352v'
DEBUG: Using desktop user-agent string: 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0'
DEBUG: Using cookies.desktop user-agent 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0'

INFO: Downloading URL (1/3): https://www.bbc.co.uk/programmes/m001352v.json

INFO: Cleaning up /opt/homebrew/Cellar/get_iplayer/3.29/libexec/bin/get_iplayer (got signal PIPE)

using --partial-proxy also breaks this.

Provide the PID or URL of the programme you are attempting to download, if applicable. Provide the PID or URL for only one programme.

m001352v

Provide the complete get_iplayer command line that demonstrates the bug. Do not truncate or excerpt the command. If you do, your report will be ignored. If you are using the Web PVR, list the steps necessary to reproduce the bug, in as much detail as possible.

get_iplayer --pid=m001352v --pid-recursive --debug

options

commandtv mkvmerge -o "

/.mkv" "" "" "" output /Users/poutine/Desktop/iplayerD/ subsembed 1 raw 1 tvmode fhd,hd,sd,web,mobile notag 1 proxy https://USERNAME:PASSWORD@DOMAIN.TLD:PORT subtitles 1

Drag the log file into the field below to create an attachment. The log file must be added as an attachment. Do not paste its contents into the field below. If you do, your report will be ignored. You may enter a URL linking to your log file on a pastebin site. If the bug prevents get_iplayer from running, enter "N/A" in the field below. If you enter any other text in the field below, your report will be ignored.

(base) $USER@$USER-m1:~ > get_iplayer --pid=m001352v --pid-recursive --debug DEBUG: Parsing options from /Users/$USER/.get_iplayer/options: DEBUG: Loaded option commandtv (commandtv) = mkvmerge -o "

/.mkv" "" "" "" DEBUG: Loaded option output (output) = /Users/$USER/Desktop/iplayerD/ DEBUG: Loaded option subsembed (subsembed) = 1 DEBUG: Loaded option raw (raw) = 1 DEBUG: Loaded option tvmode (tvmode) = fhd,hd,sd,web,mobile DEBUG: Loaded option notag (notag) = 1 DEBUG: Loaded option proxy (proxy) = https://USERNAME:PASSWORD@DOMAIN.TLD:PORT DEBUG: Loaded option subtitles (subtitles) = 1 get_iplayer 3.29-homebrew, Copyright (C) 2008-2010 Phil Lewis This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty. This is free software, and you are welcome to redistribute it under certain conditions; use --conditions for details.

INFO: Start: 2022-03-28T11:54:51 (1648486491) INFO: encodinglocale = UTF-8 INFO: encodinglocalefs = UTF-8 INFO: encodingconsoleout = UTF-8 INFO: encodingconsolein = UTF-8 INFO: ${^UNICODE} = 0 INFO: Profile dir: /Users/$USER/.get_iplayer INFO: User options file: /Users/$USER/.get_iplayer/options INFO: System options file: /etc/get_iplayer/options -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- INFO: Using proxy: https://USERNAME:PASSWORD@DOMAIN.TLD:PORT Current options: commandtv = mkvmerge -o "

/.mkv" "" "" "" debug = 1 encodingconsolein = UTF-8 encodingconsoleout = UTF-8 encodinglocale = UTF-8 encodinglocalefs = UTF-8 notag = 1 output = /Users/$USER/Desktop/iplayerD/ pid = m001352v pidrecursive = 1 proxy = https://USERNAME:PASSWORD@DOMAIN.TLD:PORT raw = 1 subsembed = 1 subsmono = 1 subtitles = 1 tvmode = fhd,hd,sd,web,mobile verbose = 1

INFO: Search args: '' INFO: Cleaning PID - old: 'm001352v' new: 'm001352v' DEBUG: Using desktop user-agent string: 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0' DEBUG: Using cookies.desktop user-agent 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0'

INFO: Downloading URL (1/3): https://www.bbc.co.uk/programmes/m001352v.json

INFO: Cleaning up /opt/homebrew/Cellar/get_iplayer/3.29/libexec/bin/get_iplayer (got signal PIPE)

If you are using the Web PVR, provide your web browser name and version. This information typically can be found from the application menu via Chrome/Firefox/Safari->About... (macOS) or Help->About... (Linux/Windows)

No response