dobbelina / repository.dobbelina

repository.dobbelina- Kodi is a registered trademark of the XBMC Foundation.We are not connected to or in any other way affiliated with Kodi
https://dobbelina.github.io/
263 stars 90 forks source link

Cumination - "Custom Sites" How does it work? #407

Open flapbird1 opened 3 years ago

flapbird1 commented 3 years ago

Screenshot_2021-01-13-17-50-12-304_org xbmc kodi

Hi all, Cumination - "Custom Sites" How does it work?

dobbelina commented 3 years ago

@flapbird1 Here's an example site that you can import. custom-crazy.zip

Gujal00 commented 2 years ago

Here is Efukt custom-efukt.zip

dobbelina commented 2 years ago

BoyfriendTV, (Gay) custom-boyfriend.zip

dobbelina commented 2 years ago

motherless.zip

12asdfg12 commented 1 year ago

Good job! Just 2 observations:

You should use CustomSite not AdultSite: Replace

from resources.lib.adultsite import AdultSite
site = AdultSite('Kaotic', '[COLOR hotpink]Kaotic[/COLOR]', 'https://www.kaotic.com/', 'kaotic.png', 'Kaotic')

With

from resources.lib.customsite import CustomSite
site = CustomSite('DJ Mix-I-Can', 'Kaotic')

You have defined the BASE_URL variable, use it. For example, instead of "https://www.kaotic.com/categories/" you can use BASE_URL + "categories/"

letterale commented 1 year ago

added duration, category and search. now its fine eroprofile.com (update)

new update, add GotoPage function, thx to all

eroprofile.zip

Daniel-Web79 commented 1 year ago

hi, some how i can't add costume site can anybody help?

Daniel-Web79 commented 1 year ago

Tanks for the quik Auswertung but I keep getting error

Daniel-Web79 commented 1 year ago

so i have ben able to install it on windows kodi 19 but on my android box i get an error ? im the .log it say's zip is not a zip file but under windows i have no problen with the same file.

murrey75 commented 1 year ago

Hi Folks, I am trying to create files for this site www.iwank.tv I followed all advises however getting error when trying to install the zip via Cumination Custom site. the message says 'installation cancelled or invalid file'. iwank.zip this is zip I created and used. Your help will be appreciated.

Cr4zyM0f01 commented 1 year ago

Hi I'm trying to add motherless.zip to custom sites but I keep getting an error. I'm on xbox series s so I'm not sure if it's an xbox problem or not but here is the log anyway, hopefully someone can point me in the right direction. Thank you.

http://paste.kodi.tv/ohukogokig

letterale commented 1 year ago

Hi, I would like to add the GotoPage function in a CustomSite but I do not understand if it is possible to do it and possibly how it is better to proceed.

As an example I looked at the code of some AdultSite who have that function but I realized that they have a very different approach, for example for pornvid69:

`def List(url): [...]

delimiter = 'data-post-id="'
re_videopage = 'href="([^"]+)" title'
re_name = 'title="([^"]+)"'
re_img = 'data-src="([^"]+)"'
re_duration = r'duration">([\d:]+)<'
utils.videos_list(site, 'pornvid69.Playvid', html, delimiter, re_videopage, re_name=re_name, re_img=re_img, re_duration=re_duration, contextm='pornvid69.Related')

re_npurl = 'href="([^"]+)">&raquo;<'
re_npnr = r'/(\d+)/[^"]*">&raquo;<'
re_lpnr = r'>(\d+)<\D+next page-link'
utils.next_page(site, 'pornvid69.List', html, re_npurl, re_npnr, re_lpnr=re_lpnr, contextm='pornvid69.GotoPage')
utils.eod()`

While for example in custom-eroprofile.py:

`def List(url): [...]

match = re.compile(r'bg-black"><a href="([^"]+).+?<img\s*src="([^"]+).+?<div class="videoDur">([:\d]+).+?<div class="videoTtl" title="([^"]+).*?redirect-link">([^<]+)', re.DOTALL | re.IGNORECASE).findall(listhtml)
for videopage, img, duration, name, nice in match:
    nice = " [" + nice + "]"
    name = utils.cleantext(name + nice).title()
    site.add_download_link(name, BASE_URL + videopage, 'Playvid', img, duration=duration)

nextp = re.compile('<a href="([^"]+)" class="btn redirect-link marL').search(listhtml)
if nextp:
    site.add_dir('Next Page', BASE_URL + nextp.group(1).replace('&amp;', '&'), 'List', site.img_next)
utils.eod()`

Ask: Is it possible to replicate the GotoPage function from an AdultSite in a CustomSite?

12asdfg12 commented 1 year ago

Yes, it is possible. You can use the code below, but you must implement the 2 incomplete lines (np = ... and url = url.replace( ... ))


    nextp = re.compile('<a href="([^"]+)" class="btn redirect-link marL').search(listhtml)
    if nextp:
        npurl = BASE_URL + nextp.group(1)

        np = ...
# np = next page number

        cm_page = (utils.addon_sys + "?mode=custom_eroprofile_by_Cumination.GotoPage&list_mode=custom_eroprofile_by_Cumination.List&url=" + urllib_parse.quote_plus(npurl) + "&np=" + str(np))
        cm = [('[COLOR violet]Goto Page #[/COLOR]', 'RunPlugin(' + cm_page + ')')]
        site.add_dir('Next Page', npurl, 'List', site.img_next, contextm=cm)
    utils.eod()

@site.register()
def GotoPage(list_mode, url, np, lp = None):
    dialog = xbmcgui.Dialog()
    pg = dialog.numeric(0, 'Enter Page number')
    if pg:
        if lp and int(pg) > int(lp):
            utils.notify(msg='Out of range!')
            return

        url = url.replace( ... )
# in url, you must replace the number of the next page (np) with the number of the page you want to jump to (pg)

        contexturl = (utils.addon_sys + "?mode=" + str(list_mode) + "&url=" + urllib_parse.quote_plus(url) + "&page=" + str(pg))
        xbmc.executebuiltin('Container.Update(' + contexturl + ')')
Gujal00 commented 1 year ago

Hi I'm trying to add motherless.zip to custom sites but I keep getting an error. I'm on xbox series s so I'm not sure if it's an xbox problem or not but here is the log anyway, hopefully someone can point me in the right direction. Thank you.

http://paste.kodi.tv/ohukogokig

Kodi19.4 on XBox is toast as the python is broken on it. Upgrade to Kodi 20.1 and it should work

letterale commented 1 year ago

Hi, I'm trying to create a non-porn CustomSite, it's about sports in live streaming, I hope someone can help me to make it work ;-)

(custom-sport.zip)

`site = CustomSite('Cumination', 'starlive') BASE_URL = 'https://starlive.xyz'

@site.register(default_mode=True) def Main(): List(BASE_URL) utils.eod()

@site.register() def List(url): try: listhtml = utils.getHtml(url, '') except: return None match = re.compile(r'tr><tr.+?class.+?href="([^"]+).+?([^<]+)', re.DOTALL | re.IGNORECASE).findall(listhtml) for videopage, name in match: site.add_download_link(name, urllib_parse.urljoin(BASE_URL, videopage), 'Playvid', name) utils.eod()

@site.register() def Playvid(url, name, download=None): vp = utils.VideoPlayer(name, download) vp.progress.update(99, "[CR]Loading video page[CR]") videopage = utils.getHtml(url, '') videolink = re.compile(r'iframe src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0] vp.play_from_direct_link(videolink.replace('https', 'http').replace('&', '&')) `

At the moment I receive error for the opening of VideoPage

"C:\Users\User\AppData\Roaming\Kodi\userdata\addon_data\plugin.video.cumination\custom_sites\custom_2.py", line 67, in Playvid videolink = re.compile(r'iframe src="\/\/([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0] IndexError: list index out of range

Gujal00 commented 1 year ago

Hi, I'm trying to create a non-porn CustomSite, it's about sports in live streaming, I hope someone can help me to make it work ;-)

At the moment I receive error for the opening of VideoPage

"C:\Users\User\AppData\Roaming\Kodi\userdata\addon_data\plugin.video.cumination\custom_sites\custom_2.py", line 67, in Playvid videolink = re.compile(r'iframe src="//([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0] IndexError: list index out of range

That error is because in the regex you are looking for " however the page has this <iframe src='/ch/dazn1es.php' width='100%' so you have to change the expression to this r"iframe src='/([^']+)" once you get that it is not the mediaurl yet, so you have to open that second page which is php page with encrypted mediaurl, so you need to figure out how to get the decrypt it before sending it for playback. _0x496e35['source']=_0x1dea4d(-0xd0,-0x103,-0xf8,-0xe1)+_0x1dea4d(-0xe3,-0x141,-0xd4,-0x110)+'wdazn.akam'+_0x1dea4d(-0xc3,-0xd7,-0xf7,-0xc3)+'dashdrm/da'+_0x1dea4d(-0x13a,-0xdc,-0x114,-0xff)+_0x1dea4d(-0xb0,-0xe1,-0x136,-0xf2)+_0x4435b1(0x2fd,0x2dd,0x2b0,0x2ed)

Even then some of the streams I looked at on that site are MPEG_DASH streams (.mpd) with clearkey and playready DRM. Kodi Inputstream Adaptive only supports widevine DRM and so both the DRM mechanisms used by the site cannot be played on Kodi


<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="82f8e2a1-7dac-44c0-a18f-660479349c59"/>
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed">     <cenc:pssh>AAAARXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACUIARIQgvjioX2sRMChj2YEeTScWSIPZGF6bi1saW5lYXItMDM3</cenc:pssh>
</ContentProtection>
<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="MSPR 2.0">         <cenc:pssh>AAACJnBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAgYGAgAAAQABAPwBPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgBvAGUATAA0AGcAcQB4ADkAdwBFAFMAaABqADIAWQBFAGUAVABTAGMAVwBRAD0APQA8AC8ASwBJAEQAPgA8AEMASABFAEMASwBTAFUATQA+AHAASgBMAGcAKwB2AFYAVwAxAFMAQQA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</cenc:pssh>   <mspr:pro>BgIAAAEAAQD8ATwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4AbwBlAEwANABnAHEAeAA5AHcARQBTAGgAagAyAFkARQBlAFQAUwBjAFcAUQA9AD0APAAvAEsASQBEAD4APABDAEgARQBDAEsAUwBVAE0APgBwAEoATABnACsAdgBWAFcAMQBTAEEAPQA8AC8AQwBIAEUAQwBLAFMAVQBNAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgA=</mspr:pro>
</ContentProtection>
dobbelina commented 1 year ago

All custom sites can now be found here: Custom sites

ErosVece commented 1 year ago

Here is version 1 of the Github Downloader

More info here: https://github.com/dobbelina/repository.dobbelina/issues/1022

custom-ghdownloader.zip

ErosVece commented 1 year ago

Here is version 1 of Custom Site Installer. With this, you can install custom sites from Cumination.

custom-installer.zip

Meetrying commented 1 year ago

can anyone create a custom site for tubepornclassic.com?

Spanktacular commented 1 year ago

Any sites, or just the ones up on the custom sites page?

ErosVece commented 1 year ago

You can only install and use those that are provided as custom site.

But in theory you can create a custom site for any site :)

letterale commented 1 year ago

Hi, I have a customsite for eroprofile.com that works well but I would like an additional function, maybe I can find a solution here.

On the web, the site does not provide a menu to select/filter the duration of the videos. At the same time, however, for each video it always indicates its duration in the classic mm:ss format.

I ask, would it be possible in kodi/cummination/customsite to create a filter to select video duration intervals, for example short (up to 10 min) medium (10/20 min) long (+20 min)?

ErosVece commented 1 year ago

I ask, would it be possible in kodi/cummination/customsite to create a filter to select video duration intervals, for example short (up to 10 min) medium (10/20 min) long (+20 min)?

No and Yes 😉

No: You must view Cumination as a unique kind of browser. Just like you would visit a website using your regular browser, you can do the same with Cumination, but without any pop-ups, ads, or any non-video content. It utilizes what the websites offer. Therefore, if a site doesn't provide an option to select by runtime, Cumination can't select by runtime either :)

Yes: ...however, it's not ideal. You can apply/code a filter when displaying the videos. But if there's a page where no videos match the runtime you selected, you'll see an empty page. It would, however, still display 'Next Page'. To help avoid encountering these blank pages, you could modify the code so that it fetches 5 or 10 pages at a time.

letterale commented 1 year ago

I ask, would it be possible in kodi/cummination/customsite to create a filter to select video duration intervals, for example short (up to 10 min) medium (10/20 min) long (+20 min)?

Yes: ...however, it's not ideal. You can apply/code a filter when displaying the videos. But if there's a page where no videos match the runtime you selected, you'll see an empty page. It would, however, still display 'Next Page'. To help avoid encountering these blank pages, you could modify the code so that it fetches 5 or 10 pages at a time.

Thanks for the answer, the "non-ideal" solution I think I'd like to find a way to test it ;-)

If the filter results were less than n videos (variable number modifiable via code) then an "Extend search" link could appear to increase the search by 5 or 10 more pages. And if the results were still zero, which I don't think so, amen...

I don't think I'm capable of implementing such a filter, but I'd like to try, where would you start?

PS: I am attaching the new version of eroprofile (LookupInfo)

custom-eroprofile.zip

ErosVece commented 1 year ago

PS: I am attaching the new version of eroprofile (LookupInfo)

custom-eroprofile.zip`

If you want, you can have your name as author in meta.json. But you would also need to modify the python file for that, this 'custom_eroprofile_by_Cumination' Also it's good practice to up the version number there. As simple as possible, it would be 2 :)

Your other question I come back to

ErosVece commented 1 year ago

@letterale I would get back to you with how you could do that. Well, I let chatgpt-4 handle it 😉

https://chat.openai.com/share/7a5b8100-455a-4299-98fb-ff34c3d50248

Look here, this gives you a general idea how you could do this. This isn't 100% working code, but it steers you in the right direction what to do.

agooner commented 12 months ago

All custom sites can now be found here: Custom sites

Is there a repo for the custom sites? I'd like to submit a PR with a new site.

ErosVece commented 12 months ago
ErosVece commented 11 months ago

There are a few sites added to the Custom Sites page: https://dobbelina.github.io/custom.html

TwistedPorn, XbbwX, XmtX and Yumatu.

WhiteDevil9o commented 11 months ago
emuweb commented 10 months ago

Hi there, I'm struggeling to add the custom sites. I'm using Cumination 1.1.87 on Kodi 20.2 (Linux) which runs on a Nvidia Shield Pro. Everything works fine so far. But adding one or all custom sites doesn't work. I've downloaded all custom zip files. Trying to install one or all of them, following the given procedure, non of the zip files can be found by Cumination in the folder, where I've put them. I've try'd several locations, like the download folder from Kodi, an external USB stick, a new created folder. Nothing works to get them found and installed. Anybody able to help? About to get mad meanwhile... Big thank you in advance!

ErosVece commented 10 months ago

That is weird.

So, you go to the settings in Cumination -> Custom Sites -> Install Custom site. You get a dialog where you press 'Yes', and then you get a file select dialog.

Here is mine after this, I went to a backup of my userdata folder image

My question, like by me, do you see other files, like those *.xml files? Another question, when you go to the folder with the zip files with the Kodi File Explorer, do you see the zipfiles there? How did you put the zip files there?

emuweb commented 10 months ago

Alright, I've identified the issue. It was a setting in the Shield. Settings > Device Preferences > Apps > Kodi > Permissions > Files and media The standard option "Allow only while using the app" was enabled. Changing to "Allow all the time" fixed the problem. Now I can see all the files. Might be worth to remember for other Shield users. Thanks for your help @ErosVece

pippopelo56 commented 8 months ago

In custom site page, I have downloaded and installed Pornchill but don't work in Cumination, only for me or Is outdated? Thank's.

ErosVece commented 8 months ago

In custom site page, I have downloaded and installed Pornchill but don't work in Cumination, only for me or Is outdated? Thank's.

They changed something on the site, I have a fix ready....but it looks like most links are now rar files instead of a video. Kodi can't open those. Only thing that is possible is to download the rar with Cumination, and then you can open and play it. So I was waiting and monitoring if they switched for everything to rar uploads.

Edit: I updated Pornchil to 1.3, download also didn't work :)

pippopelo56 commented 8 months ago

In custom site page, I have downloaded and installed Pornchill but don't work in Cumination, only for me or Is outdated? Thank's.

They changed something on the site, I have a fix ready....but it looks like most links are now rar files instead of a video. Kodi can't open those. Only thing that is possible is to download the rar with Cumination, and then you can open and play it. So I was waiting and monitoring if they switched for everything to rar uploads.

Edit: I updated Pornchil to 1.3, download also didn't work :)

Work very fine with non rar files! Many thank's!

pippopelo56 commented 7 months ago

Hello, Adult.tv is outdated, no more update? Thank's in advance.

pippopelo56 commented 5 months ago

In custom site page, I have downloaded and installed Pornchill but don't work in Cumination, only for me or Is outdated? Thank's.

They changed something on the site, I have a fix ready....but it looks like most links are now rar files instead of a video. Kodi can't open those. Only thing that is possible is to download the rar with Cumination, and then you can open and play it. So I was waiting and monitoring if they switched for everything to rar uploads.

Edit: I updated Pornchil to 1.3, download also didn't work :)

Not work again. :(

socalJackLA commented 3 months ago