These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Browse listings in an editor

user-1372

Hello

Hope this is appropriate for this forum

I often want to browse what I can download using iplayer, but find staying in the terminal (Linux) or dos box (Windows) not as convenient as using a graphical editor.

For Linux:
The following two commands will give you output in Leafpad (or your editor of choice)
Code:
leafpad <(grep -iF 'bbc four'  <(get_iplayer))
leafpad <(grep -iF 'radio 4'  <(get_iplayer --type radio))


For Windows:
The following two commands will give you output in Notepad.

Code:
get_iplayer | find /I "bbc four" | clip && notepad
get_iplayer --type radio | find /I "radio 4" | clip && notepad

**don't forget to ctrl V into Notepad when it appears**

For Macs:
Sorry, I have no knowledge of Apple products

Change the string in quotes to change what you want to find. This is to make browsing easier, not to download a specific programme. See the Wiki guide Usage and Examples to expand the get_iplayer part if required.

Hope this is helpful

Regards

Rich

user-1026

Thanks, really nice

user-2

Thanks for posting that. 

You probably don't need a separate grep. get_iplayer can already search the fields that have any meaningful information, e.g.,
Code:
leafpad <(get_iplayer --channel 'bbc four')
Code:
get_iplayer --channel "bbc four" | clip && notepad

OS X variants:

GUI
Code:
get_iplayer --channel 'bbc four' | open -f -a TextEdit
where TextEdit could BBEdit, TextWrangler, 'Sublime Text', and possibly others 

Terminal
Code:
nano <(get_iplayer --channel 'bbc four')

user-1372

Hi Dinky

Thanks for expanding with OS X variant.

Yes I realised that grep wasn't needed just after I'd posted; but the idea came from exploring how to use grep, piping and re-direction.

Thanks for get_iplayer as I live in a slow-speed broadband area, and have problems streaming.

Regards
Rich

These forums are archived

See this post for further info