- add print statements around your code so you can see what is getting passed through the plugin
Just by looking at the debug log I found your problem in a couple of seconds. I also added "print match" so I can see whats going on.
Code:
08:10:03 T:408 M:551960576 NOTICE: [('http://i27.tinypic.com/x6alx2.png', '17 Aug Thank You JiJaJi', '17 Aug Thank You JiJaJi'), ('http://i29.tinypic.com/2qutamc.jpg', '23 Aug Baa Bahoo Aur Baby - Season 2 * Episode 1', '23 Aug Baa Bahoo Aur Baby - Season 2 * Episode 1'), ('http://i43.tinypic.com/15g32wl.jpg', '22 Aug Sssshhh Phir Koi Hai', '22 Aug Sssshhh Phir Koi Hai'), ('http://i28.tinypic.com/mct5pv.jpg', '23 Aug MTV Stunt Mania', '23 Aug MTV Stunt Mania'), ('http://upload.wikimedia.org/wikipedia/en/thumb/9/99/DekhInidaDekh02.jpg/250px-DekhInidaDekh02.jpg', '22 Aug Dekh India Dekh', '22 Aug Dekh India Dekh'), ('http://i42.tinypic.com/2url6z7.jpg', '22 Aug 10 Ka Dum 2 * Navjot Singh Sidhu & Kapil Dev', '22 Aug 10 Ka Dum 2 * Navjot Singh Sidhu & Kapil Dev'), ('http://i42.tinypic.com/4vseq9.jpg', "22 Aug India's Got Talent - Grand Finale", "22 Aug India's Got Talent - Grand Finale"), ('http://i43.tinypic.com/15g32wl.jpg', '21 Aug Sssshhh Phir Koi Hai', '21 Aug Sssshhh Phir Koi Hai'), ('http://i31.tinypic.com/xngk0j.jpg', '22 Aug Tere Mere Beach Mein * Salman Khan', '22 Aug Tere Mere Beach Mein * Salman Khan'), ('http://i41.tinypic.com/2ptyofb.jpg', '22 Aug MTV Connected - Grand Finale', '22 Aug MTV Connected - Grand Finale'), ('http://i42.tinypic.com/eknwgm.jpg', "22 Aug L'il Champs", "22 Aug L'il Champs"), ('http://i42.tinypic.com/105s7b8.jpg', '21 Aug CID', '21 Aug CID'), ('http://i42.tinypic.com/eknwgm.jpg', "21 Aug L'il Champs", "21 Aug L'il Champs"), ('http://i28.tinypic.com/5cyj5w.jpg', 'Because My Name is Khan', 'Because My Name is Khan'), ('http://i27.tinypic.com/qs8i77.png', 'AR Rahman Unplugged', 'AR Rahman Unplugged'), ('http://i31.tinypic.com/fyir8m.jpg', 'SRK Speaks on US Airport Detention', 'SRK Speaks on US Airport Detention'), ('http://i29.tinypic.com/4qmq7m.png', 'The Making of Kaminey', 'The Making of Kaminey'), ('http://i43.tinypic.com/15g32wl.jpg', '15 Aug Sssshhh Phir Koi Hai', '15 Aug Sssshhh Phir Koi Hai'), ('http://i42.tinypic.com/4vseq9.jpg', "16 Aug India's Got Talent - Wild Card Entry", "16 Aug India's Got Talent - Wild Card Entry"), ('http://i29.tinypic.com/25zjtjb.jpg', '16 Aug Vikram Aur Betaal', '16 Aug Vikram Aur Betaal'), ('http://i26.tinypic.com/68547c.jpg', '16 Aug Khana Khazana', '16 Aug Khana Khazana'), ('http://i28.tinypic.com/mct5pv.jpg', '16 Aug MTV Stunt Mania', '16 Aug MTV Stunt Mania'), ('http://upload.wikimedia.org/wikipedia/en/thumb/9/99/DekhInidaDekh02.jpg/250px-DekhInidaDekh02.jpg', '15 Aug Dekh India Dekh', '15 Aug Dekh India Dekh'), ('http://i39.tinypic.com/s3g4xy.jpg', '15 Aug Hans Baliye * Grand Finale', '15 Aug Hans Baliye * Grand Finale'), ('http://i42.tinypic.com/4vseq9.jpg', "15 Aug India's Got Talent", "15 Aug India's Got Talent"), ('http://i42.tinypic.com/eknwgm.jpg', "15 Aug L'il Champs", "15 Aug L'il Champs"), ('http://i42.tinypic.com/2url6z7.jpg', '15 Aug 10 Ka Dum 2 * Independence Day Special', '15 Aug 10 Ka Dum 2 * Independence Day Special'), ('http://i42.tinypic.com/105s7b8.jpg', '14 Aug CID', '14 Aug CID'), ('http://i43.tinypic.com/15g32wl.jpg', '14 Aug Sssshhh Phir Koi Hai', '14 Aug Sssshhh Phir Koi Hai'), ('http://i42.tinypic.com/eknwgm.jpg', "14 Aug L'il Champs", "14 Aug L'il Champs"), ('http://i25.tinypic.com/2r5sr40.jpg', '13 Aug To Catch a Star * Shahid Kapoor on Kaminey', '13 Aug To Catch a Star * Shahid Kapoor on Kaminey'), ('http://i27.tinypic.com/x6alx2.png', '10 Aug Thank You JiJaJi', '10 Aug Thank You JiJaJi'), ('http://i26.tinypic.com/s63r82.jpg', 'SRK * Karan Johar on My Name is Khan', 'SRK * Karan Johar on My Name is Khan'), ('http://i42.tinypic.com/4vseq9.jpg', "9 Aug India's Got Talent", "9 Aug India's Got Talent"), ('http://i26.tinypic.com/sn2mx5.png', '9 Aug Aaj Tak Seedhi Baat * Rakhi Sawant', '9 Aug Aaj Tak Seedhi Baat * Rakhi Sawant'), ('http://i28.tinypic.com/mct5pv.jpg', '9 Aug MTV Stunt Mania', '9 Aug MTV Stunt Mania'), ('http://i39.tinypic.com/s3g4xy.jpg', '8 Aug Hans Baliye', '8 Aug Hans Baliye'), ('http://i43.tinypic.com/15g32wl.jpg', '8 Aug Sssshhh Phir Koi Hai', '8 Aug Sssshhh Phir Koi Hai'), ('http://upload.wikimedia.org/wikipedia/en/thumb/9/99/DekhInidaDekh02.jpg/250px-DekhInidaDekh02.jpg', '8 Aug Dekh India Dekh', '8 Aug Dekh India Dekh'), ('http://i42.tinypic.com/4vseq9.jpg', "8 Aug India's Got Talent", "8 Aug India's Got Talent"), ('http://i41.tinypic.com/2ptyofb.jpg', '8 Aug MTV Connected', '8 Aug MTV Connected'), ('http://i42.tinypic.com/eknwgm.jpg', "8 Aug L'il Champs", "8 Aug L'il Champs"), ('http://i42.tinypic.com/2url6z7.jpg', '8 Aug 10 Ka Dum 2 * Sanjay Dutt and Jackie Shroff', '8 Aug 10 Ka Dum 2 * Sanjay Dutt and Jackie Shroff'), ('http://i42.tinypic.com/105s7b8.jpg', '7 Aug CID', '7 Aug CID'), ('http://i43.tinypic.com/15g32wl.jpg', '7 Aug Sssshhh Phir Koi Hai', '7 Aug Sssshhh Phir Koi Hai')]
08:10:03 T:408 M:551956480 NOTICE: Traceback (most recent call last):
08:10:03 T:408 M:551956480 NOTICE: File "C:\Documents and Settings\Administrator\Application Data\XBMC\plugins\video\PBS Video\default.py", line 432, in ?
08:10:03 T:408 M:551956480 NOTICE: INDEX(url)
08:10:03 T:408 M:551956480 NOTICE: File "C:\Documents and Settings\Administrator\Application Data\XBMC\plugins\video\PBS Video\default.py", line 36, in INDEX
08:10:03 T:408 M:551956480 NOTICE: for url,name in match:
08:10:03 T:408 M:551956480 NOTICE: ValueError
08:10:03 T:408 M:551956480 NOTICE: :
08:10:03 T:408 M:551956480 NOTICE: too many values to unpack
08:10:03 T:408 M:551956480 ERROR: Scriptresult: Error
So each element in the match array has 3 "arguments or parameters", but you are only address 2 (url,name) eg. ('http://i27.tinypic.com/x6alx2.png', '17 Aug Thank You JiJaJi', '17 Aug Thank You JiJaJi') You forgot to include the third argument in the for loop. Replace, "for url,name in match:" in line 34 with "for url,name,trash in match:" This gets the plugin running without errors. It doesn't exactly work because the url you are passing is a image and not a page.
I added a few lines to get the plugin running and playing a video. You still need to find a way to get to the other pages.
btw, take a look at my changes under the diff...
btw, I just wanna say thanks and congrats on trying to write your own plugin.
Most ppl would just request for a plugin rather than trying to make it for them self.