These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Auto Thumbnail Size

user-53

Partial from an --info output yields...
Code:
pid:            b039yx23
player:         http://www.bbc.co.uk/iplayer/episode/b039yx23/Adele_Roberts_26_08_2013/
thumbfile:      V:\_incoming\_iplayer\Adele_Roberts\Adele_Roberts\Adele_Roberts_-_26_08_2013_b039yx23_default.jpg
thumbnail:      http://www.bbc.co.uk/iplayer/images/episode/b039yx23_150_84.jpg
thumbnail1:     http://ichef.bbci.co.uk/programmeimages/episode/b039yx23_86_48.jpg
thumbnail2:     http://ichef.bbci.co.uk/programmeimages/episode/b039yx23_150_84.jpg
thumbnail3:     http://ichef.bbci.co.uk/programmeimages/episode/b039yx23_178_100.jpg
thumbnail4:     http://ichef.bbci.co.uk/programmeimages/episode/b039yx23_512_288.jpg
thumbnail5:     http://ichef.bbci.co.uk/programmeimages/episode/b039yx23_528_297.jpg
thumbnail6:     http://ichef.bbci.co.uk/programmeimages/episode/b039yx23_640_360.jpg


coupled with the option ...
Code:
--thumbsize <index|width>   Default thumbnail size/index to use for the current recording and metadata (see --info for thumbnailN: to get size/index)

I would like to use the above option in PVR mode like this...
Code:
thumbsize 1000
where the nearest size found to 1000x1000px is saved as embedded art, in the above case thumbnail6.

This would allow my player to look great when displaying embedded artwork from GiP recorded shows.

Thanks in advance.

user-2

You just need to add
Code:
--thumbsize=6
to the command line when you create a PVR job. If you don't want to do that every time, you can make it a permanent setting with
Code:
get_iplayer --prefs-add --thumbsize=6
.

get_iplayer doesn't do any sort of nearest size match. You have to use the width specified in the thumbnailN listings (e.g., N=6 -> 640). That's why you should stick to using the index numbers rather than specifying widths. The specs aren't likely to change, but by using the largest index number, you'll be sure of getting the largest thumbnail available to get_iplayer.

For most programmes, you can find a larger thumbnail by converting the "640_360" in the image URL to "832_468", "1024_576" or "1280_720". Unfortunately, those URLs are not in the metadata available to get_iplayer, so you would need to download them yourself.

user-53

A shame my idea can't be realised, but thank you for the tips, very useful.

These forums are archived

See this post for further info