Skip to content

Commit

Permalink
Merge pull request #54 from rocket-dave/master
Browse files Browse the repository at this point in the history
Adding 3 new sources
  • Loading branch information
Vashiel authored Apr 26, 2024
2 parents f6b9747 + 376c66b commit fb2e1e4
Show file tree
Hide file tree
Showing 7 changed files with 159 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions plugin.video.adulthideout/resources/websites/hypnotube.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import re
import xbmc
from ..functions import add_dir, add_link, make_request, fanart, logos
import xbmcgui
import xbmcplugin
import xbmcaddon
import urllib.parse as urllib_parse
from urllib.parse import urlparse
import html
import sys


def process_hypnotube_content(url):
#xbmc.log("process_hypnotube_content: " + url, xbmc.LOGINFO)
if "search" not in url and "channels" not in url:
url = url + "/videos/"
if 'https://hypnotube.com/channels/' == url:
process_hypnotube_categories(url)
else:
content = make_request(url, mobile=True).replace('\n', '').replace('\r', '')
#xbmc.log("Hypnotube content: " + content, xbmc.LOGINFO)
add_dir("Categories", "https://hypnotube.com/channels/", 2, logos + 'hypnotube.png', fanart)
add_dir(f'Search hypnotube', 'hypnotube', 5, logos + 'hypnotube.png', fanart)
match = re.compile('<div class="item-inner-col inner-col">.+?<a href="([^"]+)" title="([^"]+)".+?src="([^"]+)".+?<span class="time">([^"]+)<\/span>', re.DOTALL).findall(content)
for video_url, name, thumb, duration, in match:
#xbmc.log("Hypnotube match: " + name, xbmc.LOGINFO)
name = html.unescape(name)
add_link(name, video_url, 4, thumb, fanart)
try:
match = re.compile('<a rel="Next" href="(.+?)" class="next"').findall(content)
next_url = base_url + match[0]
add_dir('[COLOR blue]Next Page >>>>[/COLOR]', next_url, 2, logos + 'hypnotube.png', fanart)
except:
pass

def process_hypnotube_categories(url):
content = make_request(url, mobile=True).replace('\n', '').replace('\r', '')
#xbmc.log("Hypnotube category content: " + content, xbmc.LOGINFO)
categories = re.compile('<li><a title=\'([^"]+)\' href=\'([^"]+)\' class=\'has-counter\'>', re.DOTALL).findall(content)
for name, video_url in categories:
#xbmc.log("Hypnotube category: " + name, xbmc.LOGINFO)
add_dir(name, video_url, 2, logos + 'hypnotube.png', fanart)

def play_hypnotube_video(url):
#xbmc.log("Play Hypnotube URL: " + url, xbmc.LOGINFO)
content = make_request(url).replace('\n', '').replace('\r', '')
#xbmc.log("Play Hypnotube content: " + content, xbmc.LOGINFO)
media_url = re.compile('<video id=.+?src="([^"]+)"').findall(content)[0]
media_url = media_url.replace('amp;', '')
#xbmc.log("Media URL: " + media_url, xbmc.LOGINFO)
return media_url
47 changes: 47 additions & 0 deletions plugin.video.adulthideout/resources/websites/punishbang.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import re
import xbmc
from ..functions import add_dir, add_link, make_request, fanart, logos
import xbmcgui
import xbmcplugin
import xbmcaddon
import urllib.parse as urllib_parse
from urllib.parse import urlparse
import html
import sys


def process_punishbang_content(url):
#xbmc.log("process_punishbang_content: " + url, #xbmc.logINFO)
if "search" not in url and "channels" not in url:
url = url + "/videos/"
if 'https://www.punishbang.com/channels/' == url:
process_punishbang_categories(url)
else:
content = make_request(url).replace('\n', '').replace('\r', '')
#xbmc.log("punishbang content: " + content, #xbmc.logINFO)
add_dir("Categories", "https://www.punishbang.com/channels/", 2, logos + 'punishbang.png', fanart)
add_dir(f'Search punishbang', 'punishbang', 5, logos + 'punishbang.png', fanart)
match = re.compile('<a href="([^"]+)".+?data-src="([^"]+)".+?alt="([^"]+)"', re.DOTALL).findall(content)
for video_url, thumb, name in match:
#xbmc.log("punishbang match: " + name, #xbmc.logINFO)
name = html.unescape(name)
add_link(name, video_url, 4, thumb, fanart)
add_dir('[COLOR blue]Next Page >>>>[/COLOR]', 'https://www.punishbang.com/videos/#videos', 2, logos + 'punishbang.png', fanart)

def process_punishbang_categories(url):
content = make_request(url).replace('\n', '').replace('\r', '')
#xbmc.log("punishbang category content: " + content, #xbmc.logINFO)
#categories = re.compile('<a href="([^"]+)" class="card card--primary" title="([^"]+)".+?<img src="([^"]+)"', re.DOTALL).findall(content)
categories = re.compile('<a href="([^"]+)".+?data-src="([^"]+)".+?alt="([^"]+)"', re.DOTALL).findall(content)
for video_url, thumb, name in categories:
#xbmc.log("punishbang category: " + name, #xbmc.logINFO)
add_dir(name, video_url, 2, thumb, fanart)

def play_punishbang_video(url):
#xbmc.log("Play punishbang URL: " + url, #xbmc.logINFO)
content = make_request(url).replace('\n', '').replace('\r', '')
#xbmc.log("Play punishbang content: " + content, #xbmc.logINFO)
media_url = re.compile('video_url: \'([^"]+)\/\'').findall(content)[0]
media_url = media_url.replace('amp;', '')
#xbmc.log("Media URL: " + media_url, #xbmc.logINFO)
return media_url
43 changes: 43 additions & 0 deletions plugin.video.adulthideout/resources/websites/realcuckoldsex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import re
import xbmc
from ..functions import add_dir, add_link, make_request, fanart, logos
import xbmcgui
import xbmcplugin
import xbmcaddon
import urllib.parse as urllib_parse
from urllib.parse import urlparse
import html
import sys


def process_realcuckoldsex_content(url):
xbmc.log("process_realcuckoldsex_content: " + url, xbmc.LOGINFO)
if "search" not in url and "channels" not in url:
url = url + "/latest-updates/"

content = make_request(url).replace('\n', '').replace('\r', '')
#xbmc.log("realcuckoldsex content: " + content, xbmc.LOGINFO)
match = re.compile('<a target="_blank" href="([^"]+)" title="([^"]+)">.+?<img src="([^"]+)"', re.DOTALL).findall(content)
for video_url, name, thumb in match:
#xbmc.log("realcuckoldsex match: " + name, xbmc.LOGINFO)
name = html.unescape(name)
add_link(name, video_url, 4, thumb, fanart)

try:
parsed_url = urlparse(url)
base_url = f"{parsed_url.scheme}://{parsed_url.netloc}"
match = re.compile('<a href="([^"]+)">Next<').findall(content)
next_url = base_url + match[0]
add_dir('[COLOR blue]Next Page >>>>[/COLOR]', next_url, 2, logos + 'realcuckoldsex.png', fanart)
except:
pass

def play_realcuckoldsex_video(url):
xbmc.log("Play realcuckoldsex URL: " + url, xbmc.LOGINFO)
content = make_request(url).replace('\n', '').replace('\r', '')
xbmc.log("Play realcuckoldsex content: " + content, xbmc.LOGINFO)
media_url = re.compile('video_url: \'([^"]+)mp4').findall(content)[0]+'mp4'
media_url = media_url.replace('amp;', '')
xbmc.log("Media URL: " + media_url, xbmc.LOGINFO)
return media_url

18 changes: 18 additions & 0 deletions plugin.video.adulthideout/resources/websites/website_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,24 @@
"search_url": "https://tubedupe.com/search/?q={}",
"module_name": "tubedupe",
},
{
"name": "hypnotube",
"url": "https://hypnotube.com",
"search_url": "https://hypnotube.com/search/{}/",
"module_name": "hypnotube",
},
{
"name": "punishbang",
"url": "https://www.punishbang.com",
"search_url": "https://punishbang.com/search/{}/",
"module_name": "punishbang",
},
{
"name": "realcuckoldsex",
"url": "http://www.realcuckoldsex.com",
"search_url": "http://www.realcuckoldsex.com/search/{}/",
"module_name": "realcuckoldsex",
},
]

website_list.sort(key=lambda x: x["name"])

0 comments on commit fb2e1e4

Please sign in to comment.