These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Subtitles: "XPath error : Undefined namespace prefix" error with 3.00

user-1503

First off
Many thanks on getting a new version working

I'm getting the following error when downloading show with subtitles:

Code:
_The_Film_Review_name_tv
Matches:
3387:    The Film Review - 28/04/2017, BBC News, b08p1mzt

INFO: 1 Matching Programmes
INFO: Checking existence of original version
INFO: hvfhd1,hvfhd2,hvfhd3,hvfhd4,hvfhd5,hvfhd6,dvfhd1,dvfhd2,dvfhd3,dvfhd4,hlshd1,hlshd2,hvfsd1,hvfsd2,hvfsd3,hvfsd4,hvfsd5,hvfsd6,dvfsd1,dvfsd2,dvfsd3,dvfsd4,hvfxsd1,hvfxsd2,hvfxsd3,hvfxsd4,hvfxsd5,hvfxsd6,hvfxsd7,hvfxsd8,hvfxsd9,dvfxsd1,dvfxsd2,dvfxsd3,dvfxsd4,hlsvhigh1,hlsvhigh2,hvfhigh1,hvfhigh2,hvfhigh3,hvfhigh4,hvfhigh5,hvfhigh6,dvfhigh1,dvfhigh2,dvfhigh3,dvfhigh4,hvfxhigh1,hvfxhigh2,hvfxhigh3,dvfxhigh1,dvfxhigh2,dvfxhigh3,dvfxhigh4,hvflow1,hvflow2,hvflow3,dvflow1,dvflow2,dvflow3,dvflow4 modes will be tried for version original
INFO: Trying hvfhd1 mode to record tv: The Film Review - 28/04/2017
INFO: File name prefix = The_Film_Review_-_2017-04-28_b08p1mzt_original                

INFO: Downloading subtitles to: /home/bill/V1/Plex/TV/The_Film_Review_-_2017-04-28_b08p1mzt_original.srt
XPath error : Undefined namespace prefix
error : xmlXPathCompiledEval: evaluation failed at ./get_iplayer line 7429.
 if i set subtitles to "0" in the pvr text file it runs fine.

user-2

Well, that didn't take long. Do as instructed in the release notes to use the old subtitles conversion code.

EDIT: This is a bug that will be have to fixed in the next release.

user-1711

Peppa Pig (p02b2tcd) - using the following gives the following:

get_iplayer -g --pid=p02b2tcd --subtitles --subsraw

INFO: Downloading raw subtitles to: C:\Users\cat\Desktop\iPlayer Recordings/Peppa_Cyfres_2_-_Beicio_p02b2tcd_original2.ttxt
INFO: Downloading subtitles to: C:\Users\cat\Desktop\iPlayer Recordings/Peppa_Cyfres_2_-_Beicio_p02b2tcd_original2.srt
XPath error : Undefined namespace prefix
 error : xmlXPathCompiledEval: evaluation failed at C:\Program Files (x86)\get_iplayer\get_iplayer.pl line 7429.


Hope this helps. Thanks for get_iplayer, it's so useful.

user-1727

For info, this does seem to be largely an S4C programme issue (PIDs starting with P) as I upgraded to 3.00 this morning and got 2 BBC1 programmes downloaded with no issues but the 2 S4C programmes I wanted failed until I applied the fix given in the release notes.

user-1711

(01-05-2017, 11:28 AM)For info, this does seem to be largely an S4C programme issue (PIDs starting with P) as I upgraded to 3.00 this morning and got 2 BBC1 programmes downloaded with no issues but the 2 S4C programmes I wanted failed until I applied the fix given in the release notes.

No, I wouldn't agree with that. I've hit the same issue on other BBC programmes - Question Time I think being the last one I noticed before applying the fix.

It may simply be down to the pure luck of the subtitle content and whether it contains any unusual formatting (which is, admittedly, more likely on S4C programmes or BBC programmes that were originally live.)

user-1540

I have noticed that in new 3.0.0 release for Win download fails for programmes which has non English characters in the name.

For example
Code:
get_iplayer --subtitles --modes=best --search "Bing" --get

returns error:
Code:
C:\Media>call get_iplayer --subtitles --modes=best --search "Bing" --get
get_iplayer 3.00-windows.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.

 NOTE: A UK TV licence is required to legally access BBC iPlayer TV content

Matches:
1448:   Bing: Cyfres 2014 - Ty, S4C, p02ycv6v
1449:   Bing: Cyfres 2014 - Murlun, S4C, p02z15tm
1450:   Bing: Cyfres 2014 - Cuddio, S4C, p02zfxxb
1451:   Bing: Cyfres 2014 - Castell Tywod, S4C, p02zj9ny
1452:   Bing: Cyfres 2014 - Esgidiau Tincial, S4C, p030nw1s
1453:   Bing: Cyfres 2014 - Edrych ar ôl Fflop, S4C, p030ssk6
1455:   Bing: Cyfres 2014 - Hipo Wini a Wil Bwni Wib, S4C, p031dhzr
1456:   Bing: Cyfres 2014 - Dere Charli, S4C, p0321csg
1457:   Bing - Bye Bye, CBeebies, b046ts21
1458:   Bing - Shadow, CBeebies, b047d659
1459:   Bing - Voo Voo, CBeebies, b047wtlv
1460:   Bing - Here I Go, CBeebies, b047zrfs
1461:   Bing - Growing, CBeebies, b047zwxm
1462:   Bing - Atchoo!, CBeebies, b0480276
1463:   Bing - Hide-and-Seek, CBeebies, b048065z
1464:   Bing - Bake, CBeebies, b048sj6w
1471:   Bing - Paddling Pool, CBeebies, b04jqs52
1472:   Bing - Blankie, CBeebies, b04jrv7c
1473:   Bing - Boo, CBeebies, b04jrwr6
1474:   Bing - Talkie Taxi, CBeebies, b04jry2q
1475:   Bing - Kite, CBeebies, b04jrybn
1476:   Bing - More, CBeebies, b04k6fjq
1481:   Bing - Nature Explorer, CBeebies, b05tk9f8
1482:   Bing - Lunch, CBeebies, b05vhd2w

INFO: 24 Matching Programmes
INFO: Bing: Cyfres 2014 - Ty (p02ycv6v) Already in history (C:\Users\arevrt01/.get_iplayer/download_history) - use --force to override
INFO: Bing: Cyfres 2014 - Murlun (p02z15tm) Already in history (C:\Users\arevrt01/.get_iplayer/download_history) - use --force to override
INFO: Bing: Cyfres 2014 - Cuddio (p02zfxxb) Already in history (C:\Users\arevrt01/.get_iplayer/download_history) - use --force to override
INFO: Bing: Cyfres 2014 - Castell Tywod (p02zj9ny) Already in history (C:\Users\arevrt01/.get_iplayer/download_history) - use --force to override
INFO: Bing: Cyfres 2014 - Esgidiau Tincial (p030nw1s) Already in history (C:\Users\arevrt01/.get_iplayer/download_history) - use --force to override
INFO: Checking existence of original version
INFO: hvfxsd1,hvfxsd2,hvfxsd3,hvfxsd4,hvfxsd5,hvfxsd6,hvfxsd7,hvfxsd8,hvfxsd9,dvfxsd1,dvfxsd2,dvfxsd3,dvfxsd4,hlsvhigh1,hlsvhigh2,hvfxhigh1,hvfxhigh2,hvfxhigh3,dvfxhigh1,dvfxhigh2,dvfxhigh3,dvfxhigh4,hvflow1,hvflow2,hvflow3,dvflow1,dvflow2,dvflow3,dvflow4 modes will be tried for version original
INFO: Trying hvfxsd1 mode to record tv: Bing: Cyfres 2014 - Edrych ar ôl Fflop
INFO: File name prefix = Bing_Cyfres_2014_-_Edrych_ar_ol_Fflop_p030ssk6_original

INFO: Downloading subtitles to: C:\Media\iPlayer Recordings/Bing_Cyfres_2014_-_Edrych_ar_ol_Fflop_p030ssk6_original.srt
XPath error : Undefined namespace prefix
error : xmlXPathCompiledEval: evaluation failed at C:\Program Files (x86)\get_iplayer\get_iplayer.pl line 7429.

Regards,
Areg

user-2

That has nothing to do with the name. It's a bug in XML processing. Merging this with earlier thread.

user-1230

Thank you, I was getting the error on the Hinterland programs (eg b03sgfbz) and the ' --prefs-add --subsfmt=default' fixed it.

user-1543

Most download okay, but some have issues when downloading the subtitles. This halts get_iplayer completely.


3238:   Hinterland: Series 3 - Episode 4 - Part 2, BBC One, b08nx7g2

INFO: 1 Matching Programmes
WARNING: Some recording modes were remapped to new values
WARNING: Input mode list remapped from 'flashhigh' to 'hlsstd'
WARNING: Please update your preferences
INFO: Checking existence of original version
INFO: hlsstd1,hlsstd2 modes will be tried for version original
INFO: Trying hlsstd1 mode to record tv: Hinterland: Series 3 - 4. Episode 4 - Part 2
INFO: File name prefix = Hinterland_Series_3_-_4._Episode_4_-_Part_2_b08nx7g2_original

INFO: Downloading subtitles to: C:\Users\Me\Downloads\get_iplayer/Hinterland_Series_3_-_4._Episode_4_-_Part_2_b08nx7g2_original.srt
XPath error : Undefined namespace prefix
 error : xmlXPathCompiledEval: evaluation failed at C:\Program Files\get_iplayer\get_iplayer.pl line 7429.


Hinterland_Series_3_-_4._Episode_4_-_Part_1 loaded okay, but this error is at Hinterland_Series_3_-_4._Episode_4_-_Part_2

Disabling subtitle downloads is the current workaround for me.

user-1738

Same issue here, choose to turn off subtitle download. Then works fine.

pid:b08pgksg
pid:b08pgqtc

user-1777

Problem with b08pmtb1 Panorama - Madeleine McCann: 10 Years On

Works fine with the deprecated fix in the release notes.

These forums are archived

See this post for further info