Fixing Revision3 Plugin By Stacked

Discussion of plugin / script development for XBMC4Xbox
Post Reply
iCON1431
Posts: 4
Joined: Wed Jun 19, 2013 8:06 pm
Been thanked: 1 time

Fixing Revision3 Plugin By Stacked

Post by iCON1431 »

Hi,

Ive managed to update the Revision3 plugin by Stacked version1.06. I think this was the last working one for the xbox, probably wrong LOL

But I need some advice or some kind person to help with adding it to the repository. I dont know how to do this :)

I have also added in 2 extra features.

Network Shows and Archived Shows.

These both work well however I still need to work out how to remove duplicate shows from the archive list. I could only scrape the shows from each of the categories, so there are 119 or so total entries for the 58 shows so some dupes.

Any advice on how to make the list unique would be appreciated I already tried the sorted and list methods but there is a typo on the web page so I end up with one show duped still and it crashes my test script.

Hope this is useful for you all :)

iCON
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Fixing Revision3 Plugin By Stacked

Post by skatulskijean »

iCON1431 wrote:Hi,

Ive managed to update the Revision3 plugin by Stacked version1.06. I think this was the last working one for the xbox, probably wrong LOL

But I need some advice or some kind person to help with adding it to the repository. I dont know how to do this :)

I have also added in 2 extra features.

Network Shows and Archived Shows.

These both work well however I still need to work out how to remove duplicate shows from the archive list. I could only scrape the shows from each of the categories, so there are 119 or so total entries for the 58 shows so some dupes.

Any advice on how to make the list unique would be appreciated I already tried the sorted and list methods but there is a typo on the web page so I end up with one show duped still and it crashes my test script.

Hope this is useful for you all :)

iCON
Hi nice to see one man more what will change main-xbmc code to working on xbmc4xbox to !
pleace give me alink to a download and i look what is wrong!

Regards Jan
iCON1431
Posts: 4
Joined: Wed Jun 19, 2013 8:06 pm
Been thanked: 1 time

Re: Fixing Revision3 Plugin By Stacked

Post by iCON1431 »

Hi Jan,

Thanks for the help. Its my first attempt at python and plugins. So bit of a noob :)

I was just looking at your Stream All This plugin last night and its very nice :)

Ive put my full xbox package here
https://docs.google.com/file/d/0B8Zet2t ... sp=sharing

Its based on Stacked`s V1.06 and doesnt try to remove the duplicates from Archived Shows.

I wrote some test code in Python to try remove dupes etc. This is here
http://pastebin.com/4mj3Hc8B

The code separates the variables name_url, name, image, plot with regex
So I tried to remove duplicates using this code for each item
plot2 = sorted(set(plot),key=plot.index)

This worked well but the plot entry for Snappy Apps had extra spaces on one of its entries.
' Snappy App News '
'Snappy App News'
So I eneded up with 57 entries for name_url, name, image and 58 for plot

So I thought combine all the variables into one 2d array and then sort on the 1st variable ie name_url this would eliminate the plot entry problem
But I`m stuck on how to seaparate the variables or use the 2d array with the listitem command.

Thanks
iCON
captainsensation
Posts: 155
Joined: Sat May 18, 2013 5:12 pm
Has thanked: 21 times
Been thanked: 4 times

Re: Fixing Revision3 Plugin By Stacked

Post by captainsensation »

this works for me, i am able to stream death battle now!
iCON1431
Posts: 4
Joined: Wed Jun 19, 2013 8:06 pm
Been thanked: 1 time

Re: Fixing Revision3 Plugin By Stacked

Post by iCON1431 »

Great glad someone is getting some use out of it:)
iCON1431
Posts: 4
Joined: Wed Jun 19, 2013 8:06 pm
Been thanked: 1 time

Re: Fixing Revision3 Plugin By Stacked

Post by iCON1431 »

Hi Jan,

Did you have chance to look at the python code snippet on pastebin ? I would love to hear your thoughts on how to fix it :)

Thnks
iCON
Post Reply