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.13k stars 229 forks source link

Add --mark-existing downloaded switch to update history when existing… #452

Closed barjonas closed 8 months ago

barjonas commented 8 months ago

Since it's a new (but tiny) feature, I realise this won't be merged. I'm posting for visibility, in case anyone is interested in this feature. I plan to keep my fork up-to-date with any changes in this repository.

Prevent future attempts to download a programme when the file already exists

Use the --mark-existing-downloaded option to add programmes to the download history if downloading is not possible due to an existing file. This prevents future download attempts. This feature is useful if your download history is incomplete. This option will have no effect if --force is also used. Examples:

$ get_iplayer --pid m000cgzk

Episodes:
CBeebies Bedtime Stories - Robbie Williams - The Twelve Dogs of Christmas, CBeebies, m000cgzk
INFO: 1 total programmes

INFO: Processing tv: 'CBeebies Bedtime Stories - Robbie Williams - The Twelve Dogs of Christmas (m000cgzk)'
INFO: Downloading tv: 'CBeebies Bedtime Stories - 732. Robbie Williams - The Twelve Dogs of Christmas (m000cgzk) [original]'
WARNING: File already exists: /output/CBeebies Bedtime Stories/732. Robbie Williams - The Twelve Dogs of Christmas.mp4
INFO: Skipping all versions of this programme and marking as downloaded.

$ get_iplayer --prefs-add --mark-existing-downloaded
INFO: Options file /.get_iplayer/options updated

$ get_iplayer --pvr
...