• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7
Release DMAX Italia video addon
#16
Nevermind.
I figure it out: I am using BeautifulSoup 3.0.6 and I was trying to apply the syntax for the 4th version.
Anyway I have still an issue:

Code:
shows_list = soup.findAll('li', {'class' : re.compile("^(first-child|last-child|)$") })

This regex should match first-child or last-child or empty, but it does not match empty.

For now I will continue with my regex until I will not find a solution Smile

Regarding the playback there is not so much to do for now: you cannot override every player setting (like the autoStart parameter).
I will try to document me more in the next few days.

For now, enjoy the DMAX Italia 1.0.3 plugin version.

Enjoy,
Goph
Reply
#17
Another update:
DMAX Italia 1.0.4

Now the plugin is getting the shows thumbnails. The first loading will be a little slow, but the second one should be faster because the thumbnails are loading from the cache.

Enjoy,
Goph
Reply
#18
Great job !
Reply
#19
I made a patch:
http://textuploader.com/9p83

Changes:
* using only BeautifulSoup, getting rid of regexp
* using common plugin cache to cache thumbnail url (much better times from the second access)
* placed xbmcplugin.addSortMethod of the for loop
* sort episodes by dates, starting from the most recent
Reply
#20
Hey nightflyer,
thanks a lot. I have to move the project to github..unfortunately I belong to the svn side.
Is it so much different?
Reply
#21
(2014-05-28, 16:53)Gopher Wrote: Hey nightflyer,
thanks a lot. I have to move the project to github..unfortunately I belong to the svn side.
Is it so much different?

It is different (and better) but I was used to cvs and svn too Smile
Reply
#22
Ok. So it is not dramatic, thanks Smile.

Only one question: are you sure of this piece of code?

Code:
show_thumbnail = cache.cacheFunction(getShowThumbnail, urlShows + link['href'])

Code:
def getShowThumbnail(link):
    page = loadPage(link)
    soup = BeautifulSoup(page)
    show_banner = soup.find('div','overlay extralarge')
    return show_thumbnail

I think it should be

Code:
def getShowThumbnail(link):
    page = loadPage(link)
    soup = BeautifulSoup(page)
    show_banner = soup.find('div','overlay extralarge')
    show_thumbnail = baseUrl + show_banner.find('img')['src']
    return show_thumbnail

Right?
Reply
#23
(2014-05-28, 17:34)Gopher Wrote: Ok. So it is not dramatic, thanks Smile.

Only one question: are you sure of this piece of code?
...
Right?

Shit! You are right. I deleted that line accidentally Sad

BTW, you need the common plugin cache addon installed:
http://wiki.xbmc.org/index.php?title=Add...ugin_cache
Reply
#24
Yes, sure.
Thanks for your hard work!
I am still new to the XBMC development and I appreciate any hint Smile
Reply
#25
Released DMAX Italia 1.0.5.
Many thanks to nightflayer for the notes and updates.

In the nex days I would like to move the project to github and ask to include the Addon in the XBMC Repo or SuperRepo.

Enjoy and cheers,
Goph
Reply
#26
The download is not available, could you take a look.
Reply
#27
Now it works. I had forgotten a dot Smile
Reply
#28
neither 1.0.4 nor 1.0.5 work for me. 1.03 goes still fine. firs time i launched 1.04 and 1.05 xbmc crashed than from second attempt stuck on loading than come back to my addon list. no debug log available at the moment.
know i'm on gotham
Peppe
Reply
#29
Hi Peppe,
can you share the xbmc.log with us?

Yesterday I was experimenting a weird behaviour and I should press the plugin twice to get it working.

If the plugin seems to be stuck on, it is because is scarping for the TV shows thumbnail and it takes a while, but once it gets all the thumbnails it should be really responsive.

I will wait for your log.

Thanks for your testing work Smile

Cheers,
Goph
Reply
#30
Yes i will post a log tonight
don't know if i was clear......after the long loading state the addon doesn't start and xbmc remain on the addons list.
anyway i let you see my log
Peppe
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7

Logout Mark Read Team Forum Stats Members Help
DMAX Italia video addon3