-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from rocket-dave/master
Adding 3 new sources
- Loading branch information
Showing
7 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
47
plugin.video.adulthideout/resources/websites/punishbang.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
43
plugin.video.adulthideout/resources/websites/realcuckoldsex.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters