Discussion:
GiP trying to download incorrect PID
Nick Payne
2018-04-29 04:38:19 UTC
Permalink
I've noticed this now a couple of times on different downloads - I give
GiP a PID on the command line, and it errors out on a different PID
number. See console output below for an example - I've asked for PID
b0b1y57f, and that initially gets echoed back in the console output, but
further on it then tries to download b0b1y54f and fails.

GiP 3.13 on Win10 x64.

==============================================
D:\Users\Nick\scripts>get_iplayer --pid="b0b1y57h"
get_iplayer 3.13.0, 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: encodinglocale = cp1252
INFO: encodinglocalefs = cp1252
INFO: encodingconsoleout = cp850
INFO: encodingconsolein = cp850
INFO: ${^UNICODE} = 0
INFO: Profile dir: C:\Users\Nick\.get_iplayer
INFO: User options file: C:\Users\Nick\.get_iplayer\options
INFO: System options file: C:\ProgramData\get_iplayer\options
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
Current options:
        encodingconsolein = cp850
        encodingconsoleout = cp850
        encodinglocale = cp1252
        encodinglocalefs = cp1252
        fileprefix = <nameshort><-senum><-episodeshort>
        nopurge = 1
        output = D:\Users\Nick\Videos
        pid = b0b1y57h
        radiomode = best
        tvmode = hlshd,hvfhd
        verbose = 1

INFO: Search args: ''
INFO: No file cache exists for tv
INFO: No file cache exists for radio
INFO: Cleaning PID - old: 'b0b1y57h' new: 'b0b1y57h'
INFO: Getting URL: http://www.bbc.co.uk/programmes/b0b1y57h.json
INFO: tv episode PID detected (b0b1y57h)
Episodes:
World Championship Snooker Extra - 2018, Day 8, BBC Two, b0b1y57h
INFO: 1 total programmes
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
INFO: Loaded history for first check.
INFO: Loading recordings history
INFO: Programme not in history
INFO: Getting URL: http://www.bbc.co.uk/programmes/b0b1y57h.json
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/iptv-all/vpid/b0b1y54f?cb=41342
INFO: Getting URL:
http://vod-hls-uk-live.akamaized.net/usp/auth/vod/piff_abr_l2v_hd/e7e021-b0b1y54f/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.ism/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.m3u8?__gda__=1524997552_dd0950aced4ceec24ac416d4fd4494aa
INFO: Getting URL:
http://vod-hls-uk-live.bbcfmt.hs.llnwd.net/usp/auth/vod/piff_abr_l2v_hd/e7e021-b0b1y54f/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.ism/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.m3u8?s=1524954352&e=1524997552&h=ac1a2d135efb4afaf5337b1fabd4f1ad
INFO: Getting URL:
http://mm.bidi.bbc.co.uk/vod-hls-uk-live/usp/auth/vod/piff_abr_l2v_hd/e7e021-b0b1y54f/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.ism/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.m3u8?at=SKe0kPiW9aa5fd138b29232affe562a3eda9a2ceffdd8b3956af521e8f400
INFO: Found mode     hvfhd1:   gip_hvf_iplayer_5510  hls h264  1280x720
50fps 5510kbps mf_bidi_uk_hls/3
INFO: Found mode     hvfhd2:   gip_hvf_iplayer_5510  hls h264  1280x720
50fps 5510kbps mf_limelight_uk_hls/2
INFO: Found mode     hvfhd3:   gip_hvf_iplayer_5510  hls h264  1280x720
50fps 5510kbps mf_akamai_uk_hls/1
INFO: Found mode     hvfsd1:   gip_hvf_iplayer_3117  hls h264   960x540
50fps 3117kbps mf_bidi_uk_hls/3
INFO: Found mode     hvfsd2:   gip_hvf_iplayer_3117  hls h264   960x540
50fps 3117kbps mf_limelight_uk_hls/2
INFO: Found mode     hvfsd3:   gip_hvf_iplayer_3117  hls h264   960x540
50fps 3117kbps mf_akamai_uk_hls/1
INFO: Found mode    hvfxsd1:   gip_hvf_iplayer_1836  hls h264   960x540
25fps 1836kbps mf_bidi_uk_hls/3
INFO: Found mode    hvfxsd2:   gip_hvf_iplayer_1836  hls h264   960x540
25fps 1836kbps mf_limelight_uk_hls/2
INFO: Found mode    hvfxsd3:   gip_hvf_iplayer_1836  hls h264   960x540
25fps 1836kbps mf_akamai_uk_hls/1
INFO: Found mode  hvfxhigh1:   gip_hvf_iplayer_1013  hls h264   704x396
25fps 1013kbps mf_bidi_uk_hls/3
INFO: Found mode  hvfxhigh2:   gip_hvf_iplayer_1013  hls h264   704x396
25fps 1013kbps mf_limelight_uk_hls/2
INFO: Found mode  hvfxhigh3:   gip_hvf_iplayer_1013  hls h264   704x396
25fps 1013kbps mf_akamai_uk_hls/1
INFO: Found mode    hvfstd1:    gip_hvf_iplayer_865  hls h264   640x360
25fps  865kbps mf_bidi_uk_hls/3
INFO: Found mode    hvfstd2:    gip_hvf_iplayer_865  hls h264   640x360
25fps  865kbps mf_limelight_uk_hls/2
INFO: Found mode    hvfstd3:    gip_hvf_iplayer_865  hls h264   640x360
25fps  865kbps mf_akamai_uk_hls/1
INFO: Found mode    hvflow1:    gip_hvf_iplayer_599  hls h264   512x288
25fps  599kbps mf_bidi_uk_hls/3
INFO: Found mode    hvflow2:    gip_hvf_iplayer_599  hls h264   512x288
25fps  599kbps mf_limelight_uk_hls/2
INFO: Found mode    hvflow3:    gip_hvf_iplayer_599  hls h264   512x288
25fps  599kbps mf_akamai_uk_hls/1
INFO: Found mode subtitles1:               captions http  N/A      
N/A   N/A      N/A sis/10
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/iptv-all/vpid/b0b1zhhq?cb=73838
ERROR: Response: 403 No Protocol
INFO: No streams available for 'shortened' version (b0b1zhhq) - skipping
INFO: No streams found for 'shortened' version (b0b1zhhq) - deleting
INFO: Programme not in history
INFO: Searching for versions: original
WARNING: A UK TV licence is required to access BBC iPlayer TV content
legally
INFO: Mode list: hlshd,hvfhd
INFO: Searching for version: 'original'
INFO: Found version: 'original'
INFO: Modes to try for 'original' version: hvfhd1,hvfhd2,hvfhd3
INFO: Downloading tv: 'World Championship Snooker Extra: 2018 - 8. Day 8
(b0b1y57h) [original]'
INFO: Trying 'hvfhd1' mode: attempt 1 / 3
INFO: ffmpeg version string = 3.4
INFO: ffmpeg version number = 3.4
INFO: File name prefix = World_Championship_Snooker_Extra-s01e08-Day_8
DEBUG: HLS playlist URL:
http://mm.bidi.bbc.co.uk/vod-hls-uk-live/usp/auth/vod/piff_abr_l2v_hd/e7e021-b0b1y54f/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.ism/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2-audio_eng=128000-video=5070000.m3u8?at=SKe0kPiW9aa5fd138b29232affe562a3eda9a2ceffdd8b3956af521e8f400
DEBUG: HLS playlist URL (actual):
http://b2thdo.bidi.live.bbc.co.uk/vod-hls-uk-live/usp/auth/vod/piff_abr_l2v_hd/e7e021-b0b1y54f/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.ism/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2-audio_eng=128000-video=5070000.m3u8?at=SKe0kPiW9aa5fd138b29232affe562a3eda9a2ceffdd8b3956af521e8f400
INFO: Getting URL:
http://b2thdo.bidi.live.bbc.co.uk/vod-hls-uk-live/usp/auth/vod/piff_abr_l2v_hd/e7e021-b0b1y54f/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.ism/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2-audio_eng=128000-video=5070000.m3u8?at=SKe0kPiW9aa5fd138b29232affe562a3eda9a2ceffdd8b3956af521e8f400
INFO: Begin downloading at: 0.00 MB (00:00:00) [1]
INFO: Downloaded: 0.00 MB (00:00:00) [0] in 00:00:23 @ 0.00 Mb/s
(hvfhd1/bi) [audio+video]
WARNING: Unexpected size for file segment [1]
WARNING: Expected: 4737976  Downloaded: 2034999
WARNING: Retrying download
WARNING: Stopped downloading at: 0.00 MB (00:00:00) [0]
WARNING: File segment URL:
http://b2thdo.bidi.live.bbc.co.uk/vod-hls-uk-live/usp/auth/vod/piff_abr_l2v_hd/e7e021-b0b1y54f/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2.ism/vf_b0b1y54f_45d28a3d-89d2-4683-9c55-be006339d9fe.ism.hlsv2-audio_eng=128000-video=5070000-1.ts?at=SKe0kPiW9aa5fd138b29232affe562a3eda9a2ceffdd8b3956af521e8f400
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/iptv-all/vpid/b0b1y54f?cb=07067
ERROR: Response: 403 No Protocol
WARNING: No streams available for 'original' version (b0b1y54f) -
skipping (retry)
ERROR: Failed tv: 'World Championship Snooker Extra: 2018 - 8. Day 8
(b0b1y57h)'
==============================================

Nick
James Scholes
2018-04-29 20:06:24 UTC
Permalink
Post by Nick Payne
I've noticed this now a couple of times on different downloads - I give
GiP a PID on the command line, and it errors out on a different PID
number.
The PID you provide on the command line represents the main program
entity, in this case, "World Championship Snooker Extra, 2018, Day 8".
Using that PID you can load the program page in your browser, and GiP
can get information about it.

There is, however, no media associated with that PID. Each program can
have multiple versions, and the main PID is not assumed to represent one
single version. For example, a TV episode might have an original
version, a version which has been edited, a version which carries audio
description for the blind, and yet another version which carries sign
language. A radio episode of The Archers might have an original
broadcast version and an edited, podcast version.

Each version is represented by yet another PID, so when GiP reports that
it had a problem downloading a PID different to what you gave it, it's
reporting that it failed to download a specific version. If a program
has multiple versions, or you want a particular one, you can supply it
by name on the command line using the --versions parameter.

Regards,

James Scholes
https://twitter.com/JamesScholes
tellyaddict
2018-04-30 00:52:28 UTC
Permalink
Yes as James rightly says, there can be multiple vPIDs with any PID. You can see from looking at your output that World Championship Snooker Extra: 2018 - 8. Day 8 (b0b1y57h) has at least 2 vPIDs associated with it. You've got the Original version (b0b1y54f) and the Shortened version (b0b1zhhq).
Post by James Scholes
Post by Nick Payne
I've noticed this now a couple of times on different downloads - I give
GiP a PID on the command line, and it errors out on a different PID
number.
The PID you provide on the command line represents the main program
entity, in this case, "World Championship Snooker Extra, 2018, Day 8".
Using that PID you can load the program page in your browser, and GiP
can get information about it.
There is, however, no media associated with that PID. Each program can
have multiple versions, and the main PID is not assumed to represent one
single version. For example, a TV episode might have an original
version, a version which has been edited, a version which carries audio
description for the blind, and yet another version which carries sign
language. A radio episode of The Archers might have an original
broadcast version and an edited, podcast version.
Each version is represented by yet another PID, so when GiP reports that
it had a problem downloading a PID different to what you gave it, it's
reporting that it failed to download a specific version. If a program
has multiple versions, or you want a particular one, you can supply it
by name on the command line using the --versions parameter.
Loading...