Skip to content

get_iplayer fails to launch via Scoop shim when user profile path contains spaces (e.g. "Joe Bloggs") #496

Closed
@incongruousmind

Description

@incongruousmind

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

  • I am not using get_iplayer outside the UK

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.

  • I am not using get_iplayer with a VPN or proxy from any location, including the UK

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.

  • I have searched the repository and found no existing reports of the bug in the issue tracker

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.

  • I have reviewed recent open and closed entries in the issue tracker and found no existing reports of the bug

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

  • I am using get_iplayer 3.35 or higher

Identify the operating system and version where get_iplayer demonstrates the bug

Windows 11

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.


💥 Bug: get_iplayer fails when Scoop is installed under a user profile with spaces in the name

❌ Problem

When get_iplayer is installed via Scoop and the Windows user profile contains a space (e.g. C:\Users\Joe Bloggs), running get_iplayer results in the following error:

'C:\Users\Joe' is not recognized as an internal or external command,
operable program or batch file.

This happens because the launch script does not properly quote paths that include spaces.


🧪 Diagnosis

The file:

C:\Users\Joe Bloggs\scoop\apps\get-iplayer\current\scoop_get_iplayer.cmd

contains:

@echo off
%~dp0get_iplayer.cmd --profile-dir "C:\Users\Joe Bloggs\scoop\apps\get-iplayer\3.35.0\profile" %*

This breaks because %~dp0get_iplayer.cmd expands to a path with spaces and is not wrapped in quotes.


✅ Fix

Edit the file:

C:\Users\Joe Bloggs\scoop\apps\get-iplayer\current\scoop_get_iplayer.cmd

Change this line:

%~dp0get_iplayer.cmd --profile-dir "C:\Users\Joe Bloggs\scoop\apps\get-iplayer\3.35.0\profile" %*

To this:

@"%~dp0get_iplayer.cmd" --profile-dir "C:\Users\Joe Bloggs\scoop\apps\get-iplayer\3.35.0\profile" %*

This wraps the path in quotes so it works even if the path contains spaces.


📌 Suggested Fix

The scoop_get_iplayer.cmd script generated by the Scoop install should quote the path to get_iplayer.cmd to avoid this issue for users with spaces in their usernames or install paths.


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

No response

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.

scoop bucket add main
scoop install main/get-iplayer
get_iplayer

Drag your verbose log file into the field below to create an attachment. Your verbose 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 verbose 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.

error.log

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions