Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Latest Threads
Replace invalid character...
Forum: Feature Requests
Last Post: NigelJ
21-05-2018, 08:08 PM
» Replies: 3
» Views: 352
How do I match full progr...
Forum: General Topics
Last Post: dpwrussell
20-05-2018, 03:21 PM
» Replies: 10
» Views: 527
LWP::Protocol::https not ...
Forum: General Topics
Last Post: dinky
18-05-2018, 12:48 AM
» Replies: 1
» Views: 436
Option to remux 50fps to ...
Forum: Feature Requests
Last Post: dinky
16-05-2018, 11:23 AM
» Replies: 1
» Views: 534
Option to remux 50fps to ...
Forum: Any Other Business
Last Post: StdDefEyes
16-05-2018, 09:08 AM
» Replies: 1
» Views: 552
How can I make use of sub...
Forum: General Topics
Last Post: toner_cloud
15-05-2018, 04:36 PM
» Replies: 4
» Views: 346
Remove prominence of Home...
Forum: macOS General Help & Support
Last Post: dinky
15-05-2018, 12:37 PM
» Replies: 5
» Views: 443
(Malwarebytes) Can't load...
Forum: Windows Troubleshooting
Last Post: Gio300ZX
15-05-2018, 09:29 AM
» Replies: 4
» Views: 516
get_iplayer for macOS 3.1...
Forum: Release Announcements
Last Post: dinky
14-05-2018, 09:29 PM
» Replies: 0
» Views: 1,091
Launch Web PVR on system ...
Forum: Any Other Business
Last Post: RadioArchivist
13-05-2018, 09:21 PM
» Replies: 19
» Views: 7,803

 
  Replace invalid characters in filenames, rather than remove them
Posted by: NigelJ - 20-05-2018, 08:50 PM - Forum: Feature Requests - Replies (3)

Currently, when creating filenames, get_iplayer removes invalid characters for Windows ('"*:<>?|') and macOS (':'). It would be useful if there were the option to replace these invalid characters with a valid character. I am a macOS user so I would be most interested in replacing : (a colon) with - (a hyphen) but would expect that Windows users might like to replace the characters that are invalid on that OS. My preference would be a command to allow the user to select the substitution; however, a pre-programmed alternative character would be an improvement.

Note that the list of excluded characters given above are taken from the description of --no-sanitise on the wiki page https://github.com/get-iplayer/get_iplay...ut-options; this appears to state that on macOS the apostrophe will be removed, my experience is that the apostrophe character is not removed. (This may be my incorrect interpretation of the manual due to the font used not distinguishing between apostrophe-like characters.)

(Original thread deleted by originator and replaced by this one with corrected Thread Subject and minor clarifications in message.)

Print this item

  How do I match full programme names with regex?
Posted by: dpwrussell - 19-05-2018, 05:41 AM - Forum: General Topics - Replies (10)

Unless I'm misunderstanding something, I think there might be a problem with the regex searching in programme names.

Here's the last few results from a query for some snooker:

Code:
$ get_iplayer "^Snooker:\sWorld\sChampionship:\s2018" | tail
6258: Snooker: World Championship: 2018 - Day 15 Semi-Finals, Morning Session, BBC Two, b0b2q9dd
6259: Snooker: World Championship: 2018 - Day 15 Semi-Finals, Afternoon Session Part 2, BBC Two, b0b2q9dg
6260: Snooker: World Championship: 2018 - Day 15 Semi-Finals, Evening Session, BBC Two, b0b2q9dj
6261: Snooker: World Championship: 2018 - Day 16 Final, Afternoon Session, BBC Two, b0b2qggy
6262: Snooker: World Championship: 2018 - Day 16 Final, Evening Session, BBC Two, b0b2qgh0
6263: Snooker: World Championship: 2018 - Day 17 Final, Afternoon Session, BBC Two, b0b2qmf2
6264: Snooker: World Championship: 2018 - Day 17 Final, Evening Session, BBC Two, b0b2qmf4
6265: Snooker: World Championship: 2018 - Day 15 Semi-Finals, Afternoon Session, BBC One, b0b2wxnf
6266: Snooker: World Championship: 2018 - Day 14 Semi-Finals, Afternoon Session, BBC One, b0b3vj4d
INFO: 44 matching programmes

Looks great. Except... that's as far as the regex will go, adding just one more whitespace to the end causes it to fail when based on perl regex, it should not.

Code:
$ get_iplayer "^Snooker:\sWorld\sChampionship:\s2018\s"
get_iplayer 3.14.0-darwin, 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: 0 matching programmes

As will searching for anything beyond that point in the name, e.g. I can't search for "Semi Final".

Code:
$ get_iplayer "Semi\sFinal"
get_iplayer 3.14.0-darwin, 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: 0 matching programmes

It feels like perhaps "Snooker: World Championship: 2018" is the programme name and thus searchable and the rest is something else that is concatenated with it, but I tried showing just the name field and that shows the same information, so it seems like the "Day 15 Semi-Finals, Morning..." stuff is part of the name.

Code:
$ get_iplayer --fields name "Snooker:\sWorld\sChampionship:\s2018" | tail
6258: Snooker: World Championship: 2018 - Day 15 Semi-Finals, Morning Session, BBC Two, b0b2q9dd
6259: Snooker: World Championship: 2018 - Day 15 Semi-Finals, Afternoon Session Part 2, BBC Two, b0b2q9dg
6260: Snooker: World Championship: 2018 - Day 15 Semi-Finals, Evening Session, BBC Two, b0b2q9dj
6261: Snooker: World Championship: 2018 - Day 16 Final, Afternoon Session, BBC Two, b0b2qggy
6262: Snooker: World Championship: 2018 - Day 16 Final, Evening Session, BBC Two, b0b2qgh0
6263: Snooker: World Championship: 2018 - Day 17 Final, Afternoon Session, BBC Two, b0b2qmf2
6264: Snooker: World Championship: 2018 - Day 17 Final, Evening Session, BBC Two, b0b2qmf4
6265: Snooker: World Championship: 2018 - Day 15 Semi-Finals, Afternoon Session, BBC One, b0b2wxnf
6266: Snooker: World Championship: 2018 - Day 14 Semi-Finals, Afternoon Session, BBC One, b0b3vj4d
INFO: 44 matching programmes

So it's confusing that I can't regex on that. Any ideas?

Print this item

  LWP::Protocol::https not loaded prior to execution
Posted by: jonhedgerows - 17-05-2018, 11:15 PM - Forum: General Topics - Replies (1)

For info:

the release notes for 3.14 say
"All non-core Perl modules used by get_iplayer (except those from Mojolicious) are now loaded when the get_iplayer script is compiled before execution."

I discovered that LWP::Protocol::https isn't loaded prior to execution, and the error message that it's absent only appears in the verbose log.

While I'm arguably entirely at fault because LWP::Protocol::https is listed as a requirement in the installation instructions, the statement in the release notes appears to be wrong.  For me, being fairly dumb (particularly late at night), and lazy the rest of the time, the best solution would be to load LWP::Protocol::https at compile time so that I discover that I've missed something right at the start.

Cheers
Jon

Print this item

  Option to remux 50fps to 25fps after download
Posted by: errfmt - 16-05-2018, 02:15 AM - Forum: Any Other Business - Replies (1)

As the hlshd mode is no longer available for download for most programmes I would like to request an option be included in get_iplayer to remux 50fps files to 25fps.
Failing that could someone post detailed step by step instructions on how to remux files downloaded using the  --raw option to 25fps and then add the the metatdata.
Thanks.

Print this item

  Option to remux 50fps to 25fps after download
Posted by: errfmt - 16-05-2018, 02:15 AM - Forum: Feature Requests - Replies (1)

As the hlshd mode is no longer available for download for most programmes I would like to request an option be included in get_iplayer to remux 50fps files to 25fps.
Failing that could someone post detailed step by step instructions on how to remux files downloaded using the  --raw option to 25fps and then add the the metatdata.
Thanks.

Print this item

  How can I make use of subdir as a variable?
Posted by: toner_cloud - 15-05-2018, 03:37 PM - Forum: General Topics - Replies (4)

I'm having problems with the use of subdir as variable in a GiP command.

I'd like to copy a file automatically after each tv download using this command (set as a preference)

Code:
commandtv = cp /mnt/raid1/Media_Share/GiP_Downloads/Blank.hmi /mnt/raid1/Media_Share/GiP_Downloads/tv/"<subdir>/<fileprefix>.hmi"

But it runs into a problem like this :-
Code:
cp: cannot create regular file '/mnt/raid1/Media_Share/GiP_Downloads/tv/<subdir>/A Tattoo To Change Your Life Series 1_-_3. Covering My Mastectomy Scars.hmi': No such file or directory

Where am I going wrong?

Print this item

  get_iplayer for macOS 3.14.0 released
Posted by: dinky - 14-05-2018, 09:29 PM - Forum: Release Announcements - No Replies

A macOS installer package for get_iplayer is now available.

See: https://github.com/get-iplayer/get_iplay...ses/latest

Instructions: https://github.com/get-iplayer/get_iplayer/wiki/osx

The installer package is now the only supported method for installing get_iplayer on macOS, but you may of course wish to stick with your current method. There is no particular reason at this point to switch to the installer package if you have a working installation of get_iplayer 3.14  on your machine.  This is mainly for the benefit of new users and future releases.

There are three main differences between the installer package and previous installation methods:

  • You do not need to install Xcode command line tools, either manually or via Homebrew
  • You do not need to change the configuration of your shell environment
  • It includes a wrapper script to launch the Web PVR Manager from a command prompt
If you try out this new installer package and find any problems, report them in the macOS Troubleshooting forum so that any packaging issues can be ironed out before the next general release.

Print this item

  get_iplayer --pvr downloads TV programmes when type is set to 'radio'
Posted by: psychlist - 12-05-2018, 11:24 AM - Forum: General Topics - Replies (6)

Hi folks,

I'm running get_iplayer v3.14 on Raspbian. Starting some time over the last few weeks I've started getting a handful of TV programmes being downloaded alongside radio programmes when using get_iplayer --pvr, even though the search list has 'type = radio' set, confirmed using get_iplayer --pvr-list. I believe this behaviour started with v3.13, but I'm not certain if it was coincident with the update.

I have about 450 search terms defined, in case that's relevant. (This has accumulated over a long time, and I could easily perform some cleanup if that would help.)

My intention is to download radio programmes exclusively, so I also have 'type = radio' set in my preferences, confirmed using get_iplayer --prefs-show.

This is a very minor problem -- I just cron to delete any downloaded MP4 files -- it's just a bit of a waste of bandwidth.

Any ideas?

Thanks,
Peter

Print this item

  multithreaded downloads
Posted by: horsemule - 12-05-2018, 03:22 AM - Forum: Feature Requests - No Replies

hfv downloads would be faster if multiple threads were used, so I'd like to request an option to specify the number of threads to use for downloads ie: "--threads 2"

Print this item

  Web PVR: Add new fields to PVR searches with PVR List editor
Posted by: 2dmartin - 11-05-2018, 11:09 AM - Forum: Feature Requests - Replies (2)

I normally use the PVR and have a large list which works well. I have begun to realise a limitation though: some of my listed programs show blanks for columns such as "modes", "output" and "versionlist".   That does not prevent those recording, but if I go to try to edit one of those programmes, the blank fields don't show, and so I can't experiment with different options.
There may be a reason, but when in the edit screen why not display all PVR List fields?

Print this item