
http://theconversation.edu.au/python-iview-copyright-crusader-or-vigilante- operative-9763 I'm sure that many people here are aware of Jeremy Visser’s good work in creating the python-iview program to allow those of us who don't use Flash to access ABC TV content over the Internet. Unfortunately the ABC has threatened legal action against him in regard to this issue and he has taken down the repository of the source code. https://jeremy.visser.name/2012/09/python-iview-press-qanda/ Jeremy has published a FAQ at the above URL. It's interesting that the ABC apparently have a TOS hidden away somewhere that tells us not to download episodes. If the ABC had asked Jeremy to make his program stream programs instead of downloading them they could also have asked him to display the TOS. Anyway I just noticed this because the "iview-cli -p" command has started to fail repeatedly with the following error and I went looking for a newer version of the source. Traceback (most recent call last): File "/usr/bin/iview-cli", line 179, in <module> programme() File "/usr/bin/iview-cli", line 44, in programme items = iview.comm.get_series_items(series['id']) File "/usr/lib/pymodules/python2.7/iview/comm.py", line 93, in get_series_items return parser.parse_series_items(series_json, get_meta) File "/usr/lib/pymodules/python2.7/iview/parser.py", line 105, in parse_series_items for item in series_json[0]['f']: IndexError: list index out of range I wondered if the ABC had changed something to make it fail. I don't imagine that they would deliberately try to make iview-cli crash, but I can imagine them putting in a hack to abort the connection in a way that iview-cli doesn't expect. I've just tried iview-gtk and that works well enough, so maybe it's just a bug in the cli version of the software. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

On Wed, 10 Oct 2012 22:57:01 +1100, Russell Coker <russell@coker.com.au> wrote:
Anyway I just noticed this because the "iview-cli -p" command has started to fail repeatedly with the following error and I went looking for a newer version of the source. ... I've just tried iview-gtk and that works well enough, so maybe it's just a bug in the cli version of the software.
IndexError: list index out of range
The problem is because the "Artscape" section on iview currently has 0 entries in it. The gtk version doesn't automatically recurse through the entries like the cli version does, but if you open the Artscape section from the GUI it produces the same error. regards, Glenn -- sks-keyservers.net 0xb1e82ec9228ac090

On 10/10/2012 22:57, Russell Coker wrote:
File "/usr/lib/pymodules/python2.7/iview/parser.py", line 105, in parse_series_items for item in series_json[0]['f']: IndexError: list index out of range
Haven't looked at the code in a long time, but from memory you need to change an except statement to catch "IndexError" as well as whatever else it's catching. This bug has actually been fixed, but didn't get around to releasing the fix by the time the C&D was received.
participants (4)
-
Glenn McIntosh
-
Jeremy Visser
-
Rick Moen
-
Russell Coker