On 01/07/15 20:54, Russell Coker wrote: > $ ./iview-cli -p > Sorry, iview is no longer available on this device: > The above is from the Python iview client. Does anyone know a way around > this?
As an interim measure, you can watch an iview clip with vlc using the following bash script wrapper (please excuse the grep parsing!). The first section generates an iview episode list in 'menu.lst', if that is all you want. -- #!/bin/bash # iview player, requires curl, zenity, vlc # Usage: ./iview.sh ["keyword"] if [[ ! -f menu.lst || $(find menu.lst -mmin +10) ]] then cred=$(echo -n feedtest:abc123 | base64) url="https://tviview.abc.net.au/iview/feed/samsung/?keyword=index" curl -H "Authorization:Basic $cred" $url >iv.json cd='<!\[CDATA' grep -oP "(?<=\t<title>$cd)\[[^][]*\]" iv.json >title.lst grep -oP "(?<=\t<subtitle>$cd)\[[^][]*\]" iv.json >subtitle.lst grep -oP "(?<=<abc:videoAsset>$cd\[)[^][]*(?=\])" iv.json >asset.lst paste title.lst subtitle.lst asset.lst | sort >menu.lst fi grep -i "$1" menu.lst | tr '\t' '\n' >selection.txt stream=$(zenity --list <selection.txt --print-column=3 \ --column="series" --column="episode" --column="asset" --hide-column=3) if [ "$stream" == "" ]; then exit; fi vlc $stream
signature.asc
Description: OpenPGP digital signature
_______________________________________________ luv-main mailing list [email protected] http://lists.luv.asn.au/listinfo/luv-main
