joolswills / plugin.video.iplayer

This plugin is broken.
10 stars 4 forks source link

Programs disappear from list once watched, even partially #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select a programme group in a channel
2. Start watching one of the programs, then stop it
3. The program is now no longer listed in the group

In the past programmes did not disappear after watching.  I am not sure if this 
is a bug or a feature, but there seem to be no options to control it, and there 
is almost no information on the web or the humongous support thread (Argh!), 
except perhaps for this (unanswered?) post:

http://forum.xbmc.org/showthread.php?tid=51322&pid=1443630&#pid1443630

I'm using v2.4.18 of the plugin for XBMC installed via .deb 
2:11.0~git20120423.cd20772-1 on Ubuntu 12.04.

Original issue reported on code.google.com by ng.wu....@googlemail.com on 27 Nov 2013 at 9:22

GoogleCodeExporter commented 9 years ago
please update and try the latest version of the addon. also please post a debug 
log. thanks.

Original comment by exob...@gmail.com on 3 Jan 2014 at 4:05

GoogleCodeExporter commented 9 years ago
Ok, I've upgraded the iPlayer plugin to v2.5.3.  

I discover I can make the watched programs reappear if I delete:

  ~/.xbmc/userdata/addon_data/plugin.video.iplayer/iplayer_resume.txt

After watching a program for a few seconds and stopping it, the file is 
recreated with a new entry, presumably for the program I just watched. That 
program no longer appears in the plug-in's listings.

Attached is a log, in which I see there is an exception related to the resume 
file:

23:39:13 T:2984217408  NOTICE: iplayer2.py: INFO iPlayer: Found 1 resume entries
23:39:13 T:2984217408  NOTICE: .
23:39:13 T:2984217408   ERROR: Traceback (most recent call last):
23:39:13 T:2984217408   ERROR:   File 
"/home/nick/.xbmc/addons/plugin.video.iplayer/default.py", line 669, in 
list_feed_listings
23:39:13 T:2984217408   ERROR:     if not add_programme(feed, p, total, count, 
thumbnail_size, feed.tvradio):
23:39:13 T:2984217408   ERROR:   File 
"/home/nick/.xbmc/addons/plugin.video.iplayer/default.py", line 451, in 
add_programme
23:39:13 T:2984217408   ERROR:     totalItems=totalItems
23:39:13 T:2984217408   ERROR: TypeError: argument 1 must be unicode or str

Original comment by ng.wu....@googlemail.com on 14 Jan 2014 at 11:43

Attachments:

GoogleCodeExporter commented 9 years ago
I should add, this is the resume file:

cat .xbmc/userdata/addon_data/plugin.video.iplayer/iplayer_resume.txt 
b01n84wv 1.906000 1389742753

Original comment by ng.wu....@googlemail.com on 14 Jan 2014 at 11:46

Attachments:

GoogleCodeExporter commented 9 years ago
Bump?

Original comment by ng.wu....@googlemail.com on 2 Mar 2014 at 12:43

GoogleCodeExporter commented 9 years ago
is this still happening with the latest version from svn ? 

Original comment by exob...@gmail.com on 12 May 2014 at 5:41

GoogleCodeExporter commented 9 years ago
Ok, got the latest source as per 
https://code.google.com/p/xbmc-iplayerv2/source/checkout

Essentially the same behaviour, yes.  Watch a video, halt it, video disappears 
from list.

The debug log contains this:

....
21:58:04 T:2810182464   DEBUG: Process - Entering source directory 
/home/nick/.xbmc/addons/plugin.video.iplayer
21:58:04 T:2810182464   DEBUG: Instantiating addon using automatically obtained 
id of "plugin.video.iplayer" dependent on version 2.1.0 of the xbmc.python api
21:58:05 T:2810182464    INFO: plugin.video.iplayer: Version: 2.5.7
21:58:05 T:2810182464    INFO: plugin.video.iplayer: Subtitles dir: 
/home/nick/.xbmc/userdata/addon_data/plugin.video.iplayer/Subtitles
21:58:05 T:2810182464    INFO: plugin.video.iplayer: (<iplayer2.feed object at 
0xb633a0c>, 'list', None, None, None, 'Alphablocks', None, None, None, None, 
None, None, None, None)
21:58:05 T:2810182464    INFO: plugin.video.iplayer: Read RSS: 
http://feeds.bbc.co.uk/iplayer/cbeebies/list
21:58:05 T:2810182464    INFO: plugin.video.iplayer: Feed URL not in cache, 
requesting...
21:58:05 T:2810182464    INFO: plugin.video.iplayer: URL Fetch took 0.03 sec 
for http://feeds.bbc.co.uk/iplayer/cbeebies/list
21:58:05 T:3012282112   DEBUG: ------ Window Init (DialogBusy.xml) ------
21:58:05 T:2810182464    INFO: plugin.video.iplayer: Found 300 entries
21:58:05 T:2810182464   DEBUG: plugin.video.iplayer: Adding program: 
{'re_newbaseurl': <_sre.SRE_Pattern object at 0xb6b6df0>, 'episode': 
'Alphablocks:05', '_related': [], 'series': 'Alphablocks', 'pid': 'b02zc6w4', 
'meta': {'updated': '2014-05-06T12:32:56Z', 'summary': 'When the Alphablocks 
make the alphabet, anything can happen - as PH and WH find out!', 'thumbnail': 
'http://ichef.bbci.co.uk/programmeimages/p01m60jc/b02zc6w4_150_84.jpg', 
'title': 'Alphablocks: Series 4: Alphabet'}, '_items': [], 'categories': 
["Children's", 'Learning', 'Entertainment & Comedy', 'Pre-School', 'Animation', 
'TV']}
21:58:05 T:2810182464    INFO: plugin.video.iplayer: Loading resume file: 
/home/nick/.xbmc/userdata/addon_data/plugin.video.iplayer/iplayer_resume.txt
21:58:05 T:2810182464    INFO: plugin.video.iplayer: Found 6 resume entries
21:58:05 T:2810182464   ERROR: Traceback (most recent call last):
21:58:05 T:2810182464   ERROR:   File 
"/home/nick/.xbmc/addons/plugin.video.iplayer/default.py", line 599, in 
list_feed_listings
21:58:05 T:2810182464   ERROR:     if not add_programme(feed, p, total, count, 
thumbnail_size, feed.tvradio):
21:58:05 T:2810182464   ERROR:   File 
"/home/nick/.xbmc/addons/plugin.video.iplayer/default.py", line 381, in 
add_programme
21:58:05 T:2810182464   ERROR:     totalItems=totalItems
21:58:05 T:2810182464   ERROR: TypeError: argument 1 must be unicode or str
21:58:05 T:2810182464   DEBUG: plugin.video.iplayer: Adding program: 
{'re_newbaseurl': <_sre.SRE_Pattern object at 0xb6b6df0>, 'episode': 
'Alphablocks:07', '_related': [], 'series': 'Alphablocks', 'pid': 'b036brq2', 
'meta': {'updated': '2014-05-12T18:29:51Z', 'summary': 'At the end of a very 
busy day, E just wants to sing himself to sleep.', 'thumbnail': 
'http://ichef.bbci.co.uk/programmeimages/p01m60jc/b036brq2_150_84.jpg', 
'title': 'Alphablocks: Series 4: Sleep'}, '_items': [], 'categories': 
["Children's", 'Learning', 'Entertainment & Comedy', 'Pre-School', 'Animation', 
'TV']}
21:58:05 T:2810182464   ERROR: Traceback (most recent call last):
21:58:05 T:2810182464   ERROR:   File 
"/home/nick/.xbmc/addons/plugin.video.iplayer/default.py", line 599, in 
list_feed_listings
21:58:05 T:2810182464   ERROR:     if not add_programme(feed, p, total, count, 
thumbnail_size, feed.tvradio):
21:58:05 T:2810182464   ERROR:   File 
"/home/nick/.xbmc/addons/plugin.video.iplayer/default.py", line 381, in 
add_programme
21:58:05 T:2810182464   ERROR:     totalItems=totalItems
21:58:05 T:2810182464   ERROR: TypeError: argument 1 must be unicode or str
21:58:05 T:2810182464   DEBUG: plugin.video.iplayer: Adding program: 
{'re_newbaseurl': <_sre.SRE_Pattern object at 0xb6b6df0>, 'episode': 
'Alphablocks:08', '_related':
...

The resume file 
~/.xbmc/userdata/addon_data/plugin.video.iplayer/iplayer_resume.txt contains:

b02zc6w4 28.430001 1399928088
b030t556 72.521003 1399928154
b036btdw 30.242001 1399928324
b00mqhc7 857.975041 1399577881
b036brq2 71.689003 1399928177
b00mvpby 858.775041 1399664673
b01pkjy6 2906.733138 1399500393

Original comment by oinksoc...@letterboxes.org on 12 May 2014 at 9:22

GoogleCodeExporter commented 9 years ago
unfortunately I am unable to reproduce here. Please can you take me through the 
steps to reproduce it in case I have missed something (and details of 
hardware/platform)

Original comment by exob...@gmail.com on 13 May 2014 at 4:08

GoogleCodeExporter commented 9 years ago
Hardware: Acer Revo, Intel Atom 1.60GHz CPU
OS: Kubuntu Precise

Software: xbmc 2:11.0~git20120423.cd20772-1 from universe/video
Depends: xbmc-bin (>= 2:11.0~git20120423.cd20772-1), xbmc-bin (<
         2:11.0~git20120423.cd20772-1.1~), mesa-utils, x11-utils,
         ttf-liberation, ttf-dejavu-core, python-imaging, python, python-support
         (>= 0.90.0)

Assuming this is installed, the steps to reproduce are simply to open xbmc and 
start the iplayer plugin, then navigate to a program, select one of the 
episodes, and start playing it.  When testing, I skipped ahead a little, then 
stopped it. When the list of episodes are shown again, the one just watched is 
no longer there.

Note that simply playing and halting immediately after a few seconds doesn't do 
the trick, I guess there is no resume information written until some minimum 
fraction is played.

If one then deletes the resume file, all the watched episodes appear in the 
list again.  This can be done whilst xbmc is running.

I also deleted the entire userdata/plugins/addon_data/plugin.video.iplayer/ 
directory, in case there was some state left there.  However, this did not 
change the behaviour.

Original comment by oinksoc...@letterboxes.org on 13 May 2014 at 8:39

GoogleCodeExporter commented 9 years ago
doesn't happen here though (and there would be far more people reporting the 
bug if this was a common problem).

BTW your xbmc is ancient. 2 releases old - it's possible your python version is 
also old which could be related. There is also a new kubuntu LTS, so it might 
be worth updating your system.

Original comment by exob...@gmail.com on 13 May 2014 at 9:21

GoogleCodeExporter commented 9 years ago
Thanks for checking. Indeed Eden is ancient, however the version of XBMC 
supplied with Precise is up to Ubuntu.  I'd have guessed there would be a 
reasonable number of people still using Precise LTS, and therefore XBMC Eden 
and Python 2.7.3, as it's supported for another three years.

I didn't notice there was a new LTS...  but I confess I switched to using LTS 
editions precisely because of a number of painful and time consuming incidents 
upgrading.  Sounds like I may have to live with this particular bug until I 
gather the courage to upgrade again!

Original comment by oinksoc...@letterboxes.org on 13 May 2014 at 9:42

GoogleCodeExporter commented 9 years ago
XBMC Eden is no longer supported though (addon authors are not even allowed to 
update their addons in the official repository). If you are running Precise you 
should use the XBMC ppa and install a new xbmc (apt-add-repository 
ppa:team-xbmc/ppa)

Original comment by exob...@gmail.com on 13 May 2014 at 9:45

GoogleCodeExporter commented 9 years ago
That gets me XBMC Gotham, which seems to work much better, and the resume issue 
is gone.

Thanks.

Original comment by oinksoc...@letterboxes.org on 13 May 2014 at 10:53

GoogleCodeExporter commented 9 years ago

Original comment by exob...@gmail.com on 13 May 2014 at 10:59