diff --git a/plugin.video.adulthideout/resources/logos/hypnotube.png b/plugin.video.adulthideout/resources/logos/hypnotube.png new file mode 100644 index 0000000..ec36e85 Binary files /dev/null and b/plugin.video.adulthideout/resources/logos/hypnotube.png differ diff --git a/plugin.video.adulthideout/resources/logos/punishbang.png b/plugin.video.adulthideout/resources/logos/punishbang.png new file mode 100644 index 0000000..840f448 Binary files /dev/null and b/plugin.video.adulthideout/resources/logos/punishbang.png differ diff --git a/plugin.video.adulthideout/resources/logos/realcuckoldsex.png b/plugin.video.adulthideout/resources/logos/realcuckoldsex.png new file mode 100644 index 0000000..ee2c583 Binary files /dev/null and b/plugin.video.adulthideout/resources/logos/realcuckoldsex.png differ diff --git a/plugin.video.adulthideout/resources/websites/hypnotube.py b/plugin.video.adulthideout/resources/websites/hypnotube.py new file mode 100644 index 0000000..9e37d23 --- /dev/null +++ b/plugin.video.adulthideout/resources/websites/hypnotube.py @@ -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('
.+?([^"]+)<\/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('
  • ', 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('.+?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 + diff --git a/plugin.video.adulthideout/resources/websites/website_config.py b/plugin.video.adulthideout/resources/websites/website_config.py index 50b4383..082fb8c 100644 --- a/plugin.video.adulthideout/resources/websites/website_config.py +++ b/plugin.video.adulthideout/resources/websites/website_config.py @@ -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"])