• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 15
[RELEASE] Fantasti.cc (Adult) Video Plugin
#31
Hey, thanks for responding but I don't think you understood what I meant. With most of xbmc's video add-ons you can add a file to xbmc's "Favorites" menu to be easily found and watched later. With fantasti if I press "c" I get the option to add a video to "Favorites" and that video will even be displayed there but if I try to play it nothing happens
Image
Image
Reply
#32
Ill take a look at this. Sorry I was busy all weekend and didnt check in on this thread.
Reply
#33
Uploaded a fix for xvideos which changed its layout. A lot of videos should work again.
Reply
#34
That actually kind of sucks.... i had just fixed a crap load of errors in the script. Xvideos wasn't the only thing that didn't work. you_porn didn't work. pornhub didn't work (that might have been fixed in your update). tnaflix was broken. Also, browsing collections didn't allow you to go to the next page, which i also fixed. I also added a fall back system using clipnabber that would attempt to grab videos from services that weren't listed. however, those are all gone now because i didn't create a new folder for my fixes and the repo updated with your version. I just completed my fixes yesterday Sad
Reply
#35
fleshTH Wrote:That actually kind of sucks.... i had just fixed a crap load of errors in the script. Xvideos wasn't the only thing that didn't work. you_porn didn't work. pornhub didn't work (that might have been fixed in your update). tnaflix was broken. Also, browsing collections didn't allow you to go to the next page, which i also fixed. I also added a fall back system using clipnabber that would attempt to grab videos from services that weren't listed. however, those are all gone now because i didn't create a new folder for my fixes and the repo updated with your version. I just completed my fixes yesterday Sad

Gah sorry about that. I will look into the other stuff. I fixed xvideos and pornhub.

I will check the other two as well shouldnt take long to fix.

If you remember any of your snippets of code that fixed things, let me know and I will add them.
Reply
#36
Fixed the collections issue. Working on tnaflicks which is a bit of a doozy.
Reply
#37
I have gotten tnaflicks to work in Chrome when i manually load each page and get a file to download but for some reason in xbmc it doesnt work (neither with firefox).

Here is the code btw. If anyone has any thoughts let me know.

Code:
    elif "tnaflix" in url:
            match = re.compile('<param name="FlashVars" value="(.+?)"/>').findall(html)
            for gurl in match:
                print "gurl %s" % gurl
                purl = string.split(gurl, "?")[1]
                print purl
                urlget2 = "http://www.tnaflix.com/embedding_player/embedding_feed.php?" + purl
                print urlget2
            html = get_html(urlget2)
            match = re.compile('<file>(.+?)</file>').findall(html)
            for each in match:
                fetchurl=each
                print "fetchurl: %s" % fetchurl
            return fetchurl
Reply
#38
tnaflix fix

Code:
    elif "tnaflix" in url:
            match = re.compile('<a style="color:#BBB;" href="(.+?)" target="_blank" rel="nofollow">tnaflix</a></span>').findall(html)
            for gurl in match:
                urlget2 = gurl
            html = get_html(urlget2)
            match = re.compile("so\.addVariable\('config', '(.*?)'").findall(html)
            for each in match:
                gurl2=urllib.unquote(each)
                        
                        fetchurl = re.split('</?file>',get_html(gurl2))[1]

                        print "fetchurl: %s" % fetchurl
            return fetchurl

RedTube typo:

Code:
                fetchurl = string.split(string.split(each, "&")[8], "=")[1]
                fetchurl = urllib.unquote(fetch)
Should be
Code:
                fetchurl = string.split(string.split(each, "&")[8], "=")[1]
                fetchurl = urllib.unquote(fetchurl)

Added clipnabber backup for unsupported videos.
Code:
    else:
        """Clipnabber"""
                #get the name of the resource
                r = re.compile('permalink/(.*?)/').findall(url)[0]
                print "Unknown source (%s). Trying clipnabber" % r
                
                #get the link
                gurl = re.compile('<a[^>]+href="(.*?)"[^>]*>%s</a>' % r).findall(html)[0]
                kid = re.compile('id="Math">(\d+)').findall(get_html('http://clipnabber.com/mini.php'))[0]
                html = get_html('http://clipnabber.com/gethint.php?mode=1&sid=%s&url=%s' % (kid,urllib.quote(gurl)) )
                fetchurl = re.compile("<a href='(.*?)'").findall(html)[0]
                print "Fetchurl: %s" % fetchurl
                return fetchurl

Another small thing
Code:
    elif "megarotic":
should be
Code:
    elif "megarotic" in url:

Although, i think they have completely done away with megarotic so could probably even take that out.


Also, in the collections area there's a part
Code:
            match = re.compile('\(\'(.+?)\', ([0-9]*),\'(.+?)\', \'(.+?)\'\);return false;" href="#">next').findall(html)
            if len(match) > 5:

i had to change that to > 1 in order to get the Next Page for a collection.


I think those are all the changes i made. I'll try to remember if there's anything else.


(btw, i'm not a python developer. I've only been doing python for like a week. i truly honestly hate the language and if it wasn't for XBMC, i wouldn't even touch it.)
Reply
#39
One question since I am new to this add-on..

Say I choose popular collections, and then for example I choose 'Amatuers (722 vids)....I get only 30 results.
Just one page of vids....no 'next' button. Am I supposed to see all 722 of the videos?

Is this correct?
Thanks
Reply
#40
dtviewer Wrote:One question since I am new to this add-on..

Say I choose popular collections, and then for example I choose 'Amatuers (722 vids)....I get only 30 results.
Just one page of vids....no 'next' button. Am I supposed to see all 722 of the videos?

Is this correct?
Thanks

An update was just pushed (i just received it like 10mins ago) that fixes that issue.
Reply
#41
Thanks Flesh.

I will work on integrating your fixes and push a new version shortly.

Interestingly I love python much more than other languages. Oh well Smile
Reply
#42
hey Ksosez, i have pushed a hell of a load of updates to repo, so you'll need to apply the fixes to that version. the changes are in preparation for Image support and XML scraping etc, although currently changes very little of the actual functionality
Reply
#43
The last update failed for me on this line

Code:
File "/home/flesh/.xbmc/addons/plugin.video.fantasticc/resources/lib/utils.py", line 43, in <module>
                                                __uc__ = __username__[0].upper() + __username__[1:]
                                            IndexError: string index out of range

I commented the line out and it worked. not really sure of the significance of it...
Reply
#44
ah, ok i need to put a conditional on it. it is only used for users when logged in (it is the username with first letter capitalized). i plan to spend today adding image support, so i'll commit a fix at some point today
Reply
#45
hmm, well i'm writing a full python API module for fantasti.cc at the moment.
its getting rather complicated, so a release of the addon with support for images won't be for at least a couple of days.
i'm writing the API to support login, and interface with XML, RSS and HTML (where needed). it will also have support for adding to favourites etc.
this has to be done because the Images side of things is very similar to videos, and for plugin maintenance reasons, it is not good to duplicate code for scraping images/videos
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 15

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Fantasti.cc (Adult) Video Plugin4