XBMC Community Forum
Icefilms (Icefilms.info) Addon Development Thread - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: Icefilms (Icefilms.info) Addon Development Thread (/showthread.php?tid=90315)



- spoyser - 2011-11-25 17:17

I forgot to ask earlier, what is the Auto-View setting?


- Eldorado - 2011-11-25 17:30

spoyser Wrote:I forgot to ask earlier, what is the Auto-View setting?

Wish I knew Smile It was already done when I grabbed the code.. but have never tried it


Found the double slash problem..

When they scrape for video links in any other category they omit the leading slash:

Code:
scrape=re.compile('<a name=i id=(.+?)></a><img class=star><a href=[b][color=Red]/[/color][/b](.+?)>(.+?)<br>').findall(link)

But for the homepage categories it's included.. so easy fix is:

Code:
mirlinks=re.compile('<a href=[b][color=Red]/[/color][/b](.+?)>(.+?)</a>').findall(scraped)


If you can confirm that works, i'll update the current release and maybe push out a quick 1.0.18


- Eldorado - 2011-11-25 17:37

mikey1234 Wrote:i have premium and works fine



only problem is the circles spins and says working but the movie doesnt play

On every video? Can you post a debug log?


- spoyser - 2011-11-25 18:40

Eldorado Wrote:Wish I knew Smile It was already done when I grabbed the code.. but have never tried it


Found the double slash problem..

When they scrape for video links in any other category they omit the leading slash:

Code:
scrape=re.compile('<a name=i id=(.+?)></a><img class=star><a href=[b][color=Red]/[/color][/b](.+?)>(.+?)<br>').findall(link)

But for the homepage categories it's included.. so easy fix is:

Code:
mirlinks=re.compile('<a href=[b][color=Red]/[/color][/b](.+?)>(.+?)</a>').findall(scraped)


If you can confirm that works, i'll update the current release and maybe push out a quick 1.0.18

Just tried the fix and can confirm it does work. Was probably a typo originally that just happened to work for the coder and the majority of users.

Isn't it always the way, takes ages to find a bug, and they almost always boil down to 1 line of code!!

If you do a 1.0.18 is there any chance you can squeeze the improved search into it as well?

(I notice you removed the total items from the seach dialog progress.)


- zpanderson - 2011-11-25 18:53

spoyser Wrote:I forgot to ask earlier, what is the Auto-View setting?

For example: I'm using the customizable confluence and I want my view to automatically be set to the following when I open the different types of directories.

Tv Shows: (media info 2)
Episodes: (media info 2)
Movies: (halfwall 2)

I would set the auto-view setting on and set the values to...

Tv Shows: 503
Episodes: 503
Movies: 727

To find the number you need to use for each view type you have to go into
AppData/Roaming/XBMC/addons/*SKINNAME*/720p/

In that directory should be the ViewType_*NAME*.xml files describing how each view will look.

If the view you're looking for does not have it's own ViewType_*NAME*.xml look in the ViewsVideoLibrary.xml and search for the name of the view.

The number will correspond to the ID found in whichever file you use.


- spoyser - 2011-11-25 19:13

Just got another error, something to do with the watched_percentage, see

http://pastebin.com/uyK5nUH8


Edit:
Looks like just changing the value in the settings fixes the problem, I assume it isn't initalized by default?


- zpanderson - 2011-11-25 19:23

spoyser Wrote:Just got another error, something to do with the watched_percentage, see

http://pastebin.com/uyK5nUH8


Edit:
Looks like just changing the value in the settings fixes the problem, I assume it isn't initalized by default?

Looks like you're right. Saving a setting fixes the issue.

Quote:<setting id="watched-percent" label="30501" type="enum" values="50 %|60 %|70 %|80 %|90 %" default="80" />

I guess default should be 3 instead of 80?


- Eldorado - 2011-11-25 22:21

Good spot.. good thing you guys are helping Smile


- Eldorado - 2011-11-26 00:23

I'm currently running a full scrape of Icefilms.. slow and steady, but so far it's solid

Once I have a full DB I'll update the download link so everyone has one for testing, I'll save the covers and fanart until closer to release

I should also note, for testing I set the auto-watch to update if the total percentage watched is LESS than the percentage you set in the addon settings.. just so you don't have to wait too long to see it flip, currently you need to let the video play for at least 20 seconds


Since we're getting most bugs squashed and new features fully implemented, is there any other reasonable features we should look at?

Off top of my head I was thinking:
- download & watch
- trakt
- playlist mutli-part sources
- video seeking - see wesada's post


- mikey1234 - 2011-11-26 01:26

Eldorado Wrote:On every video? Can you post a debug log?

Where do I find the debug logs to show you